FxButton constructor

const FxButton({
  1. required String text,
  2. required VoidCallback onPressed,
  3. Key? key,
  4. Color? color = FxColor.primary,
  5. Color? outlineColor = FxColor.primary,
  6. BtnShape shape = BtnShape.rounded,
  7. BtnSize size = BtnSize.normal,
  8. BtnType type = BtnType.solid,
  9. bool isBlock = false,
  10. IconData? prefixIcon,
  11. IconData? suffixIcon,
  12. EdgeInsetsGeometry? padding,
  13. EdgeInsetsGeometry? margin,
  14. BorderRadius? radius,
  15. List<BoxShadow>? shadow,
  16. Color? textColor,
  17. Color? iconColor,
  18. bool isSplashColor = false,
  19. MainAxisAlignment? mainAxisAlignment,
  20. double? prefixIconSize,
  21. double? suffixIconSize,
  22. 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,
});