SlideDoneNS constructor
SlideDoneNS({
- Key? key,
- double width = 250.0,
- double height = 60.0,
- ShapeBorder? shape,
- ShapeBorder? buttonShape,
- double elevation = 3.0,
- double buttonElevation = 2.0,
- Color backgroundColor = const Color.fromRGBO(255, 255, 255, 1.0),
- Color startColor = Colors.blue,
- Color endColor = Colors.red,
- Widget? startIcon,
- Widget? endIcon,
- Widget? startedIcon,
- Widget? endedIcon,
- Widget? startLoadWidget,
- Widget? endLoadWidget,
- double padding = 3.0,
- Widget? startFillView,
- Widget? endFillView,
- int startedDelay = 1000,
- int endedDelay = 1000,
- Widget startText = const Text("Right slide on", style: TextStyle(fontSize: 20.0)),
- Widget startingText = const Text("Turn on...", style: TextStyle(fontSize: 20.0)),
- Widget startedText = const Text("It's done", style: TextStyle(fontSize: 20.0)),
- Widget endText = const Text("Left slide off", style: TextStyle(fontSize: 20.0)),
- Widget endingText = const Text("Turn off...", style: TextStyle(fontSize: 20.0)),
- Widget endedText = const Text("It's done", style: TextStyle(fontSize: 20.0)),
- OnStart? onStart,
- OnEnd? onEnd,
- 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);