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

Add animation effects to the dialog. #827

Merged

Conversation

dongfengweixiao
Copy link
Contributor

Import flutter_animated_dialog and use the showAnimatedDialog method instead of showDialog.

Note that you should avoid setting barrierDismissible to true if possible. Multiple clicks on the button calling the showAnimatedDialog method can lead to the following exception:

FlutterError: Duplicate GlobalKey detected in widget tree.

dongfengweixiao and others added 2 commits August 6, 2024 16:26
Import `flutter_animated_dialog` and use the `showAnimatedDialog` method instead of `showDialog`.

Note that you should avoid setting `barrierDismissible` to `true` if possible.
Multiple clicks on the button calling the showAnimatedDialog method can
lead to the following exception:

`FlutterError: Duplicate GlobalKey detected in widget tree.`
@Feichtmeier
Copy link
Member

Cool :) Thanks! Looks good

@Feichtmeier Feichtmeier enabled auto-merge (squash) August 6, 2024 08:42
@Feichtmeier Feichtmeier merged commit 8ae84b0 into ubuntu-flutter-community:main Aug 6, 2024
4 checks passed
@dongfengweixiao dongfengweixiao deleted the feat/dialogAnim branch August 7, 2024 09:08
@github-actions github-actions bot mentioned this pull request Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants