AppPrimaryButton constructor
const
AppPrimaryButton({
- Key? key,
- required String label,
- IconData? icon,
- required VoidCallback? onPressed,
- bool isLoading = false,
- bool isDisabled = false,
- double height = 42,
- double borderRadius = 8,
- Color backgroundColor = const Color(0xFF593BF2),
- bool expanded = false,
- bool useShadow = true,
- bool useGradient = true,
- TextStyle? labelStyle,
Implementation
const AppPrimaryButton({
super.key,
required this.label,
this.icon,
required this.onPressed,
this.isLoading = false,
this.isDisabled = false,
this.height = 42,
this.borderRadius = 8,
this.backgroundColor = const Color(0xFF593BF2),
this.expanded = false,
this.useShadow = true,
this.useGradient = true,
this.labelStyle,
});