ShimmerUtils class
Utility class for shimmer-related calculations and builders.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
Static Methods
-
cardPlaceholder(
{required BuildContext context, double? height, bool showImage = true, bool showTitle = true, bool showDescription = true}) → Widget - Builds a card shimmer placeholder.
-
circlePlaceholder(
{required BuildContext context, double? size}) → Widget - Builds a circular shimmer placeholder (for avatars).
-
createShimmerDecoration(
{required Color baseColor, required double borderRadius}) → BoxDecoration - Creates a shimmer box decoration.
-
createShimmerGradient(
{required Color baseColor, required Color highlightColor, required double animationValue}) → LinearGradient - Creates a shimmer gradient for animation.
-
gridItemPlaceholder(
{required BuildContext context, double? aspectRatio}) → Widget - Builds a grid item shimmer placeholder.
-
listItemPlaceholder(
{required BuildContext context, bool showAvatar = true, bool showSubtitle = true, bool showTrailing = false}) → Widget - Builds a list item shimmer placeholder.
-
rectanglePlaceholder(
{required BuildContext context, double? width, double? height, double? borderRadius}) → Widget - Builds a simple rectangular shimmer placeholder.
-
textPlaceholder(
{required BuildContext context, double? width, double? height}) → Widget - Builds a text-like shimmer placeholder.