refactor: use fillMaxSize by default in Scaffold

This commit is contained in:
2024-01-10 15:15:35 +08:00
parent 33cd648c78
commit 7b05f7488f

View File

@@ -24,6 +24,7 @@
package com.highcapable.flexiui.component
import androidx.compose.foundation.layout.WindowInsets
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.safeDrawing
import androidx.compose.foundation.layout.windowInsetsPadding
@@ -66,7 +67,11 @@ fun Scaffold(
navigationBar: @Composable () -> Unit = {},
content: @Composable (innerPadding: ComponentPadding) -> Unit
) {
Surface(modifier = modifier, colors = colors, padding = ComponentPadding()) {
Surface(
modifier = Modifier.fillMaxSize().then(modifier),
colors = colors,
padding = ComponentPadding()
) {
ScaffoldLayout(
padding = padding,
contentWindowInsets = contentWindowInsets,