AppPrimaryButton constructor

const AppPrimaryButton({
  1. Key? key,
  2. required String label,
  3. IconData? icon,
  4. required VoidCallback? onPressed,
  5. bool isLoading = false,
  6. bool isDisabled = false,
  7. double height = 42,
  8. double borderRadius = 8,
  9. Color backgroundColor = const Color(0xFF593BF2),
  10. bool expanded = false,
  11. bool useShadow = true,
  12. bool useGradient = true,
  13. 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,
});