bryankeltonadams
07/11/2023, 5:38 PMColumn {
CenterAlignedTopAppBar(
navigationIcon = {
},
title = {
},
actions = actions,
colors = TopAppBarDefaults.mediumTopAppBarColors(containerColor = MaterialTheme.fbColors.backgroundPrimary),
)
Box(
modifier = Modifier
.fillMaxWidth()
.size(1.dp)
.background(Color.Red)
)
}
Stylianos Gakis
07/11/2023, 7:17 PMbryankeltonadams
07/12/2023, 12:42 AMAlbert Chang
07/12/2023, 3:00 AMis there anything better than having the "MyTopAppBarComposable" be a Column which has a CenterAlignedTopAppBar plus a Box with max width + 1.dp size?This seems good enough to me. What's your concern? If you want to use modifier, you can use something like this:
Modifier
.drawWithContent {
drawContent()
drawRect(color = Color.Red, topLeft = Offset(0f, size.height - 1.dp.toPx()))
}
.padding(bottom = 1.dp)
bryankeltonadams
07/13/2023, 6:54 PM