SlidingWidget constructor

const SlidingWidget({
  1. Key? key,
  2. double height = 70,
  3. double width = 300,
  4. Color backgroundColor = Colors.white,
  5. Color? backgroundColorEnd,
  6. Color foregroundColor = Colors.blueAccent,
  7. Color iconColor = Colors.white,
  8. BoxShadow? shadow,
  9. Widget child = const Icon(Icons.chevron_right, color: Colors.white, size: 35),
  10. String label = "Slide to proceed",
  11. TextStyle? labelStyle,
  12. required VoidCallback action,
  13. VoidCallback? onTapDown,
  14. VoidCallback? onTapUp,
  15. BorderRadius? foregroundShape,
  16. BorderRadius? backgroundShape,
  17. 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);