Questions tagged [global-key]

5 questions
1
vote
0 answers

A GlobalKey was used multiple times inside one widget's child list

The issues comes when I try to open the app from deeplink in killed state. It gives me this error : A GlobalKey was used multiple times inside one widget's child list. The offending GlobalKey was: [LabeledGlobalKey#53296 Key Created…
1
vote
1 answer

FlutterError - Duplicate GlobalKey detected in widget tree

I'm encountering a "Duplicate GlobalKey detected in the widget tree" error when using a PageView.builder in Flutter along with the Screenshot widget from the screenshot package. The error occurs when I scroll to the next page in the PageView. I'm…
Debabrata Samal
  • 73
  • 1
  • 13
0
votes
0 answers

Tried everything but still Duplicate GlobalKey detected in widget tree

Been stuck for hours lol This started happening after I made changes to some files that had no global key in them and I just can't seem to understand the problem since I have tried to change the files that do use global keys and I just can not…
0
votes
1 answer

How to use Screenshot Package over multiple screens (Global Key Error)

I am trying to make an error reporting system where when a user presses a button it takes a snapshot of the screen and then allows them to send it. I am using the Screenshot package and managed to get it working by creating a Scaffold Wrapper and…
Ankere
  • 13
  • 4
0
votes
1 answer

Scrollable.ensureVisible(); not working if the widget is out of view?

I use Scrollable.ensureVisible(GlobalObjectKey(category?.id).currentContext); this code to scroll particular widget. This is not working if the target widget is out of view. For example I have a list 1 to 10. If I scroll 1 to 2 and 2 to 3 or 3 to 4…
Anand
  • 4,355
  • 2
  • 35
  • 45