createTheme static method

ThemeData createTheme({
  1. Color accentColor = DefaultColors.accent_accent_blue,
  2. Color accentError = DefaultColors.accent_error_red,
  3. Color accentErrorLight = DefaultColors.accent_error_red_light,
  4. Color backgroundBase = DefaultColors.background_base,
  5. Color backgroundContrast = DefaultColors.background_contrast,
  6. Color backgroundDisabled = DefaultColors.background_disabled,
  7. Color backgroundFocus = DefaultColors.background_focus,
  8. Color primaryColor = DefaultColors.primaryPrimaryYellow,
  9. Color textBase = DefaultColors.text_gray_base,
  10. Color textBlack = DefaultColors.text_text_black,
  11. Color textDisabled = DefaultColors.text_gray_disabled,
  12. Color textWhite = DefaultColors.text_text_white,
  13. TextTheme? textTheme,
  14. BorderRadius? textFieldRadius,
  15. double? textFieldBorderWidth,
  16. BorderRadius? buttonsRadius,
  17. InputDecorationThemeData? inputDecorationTheme,
  18. ElevatedButtonThemeData? elevatedButtonThemeData,
  19. OutlinedButtonThemeData? outlinedButtonThemeData,
  20. SwitchThemeData? switchTheme,
  21. ChipThemeData? chipTheme,
  22. 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,
    );