From ca03de9abf6eeb3372bcf7b3f583eb0374dc37aa Mon Sep 17 00:00:00 2001 From: Vadim <44135514+vodemn@users.noreply.github.com> Date: Thu, 31 Oct 2024 15:13:06 +0100 Subject: [PATCH] autofocus film name field --- .../components/name_field/widget_field_name_film_edit.dart | 1 + lib/screens/shared/text_field/widget_text_field.dart | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/screens/film_edit/components/name_field/widget_field_name_film_edit.dart b/lib/screens/film_edit/components/name_field/widget_field_name_film_edit.dart index d15c818..84dd7ef 100644 --- a/lib/screens/film_edit/components/name_field/widget_field_name_film_edit.dart +++ b/lib/screens/film_edit/components/name_field/widget_field_name_film_edit.dart @@ -24,6 +24,7 @@ class FilmEditNameField extends StatelessWidget { ), child: LightmeterTextField( initialValue: name, + autofocus: true, maxLength: 48, hintText: S.of(context).name, onChanged: onChanged, diff --git a/lib/screens/shared/text_field/widget_text_field.dart b/lib/screens/shared/text_field/widget_text_field.dart index ead1f14..5ffae94 100644 --- a/lib/screens/shared/text_field/widget_text_field.dart +++ b/lib/screens/shared/text_field/widget_text_field.dart @@ -3,7 +3,7 @@ import 'package:flutter/material.dart'; class LightmeterTextField extends TextFormField { LightmeterTextField({ super.controller, - super.focusNode, + super.autofocus, super.initialValue, super.inputFormatters, super.maxLength,