Skip to content

Commit 05a4ba9

Browse files
feat: Expand fully the UpdateAvailableBottomSheet
1 parent 8be7d5f commit 05a4ba9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

InAppUpdate/src/main/kotlin/com/infomaniak/core/inappupdate/updaterequired/ui/composable/UpdateAvailableBottomSheet.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,17 @@ import androidx.compose.foundation.layout.fillMaxWidth
2525
import androidx.compose.foundation.layout.height
2626
import androidx.compose.material3.ExperimentalMaterial3Api
2727
import androidx.compose.material3.ModalBottomSheet
28+
import androidx.compose.material3.SheetState
2829
import androidx.compose.material3.Text
2930
import androidx.compose.runtime.Composable
3031
import androidx.compose.ui.Alignment
3132
import androidx.compose.ui.Modifier
3233
import androidx.compose.ui.graphics.painter.Painter
34+
import androidx.compose.ui.platform.LocalContext
3335
import androidx.compose.ui.res.stringResource
3436
import androidx.compose.ui.text.TextStyle
3537
import androidx.compose.ui.text.style.TextAlign
38+
import androidx.compose.ui.unit.Density
3639
import androidx.compose.ui.unit.dp
3740
import com.infomaniak.core.inappupdate.R
3841

@@ -47,6 +50,7 @@ fun UpdateAvailableBottomSheet(
4750
onDismissRequest: () -> Unit,
4851
) {
4952
ModalBottomSheet(
53+
sheetState = SheetState(skipPartiallyExpanded = true, density = Density(LocalContext.current)),
5054
onDismissRequest = onDismissRequest,
5155
) {
5256
Column(

0 commit comments

Comments
 (0)