elevatedButtonStyle static method
dynamic
elevatedButtonStyle(
- dynamic isDark,
- 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)),
),
);