-
-
Notifications
You must be signed in to change notification settings - Fork 474
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
🐛 Opening one expander opens all of them (intended?) #596
Comments
An option would be to use the key as identifier and don't store open state if none is provided. Or do you want to store open state regardless of the key? |
I can confirm this issue and I have arrived at the same conclusion. Is there a way to solve that while waiting a fix ? |
I forked the repo, removed the page storage stuff, and used As I've already done it, you can go ahead and use my fork: dependency_overrides:
fluent_ui:
git:
url: https://github.com/bmceachnie/fluent_ui.git |
Thanks for providing a fork and a way to use it (I did not know how to) 👍 . I took a quick look at your code and as you said, you did remove the code related to writing & reading the opened state. That being said, I was wondering if there is still a way to use keys (something I am not knowledgeable about) or if |
To my understanding, it'd be possible to use the key as an identifier instead of the hardcoded string If you need it, I could implement it. |
Describe the bug
Opening a single expander widget opens every other expander when changing route. Is this intended?
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Expanders stay closed.
Screenshots
![image](https://user-images.githubusercontent.com/60017181/200066673-7638fbe1-2697-4407-95dc-30d424c466ab.png)
![image](https://user-images.githubusercontent.com/60017181/200066712-4192e707-608f-424c-adeb-2adf3c958d6e.png)
![image](https://user-images.githubusercontent.com/60017181/200066751-c01ade71-5e90-4e36-8a9f-a692b36d55da.png)
Additional context
The identifier for page storage seems to be at fault (if this is not intended) at
fluent_ui/lib/src/controls/surfaces/expander.dart:180
and
fluent_ui/lib/src/controls/surfaces/expander.dart:143
The text was updated successfully, but these errors were encountered: