VarxButton constructor

const VarxButton({
  1. Key? key,
  2. VarxButtonType type = VarxButtonType.primary,
  3. dynamic onTap()?,
  4. required String label,
  5. Widget? prefixIcon,
  6. IconData? prefixIconData,
  7. Widget? suffixIcon,
  8. IconData? suffixIconData,
  9. Widget? loadingIndicator,
  10. bool isLoading = false,
  11. BorderRadius? borderRadius,
  12. Color? loadingColor,
  13. ButtonStyle? buttonStyle,
  14. Color? primary,
  15. Color? onprimary,
  16. bool fullWidth = true,
})

Implementation

const VarxButton({
  Key? key,
  this.type = VarxButtonType.primary,
  this.onTap,
  required this.label,
  this.prefixIcon,
  this.prefixIconData,
  this.suffixIcon,
  this.suffixIconData,
  this.loadingIndicator,
  this.isLoading = false,
  this.borderRadius,
  this.loadingColor,
  this.buttonStyle,
  this.primary,
  this.onprimary,
  this.fullWidth = true,
}) : super(key: key);