CustomLoaderButton constructor
CustomLoaderButton({
- Key? key,
- required String text,
- required bool isLoading,
- VoidCallback? onTap,
- Color? backgroundColor,
- Color? textColor,
- double? width,
- double? height,
- double? fontSize,
- double? borderRadius,
- double? elevation,
- EdgeInsetsGeometry? margin,
- EdgeInsetsGeometry? padding,
Implementation
CustomLoaderButton({
super.key,
required super.text,
required super.isLoading,
super.onTap,
super.backgroundColor,
super.textColor,
super.width,
super.height,
super.fontSize,
super.borderRadius,
super.elevation,
super.margin,
super.padding,
}) : super(
leading: isLoading
? SizedBox(
height: 18,
width: 18,
child: CircularProgressIndicator(
color: textColor ?? Colors.white,
strokeWidth: 2,
),
)
: null,
);