theming/button_style library

Properties

buttonStyleAnimationDuration ↔ Duration
ButtonStyle.animationDuration for every style built in this file.
getter/setter pair
maximumSize → Size
no setter
padding → EdgeInsetsGeometry
no setter

Functions

backgroundButtonStyle(Palette sc, {bool showBorder = false, TextStyle? textStyle, double borderWidth = 2, OutlinedBorder? shape, required double scale}) → ButtonStyle
colorButtonStyle(Palette sc, {bool showBorder = true, TextStyle? textStyle, double borderWidth = 2, OutlinedBorder? shape, required double scale}) → ButtonStyle
fillButtonStyle(Palette sc, {bool showBorder = true, TextStyle? textStyle, double borderWidth = 2, OutlinedBorder? shape, required double scale}) → ButtonStyle
iconButtonStyle(Palette sc, {TextStyle? textStyle}) → ButtonStyle
Icon button: transparent background and stateful icon/text colors.
minimumSizeForScale(double scale) → Size
Minimum touch-target size for buttons built from the helpers in this file, scaled by the user's UI-size ("scale") preference.
outlineButtonStyle(Palette sc, {TextStyle? textStyle, double borderWidth = 2, OutlinedBorder? shape, required double scale}) → ButtonStyle
Outlined button with transparent background and border.
textButtonStyle(Palette sc, {TextStyle? textStyle, OutlinedBorder? shape, required double scale}) → ButtonStyle
Text button with transparent background, no border.
widgetPropertyByState<T>({required T normal(), required T hover(), required T splash()}) → WidgetStateProperty<T>