mirror of
https://github.com/BetterAndroid/FlexiUI.git
synced 2025-09-07 19:14:12 +08:00
refactor: use fillMaxSize by default in Scaffold
This commit is contained in:
@@ -24,6 +24,7 @@
|
|||||||
package com.highcapable.flexiui.component
|
package com.highcapable.flexiui.component
|
||||||
|
|
||||||
import androidx.compose.foundation.layout.WindowInsets
|
import androidx.compose.foundation.layout.WindowInsets
|
||||||
|
import androidx.compose.foundation.layout.fillMaxSize
|
||||||
import androidx.compose.foundation.layout.padding
|
import androidx.compose.foundation.layout.padding
|
||||||
import androidx.compose.foundation.layout.safeDrawing
|
import androidx.compose.foundation.layout.safeDrawing
|
||||||
import androidx.compose.foundation.layout.windowInsetsPadding
|
import androidx.compose.foundation.layout.windowInsetsPadding
|
||||||
@@ -66,7 +67,11 @@ fun Scaffold(
|
|||||||
navigationBar: @Composable () -> Unit = {},
|
navigationBar: @Composable () -> Unit = {},
|
||||||
content: @Composable (innerPadding: ComponentPadding) -> Unit
|
content: @Composable (innerPadding: ComponentPadding) -> Unit
|
||||||
) {
|
) {
|
||||||
Surface(modifier = modifier, colors = colors, padding = ComponentPadding()) {
|
Surface(
|
||||||
|
modifier = Modifier.fillMaxSize().then(modifier),
|
||||||
|
colors = colors,
|
||||||
|
padding = ComponentPadding()
|
||||||
|
) {
|
||||||
ScaffoldLayout(
|
ScaffoldLayout(
|
||||||
padding = padding,
|
padding = padding,
|
||||||
contentWindowInsets = contentWindowInsets,
|
contentWindowInsets = contentWindowInsets,
|
||||||
|
Reference in New Issue
Block a user