CustomButton constructor

const CustomButton({
  1. Key? key,
  2. required AppTheme theme,
  3. required String text,
  4. EdgeInsets padding = const EdgeInsets.symmetric(vertical: 5, horizontal: 25),
  5. double borderRadius = 24,
  6. double textSize = 14.0,
  7. double height = 40,
  8. double width = 140,
  9. IconData? icon,
  10. double iconSize = 20,
  11. Color iconColor = Colors.white,
  12. 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,
});