SecondaryButton.infinity constructor

const SecondaryButton.infinity(
  1. String title, {
  2. double height = 44,
  3. VoidCallback? onPressed,
  4. bool isLoading = false,
  5. Color? textColor,
  6. Color? outlineColor,
  7. Key? key,
})

Creates a full-width secondary button.

Implementation

const SecondaryButton.infinity(
    this.title, {
      this.height = 44,
      this.onPressed,
      this.isLoading = false,
      this.textColor,
      this.outlineColor,
      super.key,
    }) : width = double.infinity;