CustomLoadingButton constructor

const CustomLoadingButton({
  1. Key? key,
  2. required String text,
  3. required FutureOr<void> onPressed(),
  4. Color color = Colors.blue,
  5. Color textColor = Colors.white,
  6. Color progressColor = Colors.white,
  7. double borderRadius = 12,
  8. EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 20, vertical: 12),
  9. bool fullWidth = false,
  10. double? elevation,
  11. double? minWidth,
})

Implementation

const CustomLoadingButton({
  super.key,
  required this.text,
  required this.onPressed,
  this.color = Colors.blue,
  this.textColor = Colors.white,
  this.progressColor = Colors.white,
  this.borderRadius = 12,
  this.padding = const EdgeInsets.symmetric(horizontal: 20, vertical: 12),
  this.fullWidth = false,
  this.elevation,
  this.minWidth,
});