How to focus textfield as soon as app starts?

This Question is posted by seven.srikanth at 1/3/2020 4:23:00 AM






In flutter, you can achieve this by adding autofocus: true to your TextField. 

TextField(
  autofocus: true,
)

Hope this is helpful to you.

Thanks.

Tags: focus textfield



0 Comments
Login to comment.
Recent Comments

Be the first to Comment. You can ask a Query or Share your toughts or Just say thanks.

Recent Articles


Open a page on top of another page without hiding Drawer

Posted by seven.srikanth on 01 Jul 2023 Article


How to add Icon to a Button in flutter?

Posted by seven.srikanth on 10 Jan 2023 Article


Add Dotted Border to a container in Flutter

Posted by seven.srikanth on 10 Jan 2023 Article


IgnorePointer example in flutter

Posted by seven.srikanth on 09 Jan 2023 Article




© 2018 - Fluttercentral | Email to me - Seven.srikanth@gmail.com