diff --git a/lib/widgets/note_tag_editor.dart b/lib/widgets/note_tag_editor.dart index 83b5c021..9a18e5fc 100644 --- a/lib/widgets/note_tag_editor.dart +++ b/lib/widgets/note_tag_editor.dart @@ -34,7 +34,7 @@ class _NoteTagEditorState extends State { Widget build(BuildContext context) { var theme = Theme.of(context); - return Scaffold( + var s = Scaffold( appBar: AppBar( leading: IconButton( icon: const Icon(Icons.arrow_back), @@ -54,6 +54,14 @@ class _NoteTagEditorState extends State { ), body: buildView(_textController.text), ); + + return WillPopScope( + onWillPop: () async { + Navigator.of(context).pop(_selectedTags); + return false; + }, + child: s, + ); } Widget buildView(String query) {