PrismStateViewStyle class
Visual configuration for PrismStateView.
Every field is optional. Unset fields resolve against the ambient theme and
PrismTokens, so a PrismStateView picks up your spacing scale, corner
radii, motion language and semantic colours without any configuration.
- Annotations
Constructors
- PrismStateViewStyle({TextStyle? messageStyle, Color? errorColor, Color? iconColor, Color? accentColor, Duration? transitionDuration, double? iconSize, EdgeInsetsGeometry? padding, double? gap, String? retryLabel})
-
Creates a style.
const
Properties
- accentColor → Color?
-
Color of the loading indicator. Defaults to the theme's primary colour.
final
- errorColor → Color?
-
Color of the error icon. Defaults to PrismColors.error.
final
- gap → double?
-
Gap between the icon, message and action. Defaults to
PrismTokens.spaceSm.final - hashCode → int
-
The hash code for this object.
no setterinherited
- iconColor → Color?
-
Color of the empty-state icon. Defaults to the theme's outline colour.
final
- iconSize → double?
-
Size of the status icon. Defaults to
PrismTokens.spaceXxl.final - messageStyle → TextStyle?
-
Text style for status messages. Defaults to
titleMedium.final - padding → EdgeInsetsGeometry?
-
Padding around the state. Defaults to
PrismTokens.spaceLg.final - retryLabel → String?
-
Label for the retry button. Defaults to
Retry.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- transitionDuration → Duration?
-
Duration of the cross-fade between states. Defaults to
PrismTokens.durationMedium.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolve(
BuildContext context) → PrismStateViewStyle -
Returns a copy with unset fields resolved against
context. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited