FxButton constructor
FxButton({
- required String text,
- required VoidCallback onPressed,
- IconData? leadingIcon,
- IconData? trailingIcon,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- BorderRadius? radius,
- Color? color,
- List<
BoxShadow> ? shadow, - Color? textColor,
- Color? iconColor,
- Color outlineColor = FxColors.primary,
- BtnShape shape = BtnShape.rounded,
- BtnSize size = BtnSize.normal,
- BtnType type = BtnType.solid,
Implementation
FxButton({
required this.text,
required this.onPressed,
this.leadingIcon,
this.trailingIcon,
this.padding,
this.margin,
this.radius,
this.color,
this.shadow,
this.textColor,
this.iconColor,
this.outlineColor = FxColors.primary,
this.shape = BtnShape.rounded,
this.size = BtnSize.normal,
this.type = BtnType.solid,
});