CustomButton constructor
const
CustomButton({
- Key? key,
- required AppTheme theme,
- required String text,
- EdgeInsets padding = const EdgeInsets.symmetric(vertical: 5, horizontal: 25),
- double borderRadius = 24,
- double textSize = 14.0,
- double height = 40,
- double width = 140,
- IconData? icon,
- double iconSize = 20,
- Color iconColor = Colors.white,
- void onPressed()?,
Implementation
const CustomButton({
super.key,
required this.theme,
required this.text,
this.padding = const EdgeInsets.symmetric(vertical: 5, horizontal: 25),
this.borderRadius = 24,
this.textSize = 14.0,
this.height = 40,
this.width = 140,
this.icon,
this.iconSize = 20,
this.iconColor = Colors.white,
this.onPressed,
});