lightMainTheme static method
Default BASF light main theme
Implementation
static ThemeData lightMainTheme({
BasfThemeType basfThemeType = BasfThemeType.darkBlue,
}) {
final theme = basfThemeType;
_lastUsedThemeType = theme;
return ThemeData(
fontFamily: 'Roboto',
textTheme: mainTextTheme,
appBarTheme: _mainAppBarTheme(theme),
scaffoldBackgroundColor: BasfColors.white,
snackBarTheme: _snackBarThemeData(theme),
dialogBackgroundColor: _getDialogBackgroundColor(theme),
colorScheme: ColorScheme.fromSwatch(
primarySwatch: theme.primaryColor,
errorColor: BasfColors.red,
),
splashColor: theme.primaryColor.withOpacity(0.1),
highlightColor: theme.primaryColor.withOpacity(0.2),
iconTheme: IconThemeData(
color: theme.primaryColor,
),
textButtonTheme: TextButtonThemeData(
style: ButtonStyles.containedTextButtonStyle(theme.primaryColor),
),
outlinedButtonTheme: OutlinedButtonThemeData(
style: ButtonStyles.primaryOutlinedButtonStyle(theme.primaryColor),
),
dialogTheme: DialogTheme(
surfaceTintColor: Colors.white,
shape: RoundedRectangleBorder(borderRadius: defaultBorderRadius),
),
inputDecorationTheme: BasfInputThemes.getMainInputDecorationTheme(
theme.primaryColor,
),
hintColor: theme.primaryColor.shade400,
bottomNavigationBarTheme: _bottomNavigationBarTheme(theme),
);
}