DraftModeUIThemeData constructor

DraftModeUIThemeData({
  1. DraftModePlatformStyle platformStyle = DraftModePlatformStyle.ios,
  2. Brightness brightness = Brightness.light,
  3. required ColorRole primaryColor,
  4. required ColorRole secondaryColor,
  5. required ColorRole tertiaryColor,
  6. required Color accentColor,
  7. required Color dangerColor,
  8. required Color successColor,
  9. required Color warningColor,
  10. ColorRole buttonGrayColor = const ColorRole(CupertinoColors.systemGrey5, CupertinoColors.label),
  11. required Color separatorColor,
  12. Color switchAndroidActiveTrackColor = const Color(0xFF54689A),
  13. Color switchAndroidActiveThumbColor = const Color(0xFFFFFFFF),
  14. Color switchAndroidInactiveTrackColor = const Color(0xFFF0F2F7),
  15. Color switchAndroidInactiveThumbColor = const Color(0xFF7A7E87),
  16. Color switchAndroidTrackOutlineColor = const Color(0x737A7E87),
  17. double fontSizeXLarge = 20,
  18. double fontSizePrimary = 17,
  19. double fontSizeSecondary = 15,
  20. double fontSizeTertiary = 12,
  21. FontWeight fontWeightRegular = FontWeight.w400,
  22. FontWeight fontWeightMedium = FontWeight.w500,
  23. FontWeight fontWeightSemibold = FontWeight.w600,
  24. double sectionHeaderFontSize = 12,
  25. FontWeight sectionHeaderFontWeight = FontWeight.w500,
  26. double sectionHeaderLetterSpacing = 0.4,
  27. double spacingXs = 8,
  28. double spacingSm = 10,
  29. double spacingMd = 14,
  30. double spacingLg = 16,
  31. double spacingXl = 20,
  32. double radiusPrimary = 12,
  33. double radiusSecondary = 10,
  34. double radiusPill = 20,
  35. double iconSizeLarge = 22,
  36. double iconSizeMedium = 18,
  37. double iconSizeSmall = 16,
  38. double navBarTopHeight = 44,
  39. double navBarTopIconHeight = 30,
  40. double navBarBottomHeight = 49,
  41. double navBarBottomIconHeight = 28,
  42. ({double fontSize, FontWeight fontWeight, double height}) buttonLarge = (height: 50, fontSize: 17, fontWeight: FontWeight.normal),
  43. ({double fontSize, FontWeight fontWeight, double height}) buttonMedium = (height: 44, fontSize: 15, fontWeight: FontWeight.normal),
  44. ({double fontSize, FontWeight fontWeight, double height}) buttonSmall = (height: 34, fontSize: 13, fontWeight: FontWeight.normal),
  45. double rowMinHeight = 44,
  46. double rowPaddingHorizontal = 16,
  47. double labelWidth = 100,
  48. double rowLabelFontSize = 17,
  49. FontWeight rowLabelFontWeight = FontWeight.w400,
  50. double rowTextFontSize = 17,
  51. FontWeight rowTextFontWeight = FontWeight.w400,
  52. Color disclosureColor = CupertinoColors.systemGrey2,
  53. double disclosureSize = 14,
  54. double separatorHeight = 0.5,
  55. Color shadowColor = const Color(0x1F000000),
  56. double shadowBlurRadius = 12.0,
  57. double toastBottomOffset = 36,
  58. double toastOpacity = 0.9,
  59. double toastMaxWidth = double.infinity,
  60. double toastHorizontalInset = 20,
  61. double toastRadius = 16,
  62. double toastMinHeight = 60,
  63. double toastPaddingHorizontal = 16,
  64. double toastPaddingVertical = 10,
  65. Color toastShadowColor = const Color(0x1F000000),
  66. double toastShadowBlurRadius = 12,
  67. double badgeMinSize = 18,
  68. double badgeRadius = 9,
  69. double badgePaddingHorizontal = 6,
  70. double badgePaddingVertical = 2,
  71. double badgeOffsetTop = -6,
  72. double badgeOffsetRight = -8,
  73. double spinnerAndroidStrokeWidth = 2.5,
  74. double dropDownMenuMinWidth = 180,
  75. double dropDownMenuMaxWidth = 260,
  76. double dropDownMenuGap = 4,
  77. Duration animationDurationFast = const Duration(milliseconds: 150),
  78. Duration animationDurationDefault = const Duration(milliseconds: 250),
  79. Curve animationCurve = Curves.easeInOut,
})

Implementation

DraftModeUIThemeData({
  this.platformStyle = DraftModePlatformStyle.ios,
  this.brightness = Brightness.light,
  required this.primaryColor,
  required this.secondaryColor,
  required this.tertiaryColor,
  required this.accentColor,
  required this.dangerColor,
  required this.successColor,
  required this.warningColor,
  this.buttonGrayColor = const ColorRole(
    CupertinoColors.systemGrey5,
    CupertinoColors.label,
  ),
  required this.separatorColor,
  this.switchAndroidActiveTrackColor = const Color(0xFF54689A),
  this.switchAndroidActiveThumbColor = const Color(0xFFFFFFFF),
  this.switchAndroidInactiveTrackColor = const Color(0xFFF0F2F7),
  this.switchAndroidInactiveThumbColor = const Color(0xFF7A7E87),
  this.switchAndroidTrackOutlineColor = const Color(0x737A7E87),
  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.sectionHeaderFontSize = 12,
  this.sectionHeaderFontWeight = FontWeight.w500,
  this.sectionHeaderLetterSpacing = 0.4,
  this.spacingXs = 8,
  this.spacingSm = 10,
  this.spacingMd = 14,
  this.spacingLg = 16,
  this.spacingXl = 20,
  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.rowLabelFontSize = 17,
  this.rowLabelFontWeight = FontWeight.w400,
  this.rowTextFontSize = 17,
  this.rowTextFontWeight = FontWeight.w400,
  this.disclosureColor = CupertinoColors.systemGrey2,
  this.disclosureSize = 14,
  this.separatorHeight = 0.5,
  this.shadowColor = const Color(0x1F000000),
  this.shadowBlurRadius = 12.0,
  this.toastBottomOffset = 36,
  this.toastOpacity = 0.9,
  this.toastMaxWidth = double.infinity,
  this.toastHorizontalInset = 20,
  this.toastRadius = 16,
  this.toastMinHeight = 60,
  this.toastPaddingHorizontal = 16,
  this.toastPaddingVertical = 10,
  this.toastShadowColor = const Color(0x1F000000),
  this.toastShadowBlurRadius = 12,
  this.badgeMinSize = 18,
  this.badgeRadius = 9,
  this.badgePaddingHorizontal = 6,
  this.badgePaddingVertical = 2,
  this.badgeOffsetTop = -6,
  this.badgeOffsetRight = -8,
  this.spinnerAndroidStrokeWidth = 2.5,
  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,
});