PrismTokens constructor

const PrismTokens({
  1. double spaceXs = 4,
  2. double spaceSm = 8,
  3. double spaceMd = 16,
  4. double spaceLg = 24,
  5. double spaceXl = 32,
  6. double spaceXxl = 48,
  7. double radiusSm = 8,
  8. double radiusMd = 12,
  9. double radiusLg = 16,
  10. double radiusXl = 24,
  11. Duration durationFast = const Duration(milliseconds: 120),
  12. Duration durationMedium = const Duration(milliseconds: 240),
  13. Duration durationSlow = const Duration(milliseconds: 420),
  14. Curve curveStandard = Curves.easeInOutCubic,
  15. Curve curveEmphasized = Curves.easeOutExpo,
  16. Curve curveExit = Curves.easeInCubic,
  17. double contentMaxWidth = 720,
  18. double breakpointCompact = 600,
  19. double breakpointExpanded = 840,
  20. double controlHeight = 44,
  21. double borderWidth = 1,
})

Creates a token set. Every field has a sensible default so you can override only what you care about.

Implementation

const PrismTokens({
  this.spaceXs = 4,
  this.spaceSm = 8,
  this.spaceMd = 16,
  this.spaceLg = 24,
  this.spaceXl = 32,
  this.spaceXxl = 48,
  this.radiusSm = 8,
  this.radiusMd = 12,
  this.radiusLg = 16,
  this.radiusXl = 24,
  this.durationFast = const Duration(milliseconds: 120),
  this.durationMedium = const Duration(milliseconds: 240),
  this.durationSlow = const Duration(milliseconds: 420),
  this.curveStandard = Curves.easeInOutCubic,
  this.curveEmphasized = Curves.easeOutExpo,
  this.curveExit = Curves.easeInCubic,
  this.contentMaxWidth = 720,
  this.breakpointCompact = 600,
  this.breakpointExpanded = 840,
  this.controlHeight = 44,
  this.borderWidth = 1,
});