ToggleSlideComponent constructor
const
ToggleSlideComponent({
- required void onPressed(),
- double height = 40,
- double width = 300,
- String label = '',
- Color textColor = Colors.white,
- Color color = Colors.purpleAccent,
- Color slideColor = Colors.purple,
- double iconSize = 24,
- IconData icon = Icons.check_circle_outline_rounded,
- Duration slideDuration = const Duration(milliseconds: 200),
- Duration completedAnimation = const Duration(milliseconds: 500),
- double borderRadius = 5,
- Key? key,
Implementation
const ToggleSlideComponent(
{required this.onPressed,
this.height = 40,
this.width = 300,
this.label = '',
this.textColor = Colors.white,
this.color = Colors.purpleAccent,
this.slideColor = Colors.purple,
this.iconSize = 24,
this.icon = Icons.check_circle_outline_rounded,
this.slideDuration = const Duration(milliseconds: 200),
this.completedAnimation = const Duration(milliseconds: 500),
this.borderRadius = 5,
Key? key})
: super(key: key);