notes/list_notes_screen library

List notes screen - first fetches notes and then gets recipients for the notes

Copyright (C) 2023 Software Innovation Institute, Australian National University

License: GNU General Public License, Version 3 (the "License") https://www.gnu.org/licenses/gpl-3.0.en.html

Authors: Anushka Vidanage, Jess Moore

Classes

ListNotesScreen
A StatefulWidget that fetches the user's notes in their app data folder, retrieving the note data map containing data and properties of each note file name. Following completion, NewNote() is called if no notes are found. Alternatively, if notes exist, ListRecipientsScreen() is called to retrieve the access control list for notes (required to support sharing of notes and display of sharing information).
ListRecipientsScreen
A StatefulWidget that uses the note filenames in notesMap to retrieve the access control list data for each note filename. This adds the recipients and permissions of all recipients for each file record in notesMap. After completion, run ListNotes() to display the notes. Parameters: notesMap is the map comprising a list of notes and data in a user's Pod.