Give each Note a unique id

Otherwise we're overwriting that one note.
This commit is contained in:
Vishesh Handa
2018-05-21 17:04:03 +02:00
parent 0cb36b2981
commit 973f21a24c
5 changed files with 14 additions and 9 deletions

View File

@ -41,7 +41,6 @@ class NoteEditor extends StatelessWidget {
onPressed: () {
var body = noteTextKey.currentState.value;
var note = new Note(
id: "1",
createdAt: _createdAt,
body: body,
);