Workaround for prepending before the first item

This commit is contained in:
FooIbar authored and renovate[bot] committed 2024-03-04 19:48:55 +08:00
1 parent 8e8394985d
commit 07e24013c8
1 file changed
+2
@@ -287,6 +287,8 @@ fun SearchBarScreen(
contentPadding = WindowInsets.navigationBars.union(WindowInsets.ime)
.only(WindowInsetsSides.Bottom).asPaddingValues(),
) {
// Workaround for prepending before the first item
item {}
items(mSuggestionList, key = { it.keyword.hashCode() * 31 + it.canDelete.hashCode() }) {
ListItem(
headlineContent = { Text(text = it.keyword) },