IDSButton constructor

const IDSButton({
  1. Key? key,
  2. required String title,
  3. required VoidCallback onPressed,
  4. Color backgroundColor = Colors.blue,
  5. Color textColor = Colors.white,
  6. double fontSize = 18,
  7. FontWeight fontWeight = FontWeight.bold,
  8. double height = 60,
  9. double width = double.infinity,
  10. double borderRadius = 15,
  11. EdgeInsetsGeometry padding = const EdgeInsets.all(0),
  12. TextStyle? textStyle,
  13. BoxBorder? border,
})

Implementation

const IDSButton({
  super.key,
  required this.title,
  required this.onPressed,
  this.backgroundColor = Colors.blue,
  this.textColor = Colors.white,
  this.fontSize = 18,
  this.fontWeight = FontWeight.bold,
  this.height = 60,
  this.width = double.infinity,
  this.borderRadius = 15,
  this.padding = const EdgeInsets.all(0),
  this.textStyle,
  this.border,
});