From 442403b5b91184e6ab25911da17e86dcef82f7c1 Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Mon, 21 Apr 2025 23:38:06 +0200 Subject: [PATCH] DO save empty todo --- lib/notes.dart | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/notes.dart b/lib/notes.dart index 72f523a..6fd3755 100644 --- a/lib/notes.dart +++ b/lib/notes.dart @@ -57,8 +57,5 @@ Future getLatestTodo() async { } Future createTodo(String content) async { - if (content.isEmpty) { - return; - } await DB.db.insert('todos', {'content': content}); }