AppButton constructor

const AppButton({
  1. Key? key,
  2. required String buttonText,
  3. GestureTapCallback? onPressed,
  4. ButtonWidth buttonWidth = ButtonWidth.large,
  5. EdgeInsets padding = const EdgeInsets.all(10),
  6. Duration duration = const Duration(seconds: 5),
  7. Widget? leadingWidget,
  8. Color? textColor,
  9. Color? backgroundColor,
  10. OutlinedBorder outlinedBorder = const StadiumBorder(),
})

Implementation

const AppButton({
  Key? key,
  required this.buttonText,
  this.onPressed,
  this.buttonWidth = ButtonWidth.large,
  this.padding = const EdgeInsets.all(10),
  this.duration = const Duration(seconds: 5),
  this.leadingWidget,
  this.textColor,
  this.backgroundColor,
  this.outlinedBorder = const StadiumBorder(),
}) : super(key: key);