jonataslaw / getx

Open screens/snackbars/dialogs/bottomSheets without context, manage states and inject dependencies easily with Get.
MIT License
10.43k stars 1.63k forks source link

Multiple widgets used the same GlobalKey error for Web Nav2 #2742

Open gitHubAdminUser opened 1 year ago

gitHubAdminUser commented 1 year ago

Describe the bug Multiple widgets used the same GlobalKey error when using Getx Route Management for Web

Reproduction code Simply run the example_nav2 from Getx repository

Expected behaviour No errors

Screenshots N/A

Flutter Version: Flutter (Channel stable, 3.7.5, on macOS 12.5.1 21G83 darwin-arm64, locale en-AU)

Getx Version: get: git: https://github.com/jonataslaw/getx.git

Describe on which device you found the bug: Chrome

Minimal reproduce code N/A

Flutter Logs ======== Exception caught by widgets library ======================================================= The following assertion was thrown while finalizing the widget tree: Multiple widgets used the same GlobalKey.

The key [LabeledGlobalKey#aece9] was used by multiple widgets. The parents of those widgets were:

DholaSain commented 1 year ago

The same issue is coming with get: ^5.0.0-release-candidate-4.

Rajaotix commented 1 year ago

I have the same issue on web

gitHubAdminUser commented 1 year ago

Hey @jonataslaw, do you have any update on this issue?

dabbinavo commented 1 year ago

Think this issue is a duplicate of #2725