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