buildButtomBox function
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,
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),
);
}