ShimmerA constructor
const
ShimmerA({
- Key? key,
- LinearGradient? ownGradient,
- required bool isShimmer,
- Axis shimmerAxis = Axis.vertical,
- List<
ShimmerAWidgetParent> ? shimmerWidget, - int shimmerCount = 1,
- ShimmerADirection direction = ShimmerADirection.ltr,
- required Widget child,
- Duration duration = const Duration(milliseconds: 1500),
- bool isScrolling = false,
Implementation
const ShimmerA({
super.key,
///[ownGradient] if you need custom gradient.
///Your own LinearGradient is provided[ownGradient].
///example
///const LinearGradient(
/// colors: [
/// Color(0xFFEBEBF4),
/// Color(0xFFEBEBF4),
/// Color(0xFFF4F4F4),
/// Color(0xFFEBEBF4),
/// Color(0xFFEBEBF4),
/// ],
/// stops: [0.0, 0.35, 0.5, 0.65, 1.0],
/// // begin: Alignment(-1.0, -0.3),
/// // end: Alignment(1.0, 0.3),
/// begin: Alignment.centerRight,
/// end: Alignment.centerLeft,
/// tileMode: TileMode.clamp,
/// )
this.ownGradient,
/// [isLoading] Get the bool value to showing [shimmer] widget is enabled or disabled.
required this.isShimmer,
///[shimmerAxis] get Axis value.
///[shimmerAxis] default value set [Axis.vertical]
///This determines whether the [shimmerWidget] will display horizontally or vertically.
this.shimmerAxis = Axis.vertical,
///[shimmerWidget] get list of [ShimmerWidget].
///If you don't provide [shimmerWidget].
/// Then the default shimmer animation is shown.
this.shimmerWidget,
///[shimmerCount] get int value.
///Counts how many [shimmerWidget] widgets will show.
this.shimmerCount = 1,
///
/// An enum defines all supported directions of shimmer effect
///
/// * [ShimmerADirection.ltr] left to right direction
/// * [ShimmerADirection.rtl] right to left direction
/// * [ShimmerADirection.ttb] top to bottom direction
/// * [ShimmerADirection.btt] bottom to top direction
///
this.direction = ShimmerADirection.ltr,
/// [child] The layout you want to see when finished loading.
/// [child] has granted viewing privileges to this layout.
required this.child,
this.duration = const Duration(milliseconds: 1500),
this.isScrolling = false,
});