AppButton constructor
const
AppButton({
- Key? key,
- required ButtonType type,
- VoidCallback? onPressed,
- ButtonVariant variant = ButtonVariant.elevated,
- String? customLabel,
- bool isLoading = false,
- bool fullWidth = true,
- Color? customColor,
- Color? customTextColor,
- double? customBorderRadius,
- double? customElevation,
- EdgeInsetsGeometry? customPadding,
- TextStyle? customTextStyle,
- double? customIconSize,
- BorderSide? customBorderSide,
- Size? customMinSize,
- Widget? customChild,
- 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,
});