ShimmerCard constructor

const ShimmerCard({
  1. Key? key,
  2. double? height,
  3. double? width,
  4. double borderRadius = 4,
  5. Duration animationDuration = const Duration(milliseconds: 1000),
  6. Color backgroundColor = const Color(0xFFE5E5E5),
  7. Color shimmerColor = const Color(0xFFF0F0F0),
  8. Alignment beginAlignment = Alignment.centerLeft,
  9. Alignment endAlignment = Alignment.centerRight,
})

ShimmerCard(
 width: 200,
 height: 100,
 beginAlignment: Alignment.topLeft,
 endAlignment: Alignment.bottomRight,
 backgroundColor: Colors.grey.shade800,
 shimmerColor: Colors.grey.shade700,
),

Implementation

const ShimmerCard({
  Key? key,
  this.height,
  this.width,
  this.borderRadius = 4,
  this.animationDuration = const Duration(milliseconds: 1000),
  this.backgroundColor = const Color(0xFFE5E5E5),
  this.shimmerColor = const Color(0xFFF0F0F0),
  this.beginAlignment = Alignment.centerLeft,
  this.endAlignment = Alignment.centerRight,
}) : super(key: key);