PrimaryButton.infinity constructor

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

Creates a full-width primary button.

Implementation

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