PrismTokens constructor
const
PrismTokens({
- double spaceXs = 4,
- double spaceSm = 8,
- double spaceMd = 16,
- double spaceLg = 24,
- double spaceXl = 32,
- double spaceXxl = 48,
- double radiusSm = 8,
- double radiusMd = 12,
- double radiusLg = 16,
- double radiusXl = 24,
- Duration durationFast = const Duration(milliseconds: 120),
- Duration durationMedium = const Duration(milliseconds: 240),
- Duration durationSlow = const Duration(milliseconds: 420),
- Curve curveStandard = Curves.easeInOutCubic,
- Curve curveEmphasized = Curves.easeOutExpo,
- Curve curveExit = Curves.easeInCubic,
- double contentMaxWidth = 720,
- double breakpointCompact = 600,
- double breakpointExpanded = 840,
- double controlHeight = 44,
- 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,
});