autofocus film name field

This commit is contained in:
Vadim 2024-10-31 15:13:06 +01:00
parent beeb67846a
commit ca03de9abf
2 changed files with 2 additions and 1 deletions

View file

@ -24,6 +24,7 @@ class FilmEditNameField extends StatelessWidget {
), ),
child: LightmeterTextField( child: LightmeterTextField(
initialValue: name, initialValue: name,
autofocus: true,
maxLength: 48, maxLength: 48,
hintText: S.of(context).name, hintText: S.of(context).name,
onChanged: onChanged, onChanged: onChanged,

View file

@ -3,7 +3,7 @@ import 'package:flutter/material.dart';
class LightmeterTextField extends TextFormField { class LightmeterTextField extends TextFormField {
LightmeterTextField({ LightmeterTextField({
super.controller, super.controller,
super.focusNode, super.autofocus,
super.initialValue, super.initialValue,
super.inputFormatters, super.inputFormatters,
super.maxLength, super.maxLength,