CustomLoadingButton constructor
const
CustomLoadingButton({
- Key? key,
- required String text,
- required FutureOr<
void> onPressed(), - Color color = Colors.blue,
- Color textColor = Colors.white,
- Color progressColor = Colors.white,
- double borderRadius = 12,
- EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 20, vertical: 12),
- bool fullWidth = false,
- double? elevation,
- 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,
});