Changed styling, bit of refactoring

This commit is contained in:
SomnusVeritas
2023-11-08 12:31:42 +01:00
parent 1073dbbe41
commit 91ce231b04
5 changed files with 38 additions and 12 deletions

View File

@@ -56,7 +56,7 @@ class _CreateTodoPageState extends State<CreateTodoPage> {
}
void _onSubmitted() {
DbHelper.addTodo(Todo(title: _title, description: _description));
DbHelper.addOrUpdateTodo(Todo(title: _title, description: _description));
Navigator.of(context).pop();
}
}