Skip to content

How to deal with opening dialogs #133

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

Open
nietsmmar opened this issue Apr 24, 2023 · 3 comments
Open

How to deal with opening dialogs #133

nietsmmar opened this issue Apr 24, 2023 · 3 comments

Comments

@nietsmmar
Copy link

I am using showDialog() to display modals. How can I make sure, they are responsive too?

@rayliverified
Copy link
Contributor

Good news! If you use the builder property in MaterialApp, all ModalRoutes (including dialogs), will be wrapped with the builder.

If you pass ResponsiveBreakpoints.builder() to the builder property like in the example, your dialog has access to the breakpoints as well.

Hopefully I'm not wrong, I'll need to double check.

Flutter Documentation:
snap_screen_20230426011343

@nietsmmar
Copy link
Author

nietsmmar commented Apr 27, 2023

@rayliverified Do you have an example?

@angelocordero
Copy link

@rayliverified is there any updates on this? dialogs does not scale with the rest of the app

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

No branches or pull requests

3 participants