CustomButton constructor
CustomButton({
- Key? key,
- required String? text,
- required Function? onPressed,
- IconData? icon,
- Widget? leading,
- Widget? trailing,
- Widget? content,
- Color? color,
- Color? textColor,
- bool loading = false,
- bool small = false,
- bool expanded = false,
- bool outlined = false,
- Color? bgColor,
- bool enableGlass = false,
- int? glassDensityMultiplier,
- Color? glassTintColor,
- double? glassBlur,
- double? borderRadius,
Implementation
CustomButton(
{Key? key,
required this.text,
required this.onPressed,
this.icon,
this.leading,
this.trailing,
this.content,
this.color,
this.textColor,
this.loading = false,
this.small = false,
this.expanded = false,
this.outlined = false,
this.bgColor,
this.enableGlass = false,
this.glassDensityMultiplier,
this.glassTintColor,
this.glassBlur,
this.borderRadius,
})
: super(key: key);