primaryElevatedButtonThemeData static method

ElevatedButtonThemeData primaryElevatedButtonThemeData()

The primary ElevatedButtonThemeData for the dark theme.

Implementation

static ElevatedButtonThemeData primaryElevatedButtonThemeData() {
  return ElevatedButtonThemeData(
    style: ElevatedButton.styleFrom(
      foregroundColor: DarkThemeColors.colorScheme.onPrimary,
      backgroundColor: DarkThemeColors.colorScheme.primary,
      disabledForegroundColor: DarkThemeColors.colorScheme.onSurfaceVariant,
      disabledBackgroundColor: DarkThemeColors.colorScheme.surfaceDim,
      textStyle: AppTypography.dark().labelLarge,
      shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(10)),
      padding: const EdgeInsets.all(12),
      elevation: 0,
    ),
  );
}