abbic
01/19/2024, 4:31 PMModalBottomSheet(
onDismissRequest = onDismissRequest,
modifier = modifier,
sheetState = sheetState,
shape = RoundedCornerShape(topStart = DP_8, topEnd = DP_8),
containerColor = MaterialTheme.colorScheme.surface,
dragHandle = dragHandle,
content = {
content()
Spacer(modifier = Modifier.navigationBarsPadding())
}
)
nothing weird, right? but the surface colour doesnt seem to be applying, even though elsewhere on that screen surface is applied correctly on another Composable
furthermore, hardcoding containerColour to another colour actually makes it apply, and we are having a very similar issue in a dialog
fun CustomDialog() {
Dialog {
Surface(
color = MaterialTheme.colorScheme.surface // colour does not apply, unless it is changed to be hardcoded
)
}Chrimaeon
01/19/2024, 5:08 PMMaterialTheme composable!?abbic
01/19/2024, 5:08 PMabbic
01/19/2024, 5:08 PMabbic
01/19/2024, 5:09 PMdorche
01/19/2024, 5:11 PM.surface colour to Color.Black and trying againabbic
01/19/2024, 5:12 PMdorche
01/19/2024, 5:13 PMabbic
01/19/2024, 5:14 PM