SkeletonLoader constructor

const SkeletonLoader({
  1. Key? key,
  2. required Widget child,
  3. required bool isLoading,
  4. Color baseColor = const Color(0xFFE0E0E0),
  5. Color highlightColor = const Color(0xFFEEEEEE),
  6. Duration shimmerDuration = const Duration(milliseconds: 1500),
  7. Duration transitionDuration = const Duration(milliseconds: 300),
})

Creates a skeleton loader widget.

The child and isLoading parameters are required. All other parameters have default values that can be customized.

Implementation

const SkeletonLoader({
  super.key,
  required this.child,
  required this.isLoading,
  this.baseColor = const Color(0xFFE0E0E0),
  this.highlightColor = const Color(0xFFEEEEEE),
  this.shimmerDuration = const Duration(milliseconds: 1500),
  this.transitionDuration = const Duration(milliseconds: 300),
});