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,22 +52,18 @@ class Editor extends HookWidget {
);
}
return FocusScope(
child: Focus(
focusNode: focusNode,
child: TextField(
controller: actualController,
autofocus: autofocus,
keyboardType: TextInputType.multiline,
textCapitalization: TextCapitalization.sentences,
onChanged: onChanged,
onSubmitted: onSubmitted,
maxLines: maxLines,
minLines: minLines,
decoration: InputDecoration(labelText: labelText),
inputFormatters: [MarkdownFormatter()],
),
),
return TextField(
focusNode: focusNode,
controller: actualController,
autofocus: autofocus,
keyboardType: TextInputType.multiline,
textCapitalization: TextCapitalization.sentences,
onChanged: onChanged,
onSubmitted: onSubmitted,
maxLines: maxLines,
minLines: minLines,
decoration: InputDecoration(labelText: labelText),
inputFormatters: [MarkdownFormatter()],
);
}
}