DraftModeUIThemeData.androidDark constructor
DraftModeUIThemeData.androidDark({
- double labelWidth = 100,
Explicit Android dark variant using Material-oriented palette defaults.
Implementation
factory DraftModeUIThemeData.androidDark({double labelWidth = 100}) {
return DraftModeUIThemeData(
platformStyle: DraftModePlatformStyle.android,
brightness: Brightness.dark,
primaryColor: const ColorRole(Color(0xFF121212), Color(0xFFFFFFFF)),
secondaryColor: const ColorRole(Color(0xFF1E1E1E), Color(0xB3FFFFFF)),
tertiaryColor: const ColorRole(Color(0xFF2A2A2A), Color(0x99FFFFFF)),
accentColor: const Color(0xFF8AB4F8),
dangerColor: const Color(0xFFF28B82),
successColor: const Color(0xFF81C995),
warningColor: const Color(0xFFFBCB77),
buttonGrayColor: const ColorRole(Color(0xFF2B303A), Color(0xFFFFFFFF)),
separatorColor: const Color(0x33FFFFFF),
switchAndroidActiveTrackColor: const Color(0xFF6C81B6),
switchAndroidActiveThumbColor: const Color(0xFF121212),
switchAndroidInactiveTrackColor: const Color(0xFF2F3440),
switchAndroidInactiveThumbColor: const Color(0xFFD8DCE6),
switchAndroidTrackOutlineColor: const Color(0x73D8DCE6),
disclosureColor: const Color(0xB3FFFFFF),
sectionHeaderFontSize: 12,
sectionHeaderFontWeight: FontWeight.w500,
sectionHeaderLetterSpacing: 0.4,
labelWidth: labelWidth,
rowLabelFontSize: 14,
rowLabelFontWeight: FontWeight.w500,
rowTextFontSize: 16,
rowTextFontWeight: FontWeight.w400,
toastBottomOffset: 24,
toastOpacity: 1,
toastMaxWidth: double.infinity,
toastHorizontalInset: 32,
toastRadius: 16,
toastMinHeight: 60,
toastPaddingHorizontal: 16,
toastPaddingVertical: 10,
toastShadowColor: const Color(0x4D000000),
toastShadowBlurRadius: 28,
badgeMinSize: 20,
badgeRadius: 10,
badgePaddingHorizontal: 6,
badgePaddingVertical: 3,
badgeOffsetTop: -4,
badgeOffsetRight: -6,
spinnerAndroidStrokeWidth: 3,
);
}