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( return TextField(
child: Focus(
focusNode: focusNode, focusNode: focusNode,
child: TextField(
controller: actualController, controller: actualController,
autofocus: autofocus, autofocus: autofocus,
keyboardType: TextInputType.multiline, keyboardType: TextInputType.multiline,
@ -66,8 +64,6 @@ class Editor extends HookWidget {
minLines: minLines, minLines: minLines,
decoration: InputDecoration(labelText: labelText), decoration: InputDecoration(labelText: labelText),
inputFormatters: [MarkdownFormatter()], inputFormatters: [MarkdownFormatter()],
),
),
); );
} }
} }