AddNoteScreen

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.

Parameters

navController

The NavController used for navigating back after saving the note.

viewModel

The NoteViewModel instance used to interact with note data (e.g., inserting a new note).