RoundedButton constructor
const
RoundedButton({
- Key? key,
- String text = "",
- required Function onPressed,
- double? width,
- double? height,
- Color? color,
- Color? borderColor,
- double? borderWidth,
- Color? textColor,
- IconData? icon,
- double? iconSize,
- Color? iconColor,
- ValueNotifier<
BoxShadow> ? shadow, - double margin = 0.0,
- double radius = 24,
- bool isDisabled = false,
A customizable rounded button widget with optional icon and shadow.
The onPressed parameter must not be null.
The text parameter must not be empty if icon is null.
Implementation
const RoundedButton({
super.key,
this.text = "",
required this.onPressed,
this.width,
this.height,
this.color,
this.borderColor,
this.borderWidth,
this.textColor,
this.icon,
this.iconSize,
this.iconColor,
this.shadow,
this.margin = 0.0,
this.radius = 24,
this.isDisabled = false,
});