I'm adding my notes in "items" but I'm getting this error. I couldn't find the reason, can you help?
@Composable
fun NotesList() {
val notesList = remember { mutableStateListOf<Note>() }
LazyColumn {
items(notesList) {note->
NoteCard(note.title, note.content,note.color,note.liked)
}
}
}
When I hover the cursor over noteList I get the following error.
Type mismatch. Required:Int Found:SnapshotStateList
I was hoping it would work by adding my list to items but it didn't.