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

Allow paneBodyBuilder to use an IndexedStack without interference #680

Merged
merged 4 commits into from
Jan 17, 2023

Conversation

klondikedragon
Copy link
Contributor

Fixes #679, as well as the minor assertion in #678.

A common use case for paneBodyBuilder is to use an IndexedStack to
manage the state of the widgets displayed inside the navigation body.
An IndexedStack does not play nicely with the PageView.builder that it
was being wrapped in. Now, if a paneBodyBuilder is used, assume it is
responsible for its own state management.

Fixes bdlukaa#679
@klondikedragon
Copy link
Contributor Author

Note that this has been tested not to change the previous behavior if paneBodyBuilder is null, and also to fully fix all of the compatibility issues if paneBodyBuilder is specified and returns an IndexedStack widget (as for example used in #226 (comment)).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants