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