From 8c510074c9bf95256f384317824e1bce42ef96e9 Mon Sep 17 00:00:00 2001 From: Dan Cojocaru Date: Sat, 18 Jun 2022 02:07:04 +0300 Subject: [PATCH] Add autofocus to dialog --- lib/dialogs/new_ask_for_name.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/dialogs/new_ask_for_name.dart b/lib/dialogs/new_ask_for_name.dart index 2ba41f2..48cd099 100644 --- a/lib/dialogs/new_ask_for_name.dart +++ b/lib/dialogs/new_ask_for_name.dart @@ -40,6 +40,7 @@ class NewAskForNameDialog extends HookWidget { child: Container( constraints: const BoxConstraints(minWidth: 300), child: TextField( + autofocus: true, controller: tec, decoration: InputDecoration( border: const OutlineInputBorder(),