PrimaryImageButton constructor

const PrimaryImageButton({
  1. Key? key,
  2. Color? activeBackgroundColor,
  3. Color? disabledBackgroundColor,
  4. Color? activeForegroundColor,
  5. Color? disabledForegroundColor,
  6. bool isLoading = false,
  7. VoidCallback? onTap,
  8. double buttonHeight = 34,
  9. double? width,
  10. double radius = 4,
  11. required String imagePath,
})

Creates a PrimaryImageButton.

The imagePath parameter must not be null.

Implementation

const PrimaryImageButton({
  super.key,
  this.activeBackgroundColor,
  this.disabledBackgroundColor,
  this.activeForegroundColor,
  this.disabledForegroundColor,
  this.isLoading = false,
  this.onTap,
  this.buttonHeight = 34,
  this.width,
  this.radius = 4,
  required this.imagePath,
});