MobiKulSliderButton constructor
const
MobiKulSliderButton({
- Key? key,
- TextStyle? textStyle,
- required String text,
- Color backgroundColor = Colors.black,
- Color foregroundColor = Colors.white,
- List<
Color> ? gradientColor, - IconData icon = Icons.arrow_forward,
- double iconSize = 16,
- Duration duration = const Duration(seconds: 1),
- double? borderRadius,
- required VoidCallback onPressed,
- EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 24, vertical: 14),
Implementation
const MobiKulSliderButton({
super.key,
this.textStyle,
required this.text,
this.backgroundColor = Colors.black,
this.foregroundColor = Colors.white,
this.gradientColor,
this.icon = Icons.arrow_forward,
this.iconSize = 16,
this.duration = const Duration(seconds: 1),
this.borderRadius,
required this.onPressed,
this.padding = const EdgeInsets.symmetric(horizontal: 24, vertical: 14),
});