From fec3a91df189aee82802fff99014386867dc4d5a Mon Sep 17 00:00:00 2001
From: Vishesh Handa <me@vhanda.in>
Date: Mon, 23 Dec 2019 12:25:57 +0100
Subject: [PATCH] JournalEditor: We don't need the extra Form

We're not using it for anything.
---
 lib/screens/journal_editor.dart | 24 +++++++++++-------------
 1 file changed, 11 insertions(+), 13 deletions(-)

diff --git a/lib/screens/journal_editor.dart b/lib/screens/journal_editor.dart
index 6cf5ce75..d2b4dd81 100644
--- a/lib/screens/journal_editor.dart
+++ b/lib/screens/journal_editor.dart
@@ -200,20 +200,18 @@ class NoteMarkdownEditor extends StatelessWidget {
       style = style.copyWith(fontFamily: "Roboto Mono");
     }
 
-    return Form(
-      child: TextFormField(
-        autofocus: true,
-        autocorrect: false,
-        keyboardType: TextInputType.multiline,
-        maxLines: null,
-        style: style,
-        decoration: InputDecoration(
-          hintText: 'Write here',
-          border: InputBorder.none,
-        ),
-        controller: textController,
-        textCapitalization: TextCapitalization.sentences,
+    return TextField(
+      autofocus: true,
+      autocorrect: false,
+      keyboardType: TextInputType.multiline,
+      maxLines: null,
+      style: style,
+      decoration: InputDecoration(
+        hintText: 'Write here',
+        border: InputBorder.none,
       ),
+      controller: textController,
+      textCapitalization: TextCapitalization.sentences,
     );
   }
 }