ButtonDefaults
Contains the default values used by all 5 button types.
Default values that apply to all buttons types are MinWidth, MinHeight, IconSize, and IconSpacing.
A default value that applies only to Button, ElevatedButton, FilledTonalButton, and OutlinedButton is ContentPadding.
Default values that apply only to Button are buttonColors and buttonElevation. Default values that apply only to ElevatedButton are elevatedButtonColors and elevatedButtonElevation. Default values that apply only to FilledTonalButton are filledTonalButtonColors and filledTonalButtonElevation. A default value that applies only to OutlinedButton is outlinedButtonColors. Default values that apply only to TextButton are TextButtonContentPadding and textButtonColors.
Properties
The default content padding used by Button, ElevatedButton, FilledTonalButton, and OutlinedButton buttons.
Default shape for an elevated button.
The default height for a extra large button container.
Default content padding for an extra large button.
The default size of the icon used inside of a extra large button.
The default spacing between an icon and a text when they used inside any extra large button.
Pressed shape for extra large buttons.
The default height for a extra small button container.
Default content padding for an extra small button.
The default size of the icon used inside of a extra small button.
The default spacing between an icon and a text when they used inside any extra small button.
Pressed shape for extra small buttons.
Default shape for a filled tonal button.
The default size of the spacing between an icon and a text when they used inside a small button.
The default height for a large button container.
Default content padding for a large button.
The default size of the icon used inside of a large button.
The default spacing between an icon and a text when they used inside any large button.
Pressed shape for large buttons.
The default height for a medium button container.
Default content padding for a medium button.
The default size of the icon used inside of a medium button.
The default spacing between an icon and a text when they used inside any medium button.
Pressed shape for medium buttons.
The default BorderStroke used by OutlinedButton.
Default shape for an outlined button.
Pressed shape for default buttons.
The default content padding used for small Button
The expressive size of the icon used inside a small button.
Square shape for default buttons.
The default content padding used by TextButton.
The default content padding used by TextButton that contains an Icon.
Functions
Creates a ButtonColors that represents the default container and content colors used in a Button.
Creates a ButtonElevation that will animate between the provided values according to the Material specification for a Button.
Recommended PaddingValues for a provided button height.
Creates a ButtonColors that represents the default container and content colors used in an ElevatedButton.
Creates a ButtonElevation that will animate between the provided values according to the Material specification for a ElevatedButton.
Creates a ButtonColors that represents the default container and content colors used in an FilledTonalButton.
Creates a ButtonElevation that will animate between the provided values according to the Material specification for a FilledTonalButton.
Recommended Icon size for a provided button height.
Recommended spacing after an Icon for a provided button height.
The default BorderStroke used by OutlinedButton.
Creates a ButtonColors that represents the default container and content colors used in an OutlinedButton.
Creates a ButtonShapes that represents the default shape and pressed shape used in a button.
Creates a ButtonShapes that represents the default shape and pressedShape used in a Button and its variants.
Recommended ButtonShapes for a provided button height.
Creates a ButtonColors that represents the default container and content colors used in a TextButton.
Recommended TextStyle for a Text provided a button height.