MobiKulSliderButton constructor

const MobiKulSliderButton({
  1. Key? key,
  2. TextStyle? textStyle,
  3. required String text,
  4. Color backgroundColor = Colors.black,
  5. Color foregroundColor = Colors.white,
  6. List<Color>? gradientColor,
  7. IconData icon = Icons.arrow_forward,
  8. double iconSize = 16,
  9. Duration duration = const Duration(seconds: 1),
  10. double? borderRadius,
  11. required VoidCallback onPressed,
  12. 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),
});