mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-09-16 16:33:38 +08:00
Implement note deletion
It looks quite ugly, but it works.
This commit is contained in:
@ -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,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user