mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-24 00:10:47 +00:00
autofocus film name field
This commit is contained in:
parent
beeb67846a
commit
ca03de9abf
2 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue