Last active
September 24, 2022 11:45
-
-
Save mazzouzi/4c1df1019e050335e1d773ff381ebd60 to your computer and use it in GitHub Desktop.
Toolbar composable
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 | |
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