CarouselButton constructor

const CarouselButton({
  1. Key? key,
  2. required String text,
  3. Widget? icon,
  4. required VoidCallback onPressed,
  5. TextStyle? textStyle,
  6. Color backgroundColor = Colors.black,
  7. Color textColor = Colors.white,
  8. EdgeInsetsGeometry padding = const EdgeInsets.symmetric(vertical: 12, horizontal: 16),
  9. double borderRadius = 8,
})

Implementation

const CarouselButton({
  super.key,
  required this.text,
  this.icon,
  required this.onPressed,
  this.textStyle,
  this.backgroundColor = Colors.black,
  this.textColor = Colors.white,
  this.padding = const EdgeInsets.symmetric(vertical: 12, horizontal: 16),
  this.borderRadius = 8,
});