modeClair static method

ThemeData modeClair({
  1. Color? primary,
  2. Color? secondary,
  3. Color? tertiary,
  4. Color? scaffolBackground = Colors.white,
  5. Color? errorColor,
  6. ButtonStyle? textButtonStyle,
  7. ChipThemeData? chipTheme,
  8. CheckboxThemeData? checkboxTheme,
  9. ButtonBarThemeData? buttonBarTheme,
  10. BottomSheetThemeData? bottomSheetTheme,
  11. DialogTheme? dialogTheme,
  12. DividerThemeData? dividerTheme,
  13. DrawerThemeData? drawerTheme,
  14. ElevatedButtonThemeData? elevatedButtonTheme,
  15. FloatingActionButtonThemeData? floatingActionButtonTheme,
  16. NavigationRailThemeData? navigationRailTheme,
  17. NavigationBarThemeData? navigationBarTheme,
  18. BottomNavigationBarThemeData? bottomNavigationBarTheme,
  19. BottomAppBarTheme? bottomAppBarTheme,
  20. MaterialBannerThemeData? bannerTheme,
  21. AppBarTheme? appBarTheme,
  22. CardTheme? cardTheme,
  23. InputDecorationTheme? inputDecorationTheme,
  24. ScrollbarThemeData? scrollbarTheme,
  25. IconThemeData? iconTheme,
  26. DataTableThemeData? dataTableTheme,
  27. ListTileThemeData? listTileTheme,
  28. OutlinedButtonThemeData? outlinedButtonTheme,
  29. PopupMenuThemeData? popupMenuTheme,
  30. ProgressIndicatorThemeData? progressIndicatorTheme,
  31. RadioThemeData? radioTheme,
  32. SliderThemeData? sliderTheme,
  33. SnackBarThemeData? snackBarTheme,
  34. SwitchThemeData? switchTheme,
  35. TabBarTheme? tabBarTheme,
  36. TimePickerThemeData? timePickerTheme,
  37. ToggleButtonsThemeData? toggleButtonsTheme,
  38. TooltipThemeData? tooltipTheme,
  39. TextStyle? t1,
  40. TextStyle? t2,
  41. TextStyle? t3,
  42. TextStyle? t4,
  43. TextStyle? tBoxDialogue,
  44. TextStyle? tPrincipalBoxDialogue,
  45. TextStyle? tbodyPrincipal,
  46. TextStyle? tbodySecondaire,
  47. TextStyle? tAltImage,
  48. TextStyle? tButton,
  49. TextStyle? tsmall,
  50. TextStyle? tlistTitle,
  51. TextStyle? tlistSubTitle,
})

Implementation

static ThemeData modeClair({
  // principal
  Color? primary,
  Color? secondary,
  Color? tertiary,
  Color? scaffolBackground = Colors.white,
  Color? errorColor,
  // text button
  ButtonStyle? textButtonStyle,
  // chip
  ChipThemeData? chipTheme,
  // checkbox
  CheckboxThemeData? checkboxTheme,
  // buttonBarTheme
  ButtonBarThemeData? buttonBarTheme,
  // bottomSheetTheme
  BottomSheetThemeData? bottomSheetTheme,
  // dialogTheme
  DialogTheme? dialogTheme,
  // dividerTheme
  DividerThemeData? dividerTheme,
  // drawerTheme
  DrawerThemeData? drawerTheme,
  // elevatedButtonTheme
  ElevatedButtonThemeData? elevatedButtonTheme,
  // floatingActionButtonTheme
  FloatingActionButtonThemeData? floatingActionButtonTheme,
  // navigationRailTheme
  NavigationRailThemeData? navigationRailTheme,
  // navigationBarTheme
  NavigationBarThemeData? navigationBarTheme,
  // bottomNavigationBarTheme
  BottomNavigationBarThemeData? bottomNavigationBarTheme,
  // bottomAppBarTheme
  BottomAppBarTheme? bottomAppBarTheme,
  // bannerTheme
  MaterialBannerThemeData? bannerTheme,
  // appBarTheme
  AppBarTheme? appBarTheme,
  // cardTheme
  CardTheme? cardTheme,
  // inputDecorationTheme
  InputDecorationTheme? inputDecorationTheme,
  // scrollbarTheme
  ScrollbarThemeData? scrollbarTheme,
  // iconTheme
  IconThemeData? iconTheme,
  // dataTableTheme
  DataTableThemeData? dataTableTheme,
  // listTileTheme
  ListTileThemeData? listTileTheme,
  // outlinedButtonTheme
  OutlinedButtonThemeData? outlinedButtonTheme,
  // popupMenuTheme
  PopupMenuThemeData? popupMenuTheme,
  // progressIndicatorTheme
  ProgressIndicatorThemeData? progressIndicatorTheme,
  // radioTheme
  RadioThemeData? radioTheme,
  // sliderTheme
  SliderThemeData? sliderTheme,
  // SnackBarTheme
  SnackBarThemeData? snackBarTheme,
  // switchTheme
  SwitchThemeData? switchTheme,
  // tabBarTheme
  TabBarTheme? tabBarTheme,
  // timePickerTheme
  TimePickerThemeData? timePickerTheme,
  // toggleButtonsTheme
  ToggleButtonsThemeData? toggleButtonsTheme,
  // tooltipTheme
  TooltipThemeData? tooltipTheme,
  // text style
  TextStyle? t1,
  TextStyle? t2,
  TextStyle? t3,
  TextStyle? t4,
  TextStyle? tBoxDialogue,
  TextStyle? tPrincipalBoxDialogue,
  TextStyle? tbodyPrincipal,
  TextStyle? tbodySecondaire,
  TextStyle? tAltImage,
  TextStyle? tButton,
  TextStyle? tsmall,
  TextStyle? tlistTitle,
  TextStyle? tlistSubTitle,
}) {
  return ThemeData(
    // couleur background scaffol
    scaffoldBackgroundColor: scaffolBackground,
    // tooltipTheme
    tooltipTheme: tooltipTheme,
    // toggleButtonsTheme
    toggleButtonsTheme: toggleButtonsTheme,
    // timePickerTheme
    timePickerTheme: timePickerTheme,
    // tabBarTheme
    tabBarTheme: tabBarTheme,
    // switchTheme
    switchTheme: switchTheme,
    // snackBarTheme
    snackBarTheme: snackBarTheme,
    // sliderTheme
    sliderTheme: sliderTheme,
    // radioTheme
    radioTheme: radioTheme,
    // progressIndicatorTheme
    progressIndicatorTheme: progressIndicatorTheme,
    // popupMenuTheme
    popupMenuTheme: popupMenuTheme,
    // outlinedButtonTheme
    outlinedButtonTheme: outlinedButtonTheme,
    // listTileTheme
    listTileTheme: listTileTheme,
    // dataTableTheme
    dataTableTheme: dataTableTheme,
    // iconTheme
    iconTheme: iconTheme,
    // scrollbarTheme
    scrollbarTheme: scrollbarTheme,
    // input decoration
    inputDecorationTheme: inputDecorationTheme,
    // card theme
    cardTheme: cardTheme,
    // appBar theme
    appBarTheme: appBarTheme,
    // material bar
    bannerTheme: bannerTheme,
    // appBar bottom
    bottomAppBarTheme: bottomAppBarTheme,
    // text theme
    textTheme: TextTheme(
      // Texte extrêmement volumineux.
      headline1: t1,
      // Texte très, très gros.
      headline2: t2,
      // Texte très gros.
      headline3: t3,
      // Gros texte.
      headline4: t4,
      // Utilisé pour le texte de grande taille dans les boîtes de dialogue
      // (par exemple, le mois et l'année dans la boîte de dialogue affichée
      // par showDatePicker ).
      headline5: tBoxDialogue,
      // Utilisé pour le texte principal dans les barres d'application
      // et les boîtes de dialogue (par exemple, AppBar.title
      // et AlertDialog.title ).
      headline6: tPrincipalBoxDialogue,
      // Le style de texte par défaut
      bodyText2: tbodyPrincipal,
      // Utilisé pour mettre en évidence le texte qui serait autrement que
      // bodyText2
      bodyText1: tbodySecondaire,
      // alt de l'image
      caption: tAltImage,
      // text elevatedbutton, textbutton, outlinebutton
      button: tButton,
      // utiliser pour le plus petit text
      overline: tsmall,
      // titre des listes
      subtitle1: tlistTitle,
      // sous titre des listes
      subtitle2: tlistSubTitle,
    ),
    // navigation bar bottom theme
    bottomNavigationBarTheme: bottomNavigationBarTheme,
    // navigation bar
    navigationBarTheme: navigationBarTheme,
    // navigation rail
    navigationRailTheme: navigationRailTheme,
    // bottom modal
    bottomSheetTheme: bottomSheetTheme,
    // btn bar
    buttonBarTheme: buttonBarTheme,
    // checkbox
    checkboxTheme: checkboxTheme,
    // puce
    chipTheme: chipTheme,
    // dialogue box
    dialogTheme: dialogTheme,
    // divider
    dividerTheme: dividerTheme,
    // drawer
    drawerTheme: drawerTheme,
    // text btn
    textButtonTheme: TextButtonThemeData(
      style: textButtonStyle,
    ),
    // elevated btn
    elevatedButtonTheme: elevatedButtonTheme,
    // float btn
    floatingActionButtonTheme: floatingActionButtonTheme,
    // schemas de couleur
    colorScheme: const ColorScheme.light().copyWith(
      // primary color
      primary: primary,
      // secondary color
      secondary: secondary,
      // tertiary color
      tertiary: tertiary,
      // error color
      error: errorColor,
    ),
  );
}