-
-
Save ashiqfury/cab0a9b60d3a2977cbdd81714f385750 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Composable | |
| fun NotesListScreen( | |
| navigateToDetail: (entry: NoteDetail) -> Unit = {} // Passing callback from NavDisplay | |
| ) { | |
| LazyColumn( | |
| modifier = Modifier.fillMaxSize() | |
| ) { | |
| items(100) { index -> | |
| Text( | |
| text = "Note #$index", | |
| modifier = Modifier | |
| ... | |
| .clickable { | |
| val entry = NoteDetail(noteId = "$index") | |
| navigateToDetail(entry) | |
| } | |
| ) | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment