chore: update dependencies
This commit is contained in:
parent
7a028c1172
commit
4ecf2befd1
2 changed files with 26 additions and 18 deletions
|
|
@ -8,8 +8,12 @@ package ua.acclorite.book_story.ui.common.components.modal_bottom_sheet
|
|||
|
||||
import androidx.compose.foundation.layout.Box
|
||||
import androidx.compose.foundation.layout.ColumnScope
|
||||
import androidx.compose.foundation.layout.WindowInsets
|
||||
import androidx.compose.foundation.layout.WindowInsetsSides
|
||||
import androidx.compose.foundation.layout.fillMaxSize
|
||||
import androidx.compose.foundation.layout.fillMaxWidth
|
||||
import androidx.compose.foundation.layout.only
|
||||
import androidx.compose.foundation.layout.safeDrawing
|
||||
import androidx.compose.material3.BottomSheetDefaults
|
||||
import androidx.compose.material3.ExperimentalMaterial3Api
|
||||
import androidx.compose.material3.MaterialTheme
|
||||
|
|
@ -59,6 +63,10 @@ fun ModalBottomSheet(
|
|||
)
|
||||
.fillMaxWidth()
|
||||
.then(modifier),
|
||||
contentWindowInsets = {
|
||||
if (hasFixedHeight) WindowInsets.safeDrawing.only(WindowInsetsSides.Bottom)
|
||||
else BottomSheetDefaults.windowInsets
|
||||
},
|
||||
sheetGesturesEnabled = sheetGesturesEnabled,
|
||||
onDismissRequest = {
|
||||
onDismissRequest()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue