remove unneed FocusScope & Focus
This commit is contained in:
parent
d11a46393b
commit
9ec5410273
|
@ -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()],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue