CarouselButton constructor
const
CarouselButton({
- Key? key,
- required String text,
- Widget? icon,
- required VoidCallback onPressed,
- TextStyle? textStyle,
- Color backgroundColor = Colors.black,
- Color textColor = Colors.white,
- EdgeInsetsGeometry padding = const EdgeInsets.symmetric(vertical: 12, horizontal: 16),
- 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,
});