FxButton constructor
const
FxButton({
- required String text,
- required VoidCallback onPressed,
- Key? key,
- Color? color = FxColor.primary,
- Color? outlineColor = FxColor.primary,
- BtnShape shape = BtnShape.rounded,
- BtnSize size = BtnSize.normal,
- BtnType type = BtnType.solid,
- bool isBlock = false,
- IconData? prefixIcon,
- IconData? suffixIcon,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- BorderRadius? radius,
- List<
BoxShadow> ? shadow, - Color? textColor,
- Color? iconColor,
- bool isSplashColor = false,
- MainAxisAlignment? mainAxisAlignment,
- double? prefixIconSize,
- double? suffixIconSize,
- TextStyle? textStyle,
constructor
Implementation
const FxButton({
required this.text,
required this.onPressed,
super.key,
this.color = FxColor.primary,
this.outlineColor = FxColor.primary,
this.shape = BtnShape.rounded,
this.size = BtnSize.normal,
this.type = BtnType.solid,
this.isBlock = false,
this.prefixIcon,
this.suffixIcon,
this.padding,
this.margin,
this.radius,
this.shadow,
this.textColor,
this.iconColor,
this.isSplashColor = false,
this.mainAxisAlignment,
this.prefixIconSize,
this.suffixIconSize,
this.textStyle,
});