Workaround for prepending before the first item
This commit is contained in:
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) },
|
||||
|
||||
Reference in new issue
Block a user