LoadingButton constructor

const LoadingButton({
  1. Key? key,
  2. required String text,
  3. required VoidCallback? onPressed,
  4. bool isLoading = false,
  5. double height = 48,
  6. double? width,
  7. double borderRadius = 8,
  8. Color backgroundColor = Colors.blue,
  9. Color loadingColor = Colors.white,
  10. TextStyle? textStyle,
  11. double elevation = 2,
  12. IconData? icon,
})

Implementation

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