Skip to content

Instantly share code, notes, and snippets.

@rubenquadros
Created August 18, 2021 19:11
Show Gist options
  • Save rubenquadros/415a36b813dbc8ceea534c9ab44dd88e to your computer and use it in GitHub Desktop.
Save rubenquadros/415a36b813dbc8ceea534c9ab44dd88e to your computer and use it in GitHub Desktop.
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