From 901cdbe3f4f0eb0d360b2e468d2bb3df54e5df90 Mon Sep 17 00:00:00 2001 From: BigtoC Date: Wed, 27 May 2020 23:54:45 +0800 Subject: [PATCH] Enhance edit page --- lib/note_services/edit_ui.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/note_services/edit_ui.dart b/lib/note_services/edit_ui.dart index 76982c6..ac6e2c8 100644 --- a/lib/note_services/edit_ui.dart +++ b/lib/note_services/edit_ui.dart @@ -192,7 +192,7 @@ class EditorPageState extends State { final contents = await file.readAsString(); return NotusDocument.fromJson(jsonDecode(contents)); } - final Delta delta = Delta()..insert(""); + final Delta delta = Delta()..insert("\n"); return NotusDocument.fromDelta(delta); }