Skip to main content

C2CPrimaryButtonThemeData

PropertyDescriptionType
borderRadiusThe border radius of the button.BorderRadius?
backgroundColorThe background color of the button.Color?
foregroundColorThe foreground (text) color of the button.Color?
disabledBackgroundColorThe background color of the button when it's disabled.Color?
disabledForegroundColorThe foreground (text) color of the button when it's disabled.Color?
contentPaddingThe padding around the content of the button.EdgeInsets?
leftIconPaddingPadding for the left icon.EdgeInsets?
rightIconPaddingPadding for the right icon.EdgeInsets?
isExpandedWhether the button should expand to fill available space.bool?
sizeThe height of the button. (large (52) | medium (48) | small (40) | custom (null)). Default: ButtonSize.largeButtonSize?
textStyleThe text style of the button's content.TextStyle?
focusedBackgroundColorThe background color of the button when it's focused (iOS only).Color?
focusedForegroundColorThe color of the button's content when it's focused (iOS only).Color?