FlutterSlide constructor
const
FlutterSlide({
- Key? key,
- required Function action,
- required Widget child,
- double radius = 100,
- bool shimmer = true,
- double height = 70,
- double? buttonSize,
- double width = 250,
- Alignment alignLabel = const Alignment(-0.2, 0),
- Color backgroundColor = const Color(0xffe0e0e0),
- Color baseColor = Colors.black87,
- Color buttonColor = Colors.white,
- Color highlightedColor = const Color.fromARGB(255, 79, 76, 76),
- Text? label,
- bool dismissible = true,
- double dismissThresholds = 0.75,
- bool disable = false,
- BoxDecoration? decoration,
- BoxDecoration? disabledDecoration,
- BoxDecoration? disabledButtonDecoration,
- BoxDecoration? buttonDecoration,
Implementation
const FlutterSlide(
{Key? key,
required this.action,
required this.child,
this.radius = 100,
this.shimmer = true,
this.height = 70,
this.buttonSize,
this.width = 250,
this.alignLabel = const Alignment(-0.2, 0),
this.backgroundColor = const Color(0xffe0e0e0),
this.baseColor = Colors.black87,
this.buttonColor = Colors.white,
this.highlightedColor = const Color.fromARGB(255, 79, 76, 76),
this.label,
this.dismissible = true,
this.dismissThresholds = 0.75,
this.disable = false,
this.decoration,
this.disabledDecoration,
this.disabledButtonDecoration,
this.buttonDecoration})
: assert((buttonSize ?? 60) <= (height)),
super(key: key);