Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add copyWith method #125

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Commits on Oct 18, 2023

  1. feat: add copyWith method

    Example usage: create a blank `Flushbar()` and manually dismiss it somewhere else.
    
    ```dart
    var fb = Flushbar(...);
    fb = fb.copyWith(
       mainButton: TextButton(
           onPressed: () {
               fb.dismiss();
           }
       ),
    );
    
    fb.show(context);
    ```
    definitelyme committed Oct 18, 2023
    Configuration menu
    Copy the full SHA
    c3c3481 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    108e367 View commit details
    Browse the repository at this point in the history
  3. feat: pass flushbar instance to mainButton

    - Removed copyWith method
    definitelyme committed Oct 18, 2023
    Configuration menu
    Copy the full SHA
    238620b View commit details
    Browse the repository at this point in the history