CalcThemeData constructor

CalcThemeData({
  1. required Brightness brightness,
  2. required Color background,
  3. required Color displayText,
  4. required Color previewText,
  5. required Color errorText,
  6. required Color caret,
  7. required Color focusRing,
  8. required KeyStyle digitKey,
  9. required KeyStyle operatorKey,
  10. required KeyStyle equalsKey,
  11. required KeyStyle functionKey,
  12. double keyCornerFraction = 0.3,
  13. String? displayFontFamily,
  14. int? displayWeight,
  15. String? keyFontFamily,
  16. SpringDescription? pressIn,
  17. SpringDescription? release,
  18. SpringDescription? releaseAlt,
  19. double pressScale = 0.95,
  20. double pressedOverlayOpacity = 0.12,
  21. double hoverOverlayOpacity = 0.08,
  22. KeyFaceRenderer keyFace = const PlainKeyFace(),
  23. double focusRingWidth = 2,
  24. CalcBackdrop? backdrop,
  25. DisplayEntry? displayEntry,
  26. bool releaseHaptic = false,
  27. DisplayFace? displayFace,
  28. Color? accessiblePreviewText,
  29. 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;