davidhicks980 / cupertino_menu

An experimental implementation of an iOS menu in Flutter.
Other
6 stars 1 forks source link

Multi Cupertino Nested Menu Display Issue #5

Open fliosan opened 1 month ago

fliosan commented 1 month ago

Hi @davidhicks980 I'm experiencing an issue with SnapshotController. Even though I'm assigning a unique SnapshotController to each instance of CupertinoNestedMenu, changing the text in one menu unexpectedly changes the text in other menus. However, when I remove the SnapshotController, everything works fine, and each menu updates its text independently as expected. Code here 235 and 326 lines: https://gist.github.com/fliosan/e1b98b1ad2e2afd3da6cd3fadb659de0

It seems like the SnapshotController is somehow causing state-sharing or interference between the menus. Could this be a bug, or is there something I'm missing in the implementation?

Thanks for looking into this!

https://github.com/user-attachments/assets/b5452886-5cf2-42a6-bdf0-e273bf558b95