Skip to content

Commit

Permalink
Pharmacy map - clicked pharmacy now clears when BottomSheet is dragge…
Browse files Browse the repository at this point in the history
…d down (unselect of pharmacy in map).
  • Loading branch information
Nyckoka committed May 9, 2024
1 parent 82e22ad commit 13a28e8
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@ fun MapScreen(
)
)

LaunchedEffect(scaffoldSheetState.bottomSheetState.currentValue) {
if (scaffoldSheetState.bottomSheetState.currentValue == SheetValue.PartiallyExpanded) {
clickedPharmacyMarker = null
}
}

BottomSheetScaffold(
scaffoldState = scaffoldSheetState,
sheetPeekHeight = 0.dp,
Expand Down

0 comments on commit 13a28e8

Please sign in to comment.