SliderButton constructor
SliderButton({
- required Future<
bool?> action(), - double radius = 100,
- BoxShadow? boxShadow,
- Widget? child,
- bool vibrationFlag = false,
- bool shimmer = true,
- double height = 70,
- double? buttonSize,
- double? buttonWidth,
- double width = 270,
- Alignment alignLabel = const Alignment(0.6, 0),
- Color backgroundColor = const Color(0xffe0e0e0),
- Color baseColor = Colors.black87,
- Color buttonColor = Colors.white,
- Color highlightedColor = Colors.white,
- Widget? label,
- Widget? icon,
- double dismissThresholds = 0.75,
- bool disable = false,
Implementation
SliderButton({
required this.action,
this.radius = 100,
this.boxShadow,
this.child,
this.vibrationFlag = false,
this.shimmer = true,
this.height = 70,
this.buttonSize,
this.buttonWidth,
this.width = 270,
this.alignLabel = const Alignment(0.6, 0),
this.backgroundColor = const Color(0xffe0e0e0),
this.baseColor = Colors.black87,
this.buttonColor = Colors.white,
this.highlightedColor = Colors.white,
this.label,
this.icon,
this.dismissThresholds = 0.75,
this.disable = false,
}) : assert((buttonSize ?? 60) <= (height));