FxButton constructor

FxButton({
  1. required String text,
  2. required VoidCallback onPressed,
  3. IconData? leadingIcon,
  4. IconData? trailingIcon,
  5. EdgeInsetsGeometry? padding,
  6. EdgeInsetsGeometry? margin,
  7. BorderRadius? radius,
  8. Color? color,
  9. List<BoxShadow>? shadow,
  10. Color? textColor,
  11. Color? iconColor,
  12. Color outlineColor = FxColors.primary,
  13. BtnShape shape = BtnShape.rounded,
  14. BtnSize size = BtnSize.normal,
  15. 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,
});