Fixed centering loading text

This commit is contained in:
dankito 2024-09-08 21:34:26 +02:00
parent 0ccbf5523a
commit ce41ac682c
1 changed files with 8 additions and 4 deletions

View File

@ -55,15 +55,19 @@ fun ExportScreen(onClosed: () -> Unit) {
}
}
Column(Modifier.fillMaxSize().verticalScroll(ScrollState(0), enabled = true).horizontalScroll(ScrollState(0), enabled = true)) {
if (isLoadingExportedData == false) {
if (isLoadingExportedData == false) {
Column(Modifier.verticalScroll(ScrollState(0), enabled = true).horizontalScroll(ScrollState(0), enabled = true)) {
SelectionContainer {
Text(exportedDataText, fontFamily = FontFamily.Monospace)
}
} else {
}
} else {
Column(Modifier.fillMaxSize()) {
Spacer(Modifier.weight(1f))
Text("Daten werden geladen ...", Modifier.fillMaxWidth(), textAlign = TextAlign.Center) // centering text does not work, no matter what i tried
Row(Modifier.fillMaxWidth()) {
Text("Daten werden geladen ...", Modifier.fillMaxWidth(), textAlign = TextAlign.Center)
}
Spacer(Modifier.weight(1f))
}