Implement note deletion

It looks quite ugly, but it works.
This commit is contained in:
Vishesh Handa
2018-05-21 17:16:21 +02:00
parent 973f21a24c
commit 71d1aca6b5
4 changed files with 27 additions and 3 deletions

View File

@ -9,10 +9,12 @@ import 'package:journal/note_viewer.dart';
class HomeScreen extends StatelessWidget {
final AppState appState;
final NoteAdder noteAdder;
final NoteRemover noteRemover;
HomeScreen({
@required this.appState,
@required this.noteAdder,
@required this.noteRemover,
});
@override
@ -47,6 +49,7 @@ class HomeScreen extends StatelessWidget {
body: new JournalList(
notes: appState.notes,
noteSelectedFunction: (note) => _noteSelected(note, context),
noteRemover: noteRemover,
),
);
}