DynamicButton constructor
const
DynamicButton({
- Key? key,
- required String text,
- required VoidCallback onTap,
- Widget? prefixIcon,
- Widget? suffixIcon,
- Widget? child,
- EdgeInsetsGeometry? padding,
- BorderRadius? borderRadius,
- dynamic backgroundColor,
- Color? textColor,
- bool isOutline = false,
- Color? borderColor,
- TextStyle? customTextStyle,
Implementation
const DynamicButton({
super.key,
required this.text,
required this.onTap,
this.prefixIcon,
this.suffixIcon,
this.child,
this.padding,
this.borderRadius,
this.backgroundColor,
this.textColor,
this.isOutline = false,
this.borderColor,
this.customTextStyle,
});