fixing Web-App
This commit is contained in:
+14
-5
@@ -1,9 +1,12 @@
|
||||
package at.mocode.clients.shared.commonui.components
|
||||
|
||||
import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.foundation.layout.PaddingValues
|
||||
import androidx.compose.foundation.layout.fillMaxSize
|
||||
import androidx.compose.material3.ExperimentalMaterial3Api
|
||||
import androidx.compose.material3.Scaffold
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.Modifier
|
||||
|
||||
@OptIn(ExperimentalMaterial3Api::class)
|
||||
@Composable
|
||||
@@ -16,9 +19,15 @@ fun AppScaffold(
|
||||
},
|
||||
content: @Composable (PaddingValues) -> Unit
|
||||
) {
|
||||
Scaffold(
|
||||
topBar = header,
|
||||
bottomBar = footer,
|
||||
content = content
|
||||
)
|
||||
Column(modifier = Modifier.fillMaxSize()) {
|
||||
Scaffold(
|
||||
topBar = header,
|
||||
modifier = Modifier.weight(1f)
|
||||
) {
|
||||
paddingValues ->
|
||||
content(paddingValues)
|
||||
}
|
||||
footer()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user