Skip to content

Instantly share code, notes, and snippets.

@mazzouzi
Last active September 24, 2022 11:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mazzouzi/4c1df1019e050335e1d773ff381ebd60 to your computer and use it in GitHub Desktop.
Save mazzouzi/4c1df1019e050335e1d773ff381ebd60 to your computer and use it in GitHub Desktop.
Toolbar composable
@Composable
private fun Toolbar() {
TopAppBar(
modifier = Modifier.background(
brush = Brush.horizontalGradient(
listOf(Color(0xff026586), Color(0xff032C45))
)
),
navigationIcon = {
IconButton(
onClick = {},
modifier = Modifier
.padding(horizontal = 16.dp)
.size(36.dp)
) {
Icon(
imageVector = Icons.Default.Menu,
contentDescription = "",
tint = Color.White
)
}
},
title = {},
backgroundColor = Color.Transparent,
elevation = 0.dp
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment