Fixed centering loading text
This commit is contained in:
parent
0ccbf5523a
commit
ce41ac682c
|
@ -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 {
|
SelectionContainer {
|
||||||
Text(exportedDataText, fontFamily = FontFamily.Monospace)
|
Text(exportedDataText, fontFamily = FontFamily.Monospace)
|
||||||
}
|
}
|
||||||
} else {
|
}
|
||||||
|
} else {
|
||||||
|
Column(Modifier.fillMaxSize()) {
|
||||||
Spacer(Modifier.weight(1f))
|
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))
|
Spacer(Modifier.weight(1f))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue