CalcThemeData constructor
CalcThemeData({
- required Brightness brightness,
- required Color background,
- required Color displayText,
- required Color previewText,
- required Color errorText,
- required Color caret,
- required Color focusRing,
- required KeyStyle digitKey,
- required KeyStyle operatorKey,
- required KeyStyle equalsKey,
- required KeyStyle functionKey,
- double keyCornerFraction = 0.3,
- String? displayFontFamily,
- int? displayWeight,
- String? keyFontFamily,
- SpringDescription? pressIn,
- SpringDescription? release,
- SpringDescription? releaseAlt,
- double pressScale = 0.95,
- double pressedOverlayOpacity = 0.12,
- double hoverOverlayOpacity = 0.08,
- KeyFaceRenderer keyFace = const PlainKeyFace(),
- double focusRingWidth = 2,
- CalcBackdrop? backdrop,
- DisplayEntry? displayEntry,
- bool releaseHaptic = false,
- DisplayFace? displayFace,
- Color? accessiblePreviewText,
- ChromeStyle? chrome,
Implementation
CalcThemeData({
required this.brightness,
required this.background,
required this.displayText,
required this.previewText,
required this.errorText,
required this.caret,
required this.focusRing,
required this.digitKey,
required this.operatorKey,
required this.equalsKey,
required this.functionKey,
this.keyCornerFraction = 0.3,
this.displayFontFamily,
this.displayWeight,
this.keyFontFamily,
SpringDescription? pressIn,
SpringDescription? release,
this.releaseAlt,
this.pressScale = 0.95,
this.pressedOverlayOpacity = 0.12,
this.hoverOverlayOpacity = 0.08,
this.keyFace = const PlainKeyFace(),
this.focusRingWidth = 2,
this.backdrop,
DisplayEntry? displayEntry,
this.releaseHaptic = false,
this.displayFace,
this.accessiblePreviewText,
this.chrome,
}) : displayEntry = displayEntry ?? DisplayEntry.none,
pressIn = pressIn ?? effectsFast,
release = release ?? effectsDefault;