CommonButton constructor

const CommonButton({
  1. Key? key,
  2. VoidCallback? onTap,
  3. String? buttonText,
  4. Widget? buttonTextWidget,
  5. Color? textColor = Colors.white,
  6. Color? backgroundColor,
  7. EdgeInsetsGeometry? padding,
  8. bool? isClickable = true,
  9. double radius = 24,
  10. double? height = 48,
  11. IconData? icon = Icons.arrow_forward,
  12. bool isIcon = false,
})

Implementation

const CommonButton({
  Key? key,
  this.onTap,
  this.buttonText,
  this.buttonTextWidget,
  this.textColor = Colors.white,
  this.backgroundColor,
  this.padding,
  this.isClickable = true,
  this.radius = 24,
  this.height = 48,
  this.icon = Icons.arrow_forward,
  this.isIcon = false
}) : super(key: key);