TButtonTheme constructor
const
TButtonTheme({
- required TWidgetTheme baseTheme,
- required TButtonType type,
- required TButtonSize size,
- required Color color,
- OutlinedBorder? shape,
- double? borderRadius = 6.0,
- double? elevation = 0.0,
- Duration? animationDuration = const Duration(milliseconds: 100),
- Curve? animationCurve = Curves.easeInOut,
- double? scaleOnPress = 0.95,
- WidgetStateProperty<
TextStyle?> ? textStyle, - WidgetStateProperty<
Color?> ? shadowColor,
Implementation
const TButtonTheme({
required this.baseTheme,
required this.type,
required this.size,
required this.color,
this.shape,
this.borderRadius = 6.0,
this.elevation = 0.0,
this.animationDuration = const Duration(milliseconds: 100),
this.animationCurve = Curves.easeInOut,
this.scaleOnPress = 0.95,
this.textStyle,
this.shadowColor,
});