SkeletonTheme class
Theme configuration for skeleton loading effects.
Provides styling properties for skeleton loading animations including pulse timing, colors, and animation behavior. These properties integrate with the shadcn design system and work with the underlying Skeletonizer package.
The theme enables consistent skeleton styling across the application while allowing for customization of animation characteristics and visual appearance.
Constructors
- SkeletonTheme({Duration? duration, Color? fromColor, Color? toColor, bool? enableSwitchAnimation})
-
Creates a SkeletonTheme.
const
Properties
- duration → Duration?
-
The duration of one complete pulse animation cycle.
final
- enableSwitchAnimation → bool?
-
Whether to enable smooth transitions when switching between skeleton states.
final
- fromColor → Color?
-
The starting color of the pulse animation.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- toColor → Color?
-
The ending color of the pulse animation.
final
Methods
-
copyWith(
{ValueGetter< Duration?> ? duration, ValueGetter<Color?> ? fromColor, ValueGetter<Color?> ? toColor, ValueGetter<bool?> ? enableSwitchAnimation}) → SkeletonTheme - Returns a copy of this theme with the given fields replaced.
-
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.
override