ShimmerCard constructor
const
ShimmerCard({
- Key? key,
- double? height,
- double? width,
- double borderRadius = 4,
- Duration animationDuration = const Duration(milliseconds: 1000),
- Color backgroundColor = const Color(0xFFE5E5E5),
- Color shimmerColor = const Color(0xFFF0F0F0),
- Alignment beginAlignment = Alignment.centerLeft,
- 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);