StyleRecipe class

Numeric / flag recipe for a DesignStyle.

Adding a style later means adding an enum value and a factory case here. Generated feature screens do not change.

Constructors

StyleRecipe({required DesignStyle style, required List<double> radius, required List<double> blur, required List<double> opacity, required List<double> elevation, required List<int> motionMs, required double borderThin, required double borderRegular, required double borderBold, required double shadowOffset, required double shadowBlur, required double shadowSpread, required double neoOffset, required double neoBlur, required double hardShadowOffset, required double displaySize, required double headlineSize, required double titleSize, required double bodySize, required double labelSize, required double captionSize, required bool boldHeadlines, required bool usesBlur, required bool usesNeoShadows, required bool usesHardOffsetShadow, required bool usesInsetPress, required bool usesClayInflation, required bool usesSkeuoGradient, required bool usesLiquidHighlight, required bool usesSpatialDepth, required bool prefersGradientButtons, required bool avoidGradients, required bool reducedTransparencyFallback})
const
StyleRecipe.of(DesignStyle style)
factory

Properties

avoidGradients bool
final
blur List<double>
none, subtle, small, medium, large, intense (sigma)
final
bodySize double
final
boldHeadlines bool
final
borderBold double
final
borderRegular double
final
borderThin double
final
captionSize double
final
displaySize double
final
elevation List<double>
flat, low, medium, high, floating (logical elevation)
final
hardShadowOffset double
final
hashCode int
The hash code for this object.
no setterinherited
headlineSize double
final
labelSize double
final
motionMs List<int>
instant, fast, normal, slow, emphasized (milliseconds)
final
neoBlur double
final
neoOffset double
final
opacity List<double>
disabled, subtle, surface, glass, overlay, scrim
final
prefersGradientButtons bool
final
radius List<double>
none, xs, sm, md, lg, xl, pill
final
reducedTransparencyFallback bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shadowBlur double
final
shadowOffset double
final
shadowSpread double
final
style DesignStyle
final
titleSize double
final
usesBlur bool
final
usesClayInflation bool
final
usesHardOffsetShadow bool
final
usesInsetPress bool
final
usesLiquidHighlight bool
final
usesNeoShadows bool
final
usesSkeuoGradient bool
final
usesSpatialDepth bool
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited