Skip to content

Allow paneBodyBuilder to use an IndexedStack without interference#680

Merged
bdlukaa merged 4 commits intobdlukaa:masterfrom
klondikedragon:fix/nav_paneBodyBuilder
Jan 17, 2023
Merged

Allow paneBodyBuilder to use an IndexedStack without interference#680
bdlukaa merged 4 commits intobdlukaa:masterfrom
klondikedragon:fix/nav_paneBodyBuilder

Conversation

@klondikedragon
Copy link
Copy Markdown
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
Copy Markdown
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)).

Comment thread lib/src/controls/navigation/navigation_view/body.dart
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