Skip to content

Commit ba20da9

Browse files
authored
Remove experimental opt-in from lazy list stickyItem snippets
1 parent a935e3a commit ba20da9

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

compose/snippets/src/main/java/com/example/compose/snippets/lists/LazyListSnippets.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,6 @@ private fun ListsSnippetsContentSpacing3(photos: List<Photo>) {
203203

204204
private object ListsSnippetsStickyHeaders1 {
205205
// [START android_compose_layouts_lazy_column_sticky_header]
206-
@OptIn(ExperimentalFoundationApi::class)
207206
@Composable
208207
fun ListWithHeader(items: List<Item>) {
209208
LazyColumn {
@@ -224,7 +223,6 @@ private object ListsSnippetsStickyHeaders2 {
224223
// This ideally would be done in the ViewModel
225224
val grouped = contacts.groupBy { it.firstName[0] }
226225

227-
@OptIn(ExperimentalFoundationApi::class)
228226
@Composable
229227
fun ContactsList(grouped: Map<Char, List<Contact>>) {
230228
LazyColumn {

0 commit comments

Comments
 (0)