fix: flowy text field bugs

This commit is contained in:
Richard Shiue
2022-11-30 18:28:51 +08:00
parent c8b90974fb
commit eaa1cb5a67
3 changed files with 17 additions and 9 deletions

View File

@ -152,7 +152,7 @@ class _TextFilterEditorState extends State<TextFilterEditor> {
return FlowyTextField(
text: state.filter.content,
hintText: LocaleKeys.grid_settings_typeAValue.tr(),
autoFucous: false,
autoFocus: false,
onSubmitted: (text) {
context
.read<TextFilterEditorBloc>()

View File

@ -123,8 +123,9 @@ class _OptionNameTextField extends StatelessWidget {
@override
Widget build(BuildContext context) {
return FlowyTextField(
autoFucous: autoFocus,
autoFocus: autoFocus,
text: name,
maxLength: 30,
onSubmitted: (newName) {
if (name != newName) {
context