1+ /*
2+ * Copyright 2024 The Android Open Source Project
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * https://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
16+
117package com.example.compose.snippets.components
218
319import androidx.compose.foundation.clickable
@@ -9,6 +25,7 @@ import androidx.compose.foundation.layout.fillMaxSize
925import androidx.compose.foundation.layout.fillMaxWidth
1026import androidx.compose.foundation.layout.padding
1127import androidx.compose.foundation.lazy.LazyColumn
28+ import androidx.compose.foundation.rememberScrollState
1229import androidx.compose.foundation.verticalScroll
1330import androidx.compose.material.icons.Icons
1431import androidx.compose.material.icons.filled.MoreVert
@@ -36,7 +53,6 @@ import androidx.compose.ui.semantics.semantics
3653import androidx.compose.ui.semantics.traversalIndex
3754import androidx.compose.ui.tooling.preview.Preview
3855import androidx.compose.ui.unit.dp
39- import androidx.compose.foundation.rememberScrollState
4056
4157@OptIn(ExperimentalMaterial3Api ::class )
4258// [START android_compose_components_searchbarbasicfilterlist]
@@ -47,8 +63,8 @@ fun SearchBarBasicFilterList(modifier: Modifier = Modifier) {
4763 Box (
4864 modifier
4965 .fillMaxSize()
50- .semantics { isTraversalGroup = true })
51- {
66+ .semantics { isTraversalGroup = true }
67+ ) {
5268 SearchBar (
5369 modifier = Modifier
5470 .align(Alignment .TopCenter )
@@ -110,7 +126,8 @@ fun SearchBarFilterList(
110126 Box (
111127 modifier
112128 .fillMaxSize()
113- .semantics { isTraversalGroup = true }) {
129+ .semantics { isTraversalGroup = true }
130+ ) {
114131 SearchBar (
115132 modifier = Modifier
116133 .align(Alignment .TopCenter )
@@ -197,4 +214,3 @@ fun AppSearchBar(modifier: Modifier = Modifier) {
197214 modifier
198215 )
199216}
200-
0 commit comments