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