Home > other >  Flutter: Auto cursor on input text field
Flutter: Auto cursor on input text field

Time:11-19

I have multiple pages, so when I enter one of them, the cursor should be automatically on input textfield, Doesnt matter how many textfields are there, I need to set on 1

INSTEAD OF THIS:

enter image description here

THIS SHOULD BE:

enter image description here

CodePudding user response:

TextField(
          autofocus: true,
        ),
  • Related