OmegaButton constructor

OmegaButton({
  1. required String text,
  2. IconData? icon,
  3. double? iconSize,
  4. double? width,
  5. required double? height,
  6. double? borderRadius = 10.0,
  7. double? fontSize = 14,
  8. double? iconSpace = 0,
  9. dynamic onPressed()?,
  10. Color color = Colors.green,
  11. Color iconColor = Colors.grey,
  12. Color textColor = Colors.white,
  13. TextStyle? textStyle,
  14. TextAlign textAlign = TextAlign.center,
})

Implementation

OmegaButton({
  required this.text,
  this.icon,
  this.iconSize,
  this.width,
  required this.height,
  this.borderRadius = 10.0,
  this.fontSize = 14,
  this.iconSpace = 0,
  this.onPressed,
  this.color = Colors.green,
  this.iconColor = Colors.grey,
  this.textColor = Colors.white,
  this.textStyle,
  this.textAlign = TextAlign.center,
});