Lucas Kivi
05/18/2023, 12:22 AMLucas Kivi
05/18/2023, 12:28 AMBox {
Content()
BottomSheet(
modifier = Modifier
.swipeable( ... ),
)
}
Lucas Kivi
05/18/2023, 12:29 AMsemantics
, focusable
, and focusProperties
Modifier
s to no avail.ephemient
05/18/2023, 1:44 AMephemient
05/18/2023, 1:53 AMephemient
05/18/2023, 1:55 AMAlbert Chang
05/18/2023, 2:01 AMSurface
or a Modifier.pointerInput(Unit) {}
should work.Lucas Kivi
05/18/2023, 2:56 AMBottomSheet
is a custom composable.Lucas Kivi
05/18/2023, 2:56 AMModifier.pointerInput(Unit) {}
but focus was still passed through. I will try Surface
Lucas Kivi
05/18/2023, 3:13 AMSurface
as well.ephemient
05/19/2023, 3:48 AMLucas Kivi
05/19/2023, 7:28 PM@Composable
private fun AccessibilityExample() {
val markerStateSydney = remember { MarkerState(position = LatLng(-34.0, 151.0)) }
val markerStateTokyo = remember { MarkerState(position = LatLng(35.66, 139.6)) }
BottomSheetScaffold(
sheetContent = {
Spacer(
modifier = Modifier
.background(
color = Color.Gray,
shape = RoundedCornerShape(topStart = 8.dp, topEnd = 8.dp),
)
.fillMaxWidth()
.fillMaxHeight(0.5f)
)
},
) {
GoogleMap(
modifier = Modifier
.clearAndSetSemantics { invisibleToUser() }
.focusable(enabled = false)
.fillMaxSize()
) {
Marker(
state = markerStateSydney,
title = "Marker in Sydney",
)
Marker(
state = markerStateTokyo,
title = "Marker in Tokyo"
)
}
}
}
Lucas Kivi
05/19/2023, 7:30 PMLucas Kivi
05/19/2023, 7:31 PMgoolgle-maps-compose
I have a full blown repo just to repro bugs