ShimmerAiExtension extension
Extension on all widgets to enable shimmer effect with a single line.
Usage:
MyWidget().withShimmerAi(loading: isLoading)
- on
Methods
-
withShimmerAi(
{required bool loading, ShimmerAiConfig? config, Color? baseColor, Color? highlightColor, Duration? duration, ShimmerDirection? direction, double? angle, double? borderRadius, bool? repeat, int? loopCount, LinearGradient? customGradient, double? width, double? height, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, AlignmentGeometry? alignment, BoxConstraints? constraints, Decoration? decoration}) → Widget -
Available on Widget, provided by the ShimmerAiExtension extension
Adds shimmer effect to the current widget whenloadingis true. Shows the original widget whenloadingis false.