FxButton constructor
FxButton({
- Key? key,
- required String label,
- required VoidCallback? onPressed,
- FxButtonVariant variant = FxButtonVariant.primary,
- bool isLoading = false,
- bool isFullWidth = true,
- Widget? prefixIcon,
- Widget? suffixIcon,
- double height = 0,
- Color? foregroundColor,
- Color? backgroundColor,
- Color? borderColor,
- EdgeInsetsGeometry? margin,
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,
this.margin,
});