BaseButton constructor
const
BaseButton({
- Key? key,
- required String title,
- required VoidCallback onPressed,
- ButtonType type = ButtonType.primary,
- bool isFillWidth = false,
- bool isDisabled = false,
- Color? color,
- Color? borderColor,
- double? height,
- Color? textColor,
- double? paddingVertical,
- double? paddingHorizontal,
- BorderRadiusGeometry? borderRadius,
- double? fontSize,
Implementation
const BaseButton({
super.key,
required this.title,
required this.onPressed,
this.type = ButtonType.primary,
this.isFillWidth = false,
this.isDisabled = false,
this.color,
this.borderColor,
this.height,
this.textColor,
this.paddingVertical,
this.paddingHorizontal,
this.borderRadius,
this.fontSize,
});