DynamicButton constructor

const DynamicButton({
  1. Key? key,
  2. required String text,
  3. required VoidCallback onTap,
  4. Widget? prefixIcon,
  5. Widget? suffixIcon,
  6. Widget? child,
  7. EdgeInsetsGeometry? padding,
  8. BorderRadius? borderRadius,
  9. dynamic backgroundColor,
  10. Color? textColor,
  11. bool isOutline = false,
  12. Color? borderColor,
  13. 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,
});