OmegaButton constructor
OmegaButton({
- required String text,
- IconData? icon,
- double? iconSize,
- double? width,
- required double? height,
- double? borderRadius = 10.0,
- double? fontSize = 14,
- double? iconSpace = 0,
- dynamic onPressed()?,
- Color color = Colors.green,
- Color iconColor = Colors.grey,
- Color textColor = Colors.white,
- TextStyle? textStyle,
- 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,
});