Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Home app bar without any styling
@Composable
fun HomeAppBar(title: String, openSearch: () -> Unit, openFilters: () -> Unit) {
TopAppBar(
title = { Text(text = title) },
actions = {
IconButton(onClick = openSearch) {
Icon(imageVector = Icons.Filled.Search, contentDescription = "Search")
}
IconButton(onClick = openFilters) {
Icon(imageVector = Icons.Filled.FilterList, contentDescription = "Filter")
}
}
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment