raisedButtonStyle method

ButtonStyle raisedButtonStyle({
  1. double elevation = 2,
  2. EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 16),
  3. Color? backgroundColor,
  4. Color foregroundColor = Colors.grey,
  5. Size minimumSize = const Size(88, 36),
  6. dynamic shape = const RoundedRectangleBorder(borderRadius: BorderRadius.all(Radius.circular(2))),
  7. 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)),
      ),
    );