flutter_load_widget
flutter_load_widget copied to clipboard
Duplicate GlobalKey detected in widget tree. - please help
`
[38;5;248m════════ Exception caught by widgets library ═══════════════════════════════════[39;49m [38;5;244mThe following assertion was thrown while finalizing the widget tree:[39;49m Duplicate GlobalKey detected in widget tree.
[38;5;244mThe following GlobalKey was specified multiple times in the widget tree. This will lead to parts of the widget tree being truncated unexpectedly, because the second time a key is seen, the previous instance is moved to the new location. The key was:
- [LabeledGlobalKey<LoadingWidgetState>#0b60e] This was determined by noticing that after the widget with the above global key was moved out of its previous parent, that previous parent never updated during this frame, meaning that it either did not update at all or updated before the widget was moved, in either case implying that it still thinks that it should have a child with that global key. The specific parent that did not update after having one or more children forcibly removed due to GlobalKey reparenting is:
- LoadingTheme
A GlobalKey can only be specified on one widget at a time in the widget tree.
[39;49m[38;5;244mWhen the exception was thrown, this was the stack[39;49m
[38;5;244m#0 BuildOwner.finalizeTree.
[39;49m [38;5;244m#1 BuildOwner.finalizeTree[39;49m [38;5;244m#2 WidgetsBinding.drawFrame[39;49m [38;5;244m#3 RendererBinding._handlePersistentFrameCallback[39;49m [38;5;244m#4 SchedulerBinding._invokeFrameCallback[39;49m [38;5;244m...[39;49m [38;5;248m════════════════════════════════════════════════════════════════════════════════[39;49m
`
I have same error
@CaiJingLong Any news on this?
I have the same error. Please, help us!
I think this plugin is dead.
Provide an example code to reproduce it?
I have same error. Any updates on this?
@CaiJingLong You can try open a page and call Loading, after that I click notification to open that page, it'll show Multiple widgets used the same GlobalKey.
. I've tried hide loading but it's not working.
same issue please fix
same issue
You must be sure that not show loading multiple times at the same time without hide loading first. I solved this problem by fixing all of these cases. I hope it helps you
Still the same issue in 2022. Can someone provide a fix for this.
me too
I am also facing the same issue