Design constructor

const Design({
  1. required AppBarDesign appBar,
  2. required Color accent,
  3. required Color accentText,
  4. required Color primary,
  5. required SheetDesign sheet,
  6. required Color primaryText,
  7. required Brightness brightness,
  8. required BottomNavigationBarDesign bottomNavigationBar,
  9. required ProgressIndicatorDesign progressIndicator,
  10. required ScaffoldDesign scaffold,
  11. required SnackBarDesign snackBar,
  12. required ThemeData themeData,
  13. CardDesign card = const CardDesign(),
  14. CheckBoxDesign checkBox = const CheckBoxDesign(),
  15. ChipDesign chip = const ChipDesign(),
  16. List<Color> customColors1 = const [_placeHolderColor, _placeHolderColor, _placeHolderColor, _placeHolderColor, _placeHolderColor],
  17. List<Color> customColors2 = const [_placeHolderColor, _placeHolderColor, _placeHolderColor, _placeHolderColor, _placeHolderColor],
  18. List<Color> customColors3 = const [_placeHolderColor, _placeHolderColor, _placeHolderColor, _placeHolderColor, _placeHolderColor],
  19. List<Color> customColors4 = const [_placeHolderColor, _placeHolderColor, _placeHolderColor, _placeHolderColor, _placeHolderColor],
  20. List<Color> customColors5 = const [_placeHolderColor, _placeHolderColor, _placeHolderColor, _placeHolderColor, _placeHolderColor],
  21. DesignSchema customDesign1 = const DesignSchema(),
  22. DesignSchema customDesign2 = const DesignSchema(),
  23. DesignSchema customDesign3 = const DesignSchema(),
  24. DesignSchema customDesign4 = const DesignSchema(),
  25. DesignSchema customDesign5 = const DesignSchema(),
  26. Color disablePrimary = _placeHolderColor,
  27. DropdownDesign dropdown = const DropdownDesign(),
  28. ElevatedButtonDesign elevatedButton = const ElevatedButtonDesign(),
  29. EmptyStateDesign emptyState = const EmptyStateDesign(),
  30. SelectableListItemDesign selectableListItem = const SelectableListItemDesign(),
  31. SlidingSegmentDesign slidingSegment = const SlidingSegmentDesign(),
  32. SwitchDesign switchDesign = const SwitchDesign(),
  33. TextButtonDesign textButton = const TextButtonDesign(),
  34. TextFieldDesign textField = const TextFieldDesign(),
  35. DesignSchema uploader = const DesignSchema(),
  36. Map<String, Color> others = const {},
  37. ListTileDesign listTile = const ListTileDesign(),
  38. int layoutStyle = 0,
  39. List<Gradient> gradientList = const [LinearGradient(colors: [_placeHolderColor, _placeHolderColor]), LinearGradient(colors: [_placeHolderColor, _placeHolderColor]), LinearGradient(colors: [_placeHolderColor, _placeHolderColor])],
})

Implementation

const Design({
  required this.appBar,
  required this.accent,
  required this.accentText,
  required this.primary,
  required this.sheet,
  required this.primaryText,
  required this.brightness,
  required this.bottomNavigationBar,
  required this.progressIndicator,
  required this.scaffold,
  required this.snackBar,
  required this.themeData,
  this.card = const CardDesign(),
  this.checkBox = const CheckBoxDesign(),
  this.chip = const ChipDesign(),
  this.customColors1 = const [_placeHolderColor, _placeHolderColor, _placeHolderColor, _placeHolderColor, _placeHolderColor],
  this.customColors2 = const [_placeHolderColor, _placeHolderColor, _placeHolderColor, _placeHolderColor, _placeHolderColor],
  this.customColors3 = const [_placeHolderColor, _placeHolderColor, _placeHolderColor, _placeHolderColor, _placeHolderColor],
  this.customColors4 = const [_placeHolderColor, _placeHolderColor, _placeHolderColor, _placeHolderColor, _placeHolderColor],
  this.customColors5 = const [_placeHolderColor, _placeHolderColor, _placeHolderColor, _placeHolderColor, _placeHolderColor],
  this.customDesign1 = const DesignSchema(),
  this.customDesign2 = const DesignSchema(),
  this.customDesign3 = const DesignSchema(),
  this.customDesign4 = const DesignSchema(),
  this.customDesign5 = const DesignSchema(),
  this.disablePrimary = _placeHolderColor,
  this.dropdown = const DropdownDesign(),
  this.elevatedButton = const ElevatedButtonDesign(),
  this.emptyState = const EmptyStateDesign(),
  this.selectableListItem = const SelectableListItemDesign(),
  this.slidingSegment = const SlidingSegmentDesign(),
  this.switchDesign = const SwitchDesign(),
  this.textButton = const TextButtonDesign(),
  this.textField = const TextFieldDesign(),
  this.uploader = const DesignSchema(),
  this.others = const {},
  this.listTile = const ListTileDesign(),
  // this.fontFamily,
  this.layoutStyle = 0,
  this.gradientList = const [
    LinearGradient(colors: [_placeHolderColor, _placeHolderColor]),
    LinearGradient(colors: [_placeHolderColor, _placeHolderColor]),
    LinearGradient(colors: [_placeHolderColor, _placeHolderColor])
  ],
});