AsyncLoadingButton constructor

const AsyncLoadingButton({
  1. Key? key,
  2. required String text,
  3. required Future<void> onPressed(),
  4. double height = 48,
  5. double? width,
  6. double borderRadius = 8,
  7. Color backgroundColor = Colors.blue,
  8. Color loadingColor = Colors.white,
  9. TextStyle? textStyle,
  10. double elevation = 2,
  11. IconData? icon,
})

Implementation

const AsyncLoadingButton({
  super.key,
  required this.text,
  required this.onPressed,
  this.height = 48,
  this.width,
  this.borderRadius = 8,
  this.backgroundColor = Colors.blue,
  this.loadingColor = Colors.white,
  this.textStyle,
  this.elevation = 2,
  this.icon,
});