shimmerWidget method
Implementation
Widget shimmerWidget() {
/// Dark mode value
final bool isDarkMode =
SchedulerBinding.instance.platformDispatcher.platformBrightness ==
Brightness.dark;
return Shimmer.fromColors(
baseColor: shimmerBaseColor ??
FlashColorConstant.flashGrayADADAD.withOpacity(0.3),
highlightColor: shimmerHighlightColor ??
FlashColorConstant.flashGrayADADAD.withOpacity(0.4),
child: Container(
height: height,
width: width,
color: shimmerColor ??
(isDarkMode
? FlashColorConstant.flashBlack000000
: FlashColorConstant.flashWhiteFFFFFF),
),
);
}