fixing footer-issue
This commit is contained in:
+1
-1
@@ -20,7 +20,7 @@ fun AppFooter() {
|
||||
contentAlignment = Alignment.Center
|
||||
) {
|
||||
Text(
|
||||
text = "© 2024 Meldestelle - Built with Kotlin Multiplatform",
|
||||
text = "© 2025 Meldestelle - Built with Kotlin Multiplatform",
|
||||
style = MaterialTheme.typography.bodySmall,
|
||||
color = MaterialTheme.colorScheme.onSurfaceVariant,
|
||||
textAlign = TextAlign.Center
|
||||
|
||||
+7
-11
@@ -14,20 +14,16 @@ fun AppScaffold(
|
||||
header: @Composable () -> Unit = {
|
||||
AppHeader(title = "Meldestelle")
|
||||
},
|
||||
content: @Composable (PaddingValues) -> Unit,
|
||||
footer: @Composable () -> Unit = {
|
||||
AppFooter()
|
||||
},
|
||||
content: @Composable (PaddingValues) -> Unit
|
||||
) {
|
||||
Column(modifier = Modifier.fillMaxSize()) {
|
||||
Scaffold(
|
||||
topBar = header,
|
||||
modifier = Modifier.weight(1f)
|
||||
) {
|
||||
paddingValues ->
|
||||
content(paddingValues)
|
||||
}
|
||||
footer()
|
||||
Scaffold(
|
||||
topBar = header,
|
||||
bottomBar = footer,
|
||||
modifier = Modifier.fillMaxSize()
|
||||
) { paddingValues ->
|
||||
content(paddingValues)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user