oneShimmerItem function

dynamic oneShimmerItem(
  1. double _width,
  2. double _height,
  3. Animation<double> _animation
)

Implementation

oneShimmerItem(double _width, double _height, Animation<double> _animation){
  return AnimatedBuilder(
      animation: _animation,
      builder: (BuildContext context, Widget? child) {
        return Container(
          width: _width,
          height: _height,
          decoration: customBoxDecoration(
              animation: _animation,
              isRectBox: true,
              isPurplishMode: false,
              isDarkMode: aTheme.darkMode,
              hasCustomColors: false,
              colors: defaultColors),
        );
      }
  );
}