DraftModeUIThemeData constructor

DraftModeUIThemeData({
  1. required ColorRole primaryColor,
  2. required ColorRole secondaryColor,
  3. required ColorRole tertiaryColor,
  4. required Color accentColor,
  5. required Color dangerColor,
  6. required Color successColor,
  7. required Color warningColor,
  8. required Color separatorColor,
  9. double fontSizeXLarge = 20,
  10. double fontSizePrimary = 17,
  11. double fontSizeSecondary = 15,
  12. double fontSizeTertiary = 12,
  13. FontWeight fontWeightRegular = FontWeight.w400,
  14. FontWeight fontWeightMedium = FontWeight.w500,
  15. FontWeight fontWeightSemibold = FontWeight.w600,
  16. double spacingLarge = 20,
  17. double spacingPrimary = 16,
  18. double spacingSecondary = 14,
  19. double spacingTertiary = 10,
  20. double spacingSmall = 8,
  21. double radiusPrimary = 12,
  22. double radiusSecondary = 10,
  23. double radiusPill = 20,
  24. double iconSizeLarge = 22,
  25. double iconSizeMedium = 18,
  26. double iconSizeSmall = 16,
  27. double navBarTopHeight = 44,
  28. double navBarTopIconHeight = 30,
  29. double navBarBottomHeight = 49,
  30. double navBarBottomIconHeight = 28,
  31. ({double fontSize, FontWeight fontWeight, double height}) buttonLarge = (height: 50, fontSize: 17, fontWeight: FontWeight.normal),
  32. ({double fontSize, FontWeight fontWeight, double height}) buttonMedium = (height: 44, fontSize: 15, fontWeight: FontWeight.normal),
  33. ({double fontSize, FontWeight fontWeight, double height}) buttonSmall = (height: 34, fontSize: 13, fontWeight: FontWeight.normal),
  34. double rowMinHeight = 44,
  35. double rowPaddingHorizontal = 16,
  36. double labelWidth = 100,
  37. Color disclosureColor = CupertinoColors.systemGrey2,
  38. double disclosureSize = 14,
  39. double separatorHeight = 0.5,
  40. Color shadowColor = const Color(0x1F000000),
  41. double shadowBlurRadius = 12.0,
  42. double toastBottomOffset = 80,
  43. double toastOpacity = 0.9,
  44. double badgeMinSize = 18,
  45. double badgeRadius = 9,
  46. double badgePaddingHorizontal = 6,
  47. double badgePaddingVertical = 2,
  48. double badgeOffsetTop = -6,
  49. double badgeOffsetRight = -8,
  50. double dropDownMenuMinWidth = 180,
  51. double dropDownMenuMaxWidth = 260,
  52. double dropDownMenuGap = 4,
  53. Duration animationDurationFast = const Duration(milliseconds: 150),
  54. Duration animationDurationDefault = const Duration(milliseconds: 250),
  55. Curve animationCurve = Curves.easeInOut,
  56. required CupertinoThemeData cupertinoTheme,
})

Implementation

DraftModeUIThemeData({
  required this.primaryColor,
  required this.secondaryColor,
  required this.tertiaryColor,
  required this.accentColor,
  required this.dangerColor,
  required this.successColor,
  required this.warningColor,
  required this.separatorColor,
  this.fontSizeXLarge = 20,
  this.fontSizePrimary = 17,
  this.fontSizeSecondary = 15,
  this.fontSizeTertiary = 12,
  this.fontWeightRegular = FontWeight.w400,
  this.fontWeightMedium = FontWeight.w500,
  this.fontWeightSemibold = FontWeight.w600,
  this.spacingLarge = 20,
  this.spacingPrimary = 16,
  this.spacingSecondary = 14,
  this.spacingTertiary = 10,
  this.spacingSmall = 8,
  this.radiusPrimary = 12,
  this.radiusSecondary = 10,
  this.radiusPill = 20,
  this.iconSizeLarge = 22,
  this.iconSizeMedium = 18,
  this.iconSizeSmall = 16,
  this.navBarTopHeight = 44,
  this.navBarTopIconHeight = 30,
  this.navBarBottomHeight = 49,
  this.navBarBottomIconHeight = 28,
  this.buttonLarge = const (
    height: 50,
    fontSize: 17,
    fontWeight: FontWeight.normal,
  ),
  this.buttonMedium = const (
    height: 44,
    fontSize: 15,
    fontWeight: FontWeight.normal,
  ),
  this.buttonSmall = const (
    height: 34,
    fontSize: 13,
    fontWeight: FontWeight.normal,
  ),
  this.rowMinHeight = 44,
  this.rowPaddingHorizontal = 16,
  this.labelWidth = 100,
  this.disclosureColor = CupertinoColors.systemGrey2,
  this.disclosureSize = 14,
  this.separatorHeight = 0.5,
  this.shadowColor = const Color(0x1F000000),
  this.shadowBlurRadius = 12.0,
  this.toastBottomOffset = 80,
  this.toastOpacity = 0.9,
  this.badgeMinSize = 18,
  this.badgeRadius = 9,
  this.badgePaddingHorizontal = 6,
  this.badgePaddingVertical = 2,
  this.badgeOffsetTop = -6,
  this.badgeOffsetRight = -8,
  this.dropDownMenuMinWidth = 180,
  this.dropDownMenuMaxWidth = 260,
  this.dropDownMenuGap = 4,
  this.animationDurationFast = const Duration(milliseconds: 150),
  this.animationDurationDefault = const Duration(milliseconds: 250),
  this.animationCurve = Curves.easeInOut,
  required this.cupertinoTheme,
});