Skip to content

Commit

Permalink
Pass currentCompositionLocalContext to iOS bottom sheet content
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedRejeb committed Jun 24, 2024
1 parent 967e516 commit 4b43db0
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,15 @@ actual fun AdaptiveBottomSheet(
windowInsets: WindowInsets,
content: @Composable() (ColumnScope.() -> Unit)
) {
val colorScheme = MaterialTheme.colorScheme
val typography = MaterialTheme.typography
val shapes = MaterialTheme.shapes
val compositionLocalContext = currentCompositionLocalContext

val sheetHelper = remember {
BottomSheetManager(
onDismiss = {
onDismissRequest()
},
content = {
MaterialTheme(
colorScheme = colorScheme,
typography = typography,
shapes = shapes,
) {
CompositionLocalProvider(compositionLocalContext) {
Column(
modifier = Modifier.fillMaxSize()
) {
Expand Down

0 comments on commit 4b43db0

Please sign in to comment.