SlideDoneNS constructor

SlideDoneNS({
  1. Key? key,
  2. double width = 250.0,
  3. double height = 60.0,
  4. ShapeBorder? shape,
  5. ShapeBorder? buttonShape,
  6. double elevation = 3.0,
  7. double buttonElevation = 2.0,
  8. Color backgroundColor = const Color.fromRGBO(255, 255, 255, 1.0),
  9. Color startColor = Colors.blue,
  10. Color endColor = Colors.red,
  11. Widget? startIcon,
  12. Widget? endIcon,
  13. Widget? startedIcon,
  14. Widget? endedIcon,
  15. Widget? startLoadWidget,
  16. Widget? endLoadWidget,
  17. double padding = 3.0,
  18. Widget? startFillView,
  19. Widget? endFillView,
  20. int startedDelay = 1000,
  21. int endedDelay = 1000,
  22. Widget startText = const Text("Right slide on", style: TextStyle(fontSize: 20.0)),
  23. Widget startingText = const Text("Turn on...", style: TextStyle(fontSize: 20.0)),
  24. Widget startedText = const Text("It's done", style: TextStyle(fontSize: 20.0)),
  25. Widget endText = const Text("Left slide off", style: TextStyle(fontSize: 20.0)),
  26. Widget endingText = const Text("Turn off...", style: TextStyle(fontSize: 20.0)),
  27. Widget endedText = const Text("It's done", style: TextStyle(fontSize: 20.0)),
  28. OnStart? onStart,
  29. OnEnd? onEnd,
  30. SlideStatus status = SlideStatus.START,
})

Implementation

SlideDoneNS({
  Key? key,
  this.width = 250.0,
  this.height = 60.0,
  this.shape,
  this.buttonShape,
  this.elevation = 3.0,
  this.buttonElevation = 2.0,
  this.backgroundColor = const Color.fromRGBO(255, 255, 255, 1.0),
  this.startColor = Colors.blue,
  this.endColor = Colors.red,
  this.startIcon,
  this.endIcon,
  this.startedIcon,
  this.endedIcon,
  this.startLoadWidget,
  this.endLoadWidget,
  this.padding = 3.0,
  this.startFillView,
  this.endFillView,
  this.startedDelay = 1000,
  this.endedDelay = 1000,
  this.startText = const Text("Right slide on",
    style: TextStyle(
        fontSize: 20.0
    ),
  ),
  this.startingText = const Text("Turn on...",
    style: TextStyle(
        fontSize: 20.0
    ),
  ),
  this.startedText = const Text("It's done",
    style: TextStyle(
        fontSize: 20.0
    ),
  ),
  this.endText = const Text("Left slide off",
    style: TextStyle(
        fontSize: 20.0
    ),
  ),
  this.endingText = const Text("Turn off...",
    style: TextStyle(
        fontSize: 20.0
    ),
  ),
  this.endedText = const Text("It's done",
    style: TextStyle(
        fontSize: 20.0
    ),
  ),
  this.onStart,
  this.onEnd,
  this.status = SlideStatus.START,
}): super(key: key);