AppButton constructor

const AppButton({
  1. Key? key,
  2. required ButtonType type,
  3. VoidCallback? onPressed,
  4. ButtonVariant variant = ButtonVariant.elevated,
  5. String? customLabel,
  6. bool isLoading = false,
  7. bool fullWidth = true,
  8. Color? customColor,
  9. Color? customTextColor,
  10. double? customBorderRadius,
  11. double? customElevation,
  12. EdgeInsetsGeometry? customPadding,
  13. TextStyle? customTextStyle,
  14. double? customIconSize,
  15. BorderSide? customBorderSide,
  16. Size? customMinSize,
  17. Widget? customChild,
  18. GestureConfig? gestureConfig,
})

Implementation

const AppButton({
  super.key,
  required this.type,
  this.onPressed,
  this.variant = ButtonVariant.elevated,
  this.customLabel,
  this.isLoading = false,
  this.fullWidth = true,
  this.customColor,
  this.customTextColor,
  this.customBorderRadius,
  this.customElevation,
  this.customPadding,
  this.customTextStyle,
  this.customIconSize,
  this.customBorderSide,
  this.customMinSize,
  this.customChild,
  this.gestureConfig,
});