Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
442403b5b9 |
@@ -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});
|
||||
}
|
||||
|
Reference in New Issue
Block a user