elevatedButtonNormal function

dynamic elevatedButtonNormal({
  1. Color? backgroundColor,
  2. Color? textColor,
  3. OutlinedBorder? shape,
  4. double? elevation,
  5. EdgeInsetsGeometry? padding,
})

Implementation

elevatedButtonNormal({
  Color? backgroundColor,
  Color? textColor,
  OutlinedBorder? shape,
  double? elevation,
  EdgeInsetsGeometry? padding
}) =>
    ElevatedButton.styleFrom(
        elevation: elevation,
        backgroundColor: (backgroundColor == null)
            ? Theme.of(Get.context!).primaryColor
            : backgroundColor,
        foregroundColor: (textColor == null) ? Colors.white : textColor,
        shape: shape,
        padding: padding);