PrimaryButton constructor

const PrimaryButton(
  1. String title, {
  2. double width = 200,
  3. double height = 44,
  4. VoidCallback? onPressed,
  5. Color? backgroundColor,
  6. bool isFontBold = false,
  7. bool isLoading = false,
  8. Color? textColor,
  9. IconData? preFixIcon,
  10. String? preFixImage,
  11. Color? disabledColor,
  12. double? alpha,
  13. Key? key,
})

Creates a fixed-size primary button.

Implementation

const PrimaryButton(
    this.title, {
      this.width = 200,
      this.height = 44,
      this.onPressed,
      this.backgroundColor,
      this.isFontBold = false,
      this.isLoading = false,
      this.textColor,
      this.preFixIcon,
      this.preFixImage,
      this.disabledColor,
      this.alpha,
      super.key,
    });