Created
August 18, 2021 19:11
-
-
Save rubenquadros/415a36b813dbc8ceea534c9ab44dd88e to your computer and use it in GitHub Desktop.
Home app bar without any styling
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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