SearchBarLayout

fun SearchBarLayout(modifier: Modifier = Modifier, items: List<Poi>, placeholder: String? = stringResource(R.string.search), value: String? = "", onTitleChange: (String) -> Unit = {}, onPoiChange: (Poi) -> Unit = {}, backgroundColor: Color = Color.Transparent)

A composable that displays a search bar with a list of items in our case POIs it covers the whole screen and has a text field to search for items and a list of items

Parameters

items

the list of items to search for

placeholder

the placeholder of the text field

value

the value of the text field

onTitleChange

the callback to be called when the text field value changes

onPoiChange

the callback to be called when an item is selected

backgroundColor

the background color of the screen Docs: SearchBarLayout Docs