Skip to content

Commit

Permalink
fix: remove useless editor FocusNode
Browse files Browse the repository at this point in the history
  • Loading branch information
maelchiotti committed Apr 4, 2024
1 parent a51e37d commit 56f6bb2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/pages/editor/editor_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ class EditorPage extends ConsumerStatefulWidget {
class _EditorState extends ConsumerState<EditorPage> {
final titleController = TextEditingController();
late FleatherController fleatherController;
final fleatherFocusNode = FocusNode();

void _synchronizeTitle(Note note, String? newTitle) {
if (newTitle == null) return;
Expand Down Expand Up @@ -81,7 +80,6 @@ class _EditorState extends ConsumerState<EditorPage> {
Expanded(
child: FleatherField(
controller: fleatherController,
focusNode: fleatherFocusNode,
autofocus: widget._autofocus,
readOnly: widget._readOnly,
expands: true,
Expand Down

0 comments on commit 56f6bb2

Please sign in to comment.