remove unneed FocusScope & Focus

This commit is contained in:
Filip Krawczyk 2022-08-25 17:45:22 +02:00
parent d11a46393b
commit 9ec5410273
1 changed files with 12 additions and 16 deletions

View File

@ -52,10 +52,8 @@ class Editor extends HookWidget {
);
}
return FocusScope(
child: Focus(
return TextField(
focusNode: focusNode,
child: TextField(
controller: actualController,
autofocus: autofocus,
keyboardType: TextInputType.multiline,
@ -66,8 +64,6 @@ class Editor extends HookWidget {
minLines: minLines,
decoration: InputDecoration(labelText: labelText),
inputFormatters: [MarkdownFormatter()],
),
),
);
}
}