raisedButtonStyle method
ButtonStyle
raisedButtonStyle({
- double elevation = 2,
- EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 16),
- Color? backgroundColor,
- Color foregroundColor = Colors.grey,
- Size minimumSize = const Size(88, 36),
- dynamic shape = const RoundedRectangleBorder(borderRadius: BorderRadius.all(Radius.circular(2))),
- TextStyle? textStyle,
Implementation
ButtonStyle raisedButtonStyle({
double elevation = 2,
EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 16),
Color? backgroundColor,
Color foregroundColor = Colors.grey,
Size minimumSize = const Size(88, 36),
dynamic shape = const RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(2))),
TextStyle? textStyle,
}) =>
ElevatedButton.styleFrom(
elevation: elevation,
backgroundColor: backgroundColor,
foregroundColor: foregroundColor,
textStyle: textStyle,
minimumSize: minimumSize,
padding: padding,
shape: const RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(2)),
),
);