FancyOutlinedButton constructor

const FancyOutlinedButton({
  1. Key? key,
  2. bool? isEnabled,
  3. required VoidCallback? onPressed,
  4. required Widget child,
  5. bool isLoading = false,
  6. Widget? loadingChild,
  7. Widget? loadingIndicator,
  8. ButtonStyle? style,
})

Creates an OutlinedButton.

Use isEnabled to avoid ternary statements for onPressed — you can disable the button with:

  • isEnabled: false or
  • onPressed: null

child and isLoading must not be null.

Implementation

const FancyOutlinedButton({
  super.key,
  super.isEnabled,
  required super.onPressed,
  required super.child,
  super.isLoading,
  super.loadingChild,
  super.loadingIndicator,
  super.style,
});