FxButton constructor

FxButton({
  1. Key? key,
  2. required String label,
  3. required VoidCallback? onPressed,
  4. FxButtonVariant variant = FxButtonVariant.primary,
  5. bool isLoading = false,
  6. bool isFullWidth = true,
  7. Widget? prefixIcon,
  8. Widget? suffixIcon,
  9. double height = 0,
  10. Color? foregroundColor,
  11. Color? backgroundColor,
  12. Color? borderColor,
})

Implementation

FxButton({
  super.key,
  required this.label,
  required this.onPressed,
  this.variant = FxButtonVariant.primary,
  this.isLoading = false,
  this.isFullWidth = true,
  this.prefixIcon,
  this.suffixIcon,
  this.height = 0,
  this.foregroundColor,
  this.backgroundColor,
  this.borderColor,
});