createTheme static method
ThemeData
createTheme({
- Color accentColor = DefaultColors.accent_accent_blue,
- Color accentError = DefaultColors.accent_error_red,
- Color accentErrorLight = DefaultColors.accent_error_red_light,
- Color backgroundBase = DefaultColors.background_base,
- Color backgroundContrast = DefaultColors.background_contrast,
- Color backgroundDisabled = DefaultColors.background_disabled,
- Color backgroundFocus = DefaultColors.background_focus,
- Color primaryColor = DefaultColors.primaryPrimaryYellow,
- Color textBase = DefaultColors.text_gray_base,
- Color textBlack = DefaultColors.text_text_black,
- Color textDisabled = DefaultColors.text_gray_disabled,
- Color textWhite = DefaultColors.text_text_white,
- TextTheme? textTheme,
- BorderRadius? textFieldRadius,
- double? textFieldBorderWidth,
- BorderRadius? buttonsRadius,
- InputDecorationThemeData? inputDecorationTheme,
- ElevatedButtonThemeData? elevatedButtonThemeData,
- OutlinedButtonThemeData? outlinedButtonThemeData,
- SwitchThemeData? switchTheme,
- ChipThemeData? chipTheme,
- bool useMaterial3 = true,
Creates a standard ThemeData configured with GB UI Kit base styling and button defaults.
Implementation
static ThemeData createTheme({
Color accentColor = DefaultColors.accent_accent_blue,
Color accentError = DefaultColors.accent_error_red,
Color accentErrorLight = DefaultColors.accent_error_red_light,
Color backgroundBase = DefaultColors.background_base,
Color backgroundContrast = DefaultColors.background_contrast,
Color backgroundDisabled = DefaultColors.background_disabled,
Color backgroundFocus = DefaultColors.background_focus,
Color primaryColor = DefaultColors.primaryPrimaryYellow,
Color textBase = DefaultColors.text_gray_base,
Color textBlack = DefaultColors.text_text_black,
Color textDisabled = DefaultColors.text_gray_disabled,
Color textWhite = DefaultColors.text_text_white,
TextTheme? textTheme,
BorderRadius? textFieldRadius,
double? textFieldBorderWidth,
BorderRadius? buttonsRadius,
InputDecorationThemeData? inputDecorationTheme,
ElevatedButtonThemeData? elevatedButtonThemeData,
OutlinedButtonThemeData? outlinedButtonThemeData,
SwitchThemeData? switchTheme,
ChipThemeData? chipTheme,
bool useMaterial3 = true,
}) =>
createGBTheme(
accentColor: accentColor,
accentError: accentError,
accentErrorLight: accentErrorLight,
backgroundBase: backgroundBase,
backgroundContrast: backgroundContrast,
backgroundDisabled: backgroundDisabled,
backgroundFocus: backgroundFocus,
primaryColor: primaryColor,
textBase: textBase,
textBlack: textBlack,
textDisabled: textDisabled,
textWhite: textWhite,
textTheme: textTheme,
textFieldRadius: textFieldRadius,
textFieldBorderWidth: textFieldBorderWidth,
buttonsRadius: buttonsRadius,
inputDecorationTheme: inputDecorationTheme,
elevatedButtonTheme: elevatedButtonThemeData,
outlinedButtonTheme: outlinedButtonThemeData,
switchTheme: switchTheme,
chipTheme: chipTheme,
useMaterial3: useMaterial3,
);