Package-level declarations

Types

Link copied to clipboard

Enum to represent the different screens or views within the note list context. This helps in managing which set of notes (active or deleted) to display.

Functions

Link copied to clipboard
fun AddNoteScreen(navController: NavController, viewModel: NoteViewModel)

Composable function for the screen used to add a new note or edit an existing one. It provides text fields for the note's title and content, and a button to save the note.

Link copied to clipboard
fun DrawerItem(label: String, onClick: () -> Unit)

Composable function for creating a standard item in the navigation drawer.

Link copied to clipboard
fun NoteItem(note: Note, onDelete: () -> Unit, onRestore: () -> Unit? = null)

Composable function to display a single note item in a Card.

Link copied to clipboard
fun NoteListScreen(navController: NavController, viewModel: NoteViewModel, themeViewModel: ThemeViewModel)

The main composable function for displaying the list of notes. This screen includes a navigation drawer, a top app bar, a floating action button (for active notes), and a list of notes. It handles switching between active and deleted notes views and theme toggling.

Link copied to clipboard

Composable function for the Splash Screen. This screen is displayed for a short duration when the app starts, and then automatically navigates to the main content (NoteListScreen).