SlidingWidget constructor
const
SlidingWidget({
- Key? key,
- double height = 70,
- double width = 300,
- Color backgroundColor = Colors.white,
- Color? backgroundColorEnd,
- Color foregroundColor = Colors.blueAccent,
- Color iconColor = Colors.white,
- BoxShadow? shadow,
- Widget child = const Icon(Icons.chevron_right, color: Colors.white, size: 35),
- String label = "Slide to proceed",
- TextStyle? labelStyle,
- required VoidCallback action,
- VoidCallback? onTapDown,
- VoidCallback? onTapUp,
- BorderRadius? foregroundShape,
- BorderRadius? backgroundShape,
- bool stickToEnd = false,
Implementation
const SlidingWidget({
super.key,
this.height = 70,
this.width = 300,
this.backgroundColor = Colors.white,
this.backgroundColorEnd,
this.foregroundColor = Colors.blueAccent,
this.iconColor = Colors.white,
this.shadow,
this.child = const Icon(
Icons.chevron_right,
color: Colors.white,
size: 35,
),
this.label = "Slide to proceed",
this.labelStyle,
required this.action,
this.onTapDown,
this.onTapUp,
this.foregroundShape,
this.backgroundShape,
this.stickToEnd = false,
}) : assert(height >= 25 && width >= 250);