elevatedButtonStyle static method

dynamic elevatedButtonStyle(
  1. dynamic isDark,
  2. Color color
)

Implementation

static elevatedButtonStyle(isDark, Color color) => ElevatedButtonThemeData(
      style: ButtonStyle(
        backgroundColor: WidgetStateProperty.all<Color>(color),
        shape: WidgetStateProperty.all<RoundedRectangleBorder>(
          RoundedRectangleBorder(
            borderRadius: BorderRadius.circular(18.0),
            side: BorderSide(
              color: color,
            ),
          ),
        ),
        foregroundColor:
            WidgetStateProperty.all<Color>(scaffoldBackgroundColor(isDark)),
      ),
    );