Shimmer.title constructor
Shimmer.title({})
A shimmer effect widget.
Inspired by: https://github.com/hnvn/flutter_shimmer/blob/master/lib/shimmer.dart
Implementation
Shimmer.title({
super.key,
Color backgroundColor = _defaultBackgroundColor,
double borderRadius = _defaultBorderRadius,
Gradient? gradient,
this.period = _defaultPeriod,
}) : gradient = gradient ?? _getDefaultGradient(backgroundColor),
child = Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisSize: MainAxisSize.min,
children: <Widget>[
_Container(
borderRadius: borderRadius,
color: backgroundColor,
),
const SizedBox(height: 8.0),
_Container(
borderRadius: borderRadius,
color: backgroundColor,
),
],
);