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.
Default shape for a filled tonal button.
The default size of the spacing between an icon and a text when they used inside any button.
The default BorderStroke used by OutlinedButton.
Default shape for an outlined button.
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.
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.
The default BorderStroke used by OutlinedButton.
Creates a ButtonColors that represents the default container and content colors used in an OutlinedButton.
Creates a ButtonColors that represents the default container and content colors used in a TextButton.