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