Questions tagged [flutter-key]
7 questions
1
vote
0 answers
Flutter: push a new page and scroll down to certain widget
I have a web app in Flutter. My app bar has 5 buttons. Four of them scroll within the first page. The 5th one pushes a new page.
There are three different widgets on stage:
page A (HomeView)
page B (ContactView)
the AppBar
When the user is on…

JAgüero
- 403
- 1
- 4
- 14
0
votes
3 answers
FormKey makes error 'Null check operator used on a null value'
This is a block of flutter code to generate qr code using textformfield and a elevatedbutton, validation keeps failing and gives error 'Null check operator used on a null value'.
I'm using a formKey to check whether it's valid to submit or not. How…
0
votes
0 answers
Flutter - Changing Padding's padding value giving it's child widget a duplicate GlobalKey error
I think this question is not about PageView, only in my case. I have a PageView wrapped with a Padding like below.
Padding(
padding : EdgeInsets.symmetric(horizontal : padding),
child : PageView.builder(...)
)
Each PageView's item has a…

stackunderflow
- 1,492
- 1
- 23
- 53
0
votes
2 answers
Is there a way to use the same globalkey in multiple widgets?? in flutter
So I'm relatively new to flutter and I've been trying to dynamically add Sections(TextFormFields) that are represented in a form that has Form.Helper as its child and in the process to get the saveAndValidate method to work i had to use a GlobalKey…

Sam Kh
- 3
- 1
0
votes
0 answers
Proper use of Flutter globalKey getting null value on currentState
I am following along a youtube video to use the plugin CurvedNavigationBar here: https://www.youtube.com/watch?v=TX2x41h47fE
In the video around 3:30 time in video he shows how to use globalkey to dynamically change the tab and page. The problem I…

Technorocker
- 103
- 14
0
votes
1 answer
Flutter Question: How to select/highlight widget based on widget key or unique key properties upon tap
Im trying to build dynamically generated widgets, each of them need to be selected/highlighted when I tap on them.
here is code borrowed by another solution on stackoverflow, reference code below is DartPad friendly to paste and play.
this is…

Shreyz
- 99
- 1
- 10
0
votes
1 answer
How could I use ReorderableListView when displaying a list of potentially identical items?
The ReorderableListView widget requires all children to have a unique Key.
I wish to display a reorderable list of plugins in use in my application. One feature of this application's design is that the same plugin can be added to the plugin list in…

hacker1024
- 3,186
- 1
- 11
- 31