buildButtomBox function

Widget buildButtomBox(
  1. Animation _animation, {
  2. required double width,
  3. required double height,
  4. required bool isDarkMode,
  5. required bool isRectBox,
  6. required bool isPurplishMode,
  7. required AlignmentGeometry beginAlign,
  8. required AlignmentGeometry endAlign,
  9. required bool hasCustomColors,
  10. required List<Color> colors,
  11. bool isVideoShimmer = false,
})

Implementation

Widget buildButtomBox(Animation _animation,
    {required double width,
    required double height,
    required bool isDarkMode,
    required bool isRectBox,
    required bool isPurplishMode,
    required AlignmentGeometry beginAlign,
    required AlignmentGeometry endAlign,
    required bool hasCustomColors,
    required List<Color> colors,
    bool isVideoShimmer = false}) {
  return Container(
    margin: EdgeInsets.only(top: 20.0, bottom: 20.0),
    height: isVideoShimmer ? width * 0.2 : width * 0.2,
    width: isVideoShimmer ? width * 0.25 : width * 0.2,
    decoration: customBoxDecoration(
        animation: _animation,
        isDarkMode: isDarkMode,
        isPurplishMode: isPurplishMode,
        isRectBox: isRectBox,
        beginAlign: beginAlign,
        endAlign: endAlign,
        hasCustomColors: hasCustomColors,
        colors: colors.length == 3 ? colors : defaultColors),
  );
}