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,