DO save empty todo

This commit is contained in:
2025-04-21 23:38:06 +02:00
parent ad767ac33a
commit 442403b5b9

View File

@@ -57,8 +57,5 @@ Future<Todo?> getLatestTodo() async {
}
Future<void> createTodo(String content) async {
if (content.isEmpty) {
return;
}
await DB.db.insert('todos', {'content': content});
}