TxLoading.fromColors constructor
TxLoading.fromColors({
- required Color baseColor,
- required Color highlightColor,
- Widget? child,
- Key? key,
- TextStyle? textStyle,
- IconThemeData? iconTheme,
- Duration? period,
- ShimmerDirection? direction,
Implementation
TxLoading.fromColors({
required Color baseColor,
required Color highlightColor,
this.child,
super.key,
this.textStyle,
this.iconTheme,
this.period,
this.direction,
}) : gradient = LinearGradient(
begin: Alignment.topLeft,
end: Alignment.centerRight,
colors: <Color>[
baseColor,
baseColor,
highlightColor,
baseColor,
baseColor
],
stops: const <double>[
0.0,
0.35,
0.5,
0.65,
1.0
]);