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

🐛 PaneItemExpander is expanding when adding a pane into NavigationView #876

Open
AlexisL61 opened this issue Jul 5, 2023 · 2 comments
Labels
bug Something isn't working w: NavigationView Related to the NavigationView widget

Comments

@AlexisL61
Copy link

Describe the bug
When adding a pane into the NavigationView with a setState(), if a PaneItemExpander is open in the footerItems, it will close. When we remove a pane, the PaneItemExpander will open by itself if it was closed.

To Reproduce

  • I have made a reproducible project right here : https://github.com/AlexisL61/PaneItemExpander_bugreport
  • After starting the project with flutter run, press the filter icon on the bottom left part of the screen for opening it
  • Then press the + button in the bottom left part of the screen
  • The filter will close by itself
  • If you press the + button again, the filter will open by itself

Expected behavior
The PaneItemExpander should not open or close when adding or removing a pane

Additional context
Tested on Windows only for now?

@bdlukaa
Copy link
Owner

bdlukaa commented Jul 5, 2023

Hmmm, interesting.

The pane item expanders work by index. They are saved to the page storage with their assigned index, so when their index changes, their state is likely to be lost :/

@bdlukaa bdlukaa added the bug Something isn't working label Jul 5, 2023
@AlexisL61
Copy link
Author

I see.

If I can be of any assistance on this issue, tell me

@bdlukaa bdlukaa added the w: NavigationView Related to the NavigationView widget label Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working w: NavigationView Related to the NavigationView widget
Projects
None yet
Development

No branches or pull requests

2 participants