merge feat/welcome-screen into screen #2
1 changed files with 33 additions and 20 deletions
|
|
@ -88,7 +88,8 @@ fun LoginScreen(paddingValues: PaddingValues) {
|
||||||
|
|
||||||
AnimatedVisibility(currentScreen == "passwordDialog" || currentScreen == "apiDialog") {
|
AnimatedVisibility(currentScreen == "passwordDialog" || currentScreen == "apiDialog") {
|
||||||
Row(
|
Row(
|
||||||
modifier = Modifier.padding(bottom = 12.dp)
|
modifier = Modifier
|
||||||
|
.padding(bottom = 12.dp)
|
||||||
.fillMaxWidth(),
|
.fillMaxWidth(),
|
||||||
horizontalArrangement = Arrangement.SpaceBetween
|
horizontalArrangement = Arrangement.SpaceBetween
|
||||||
) {
|
) {
|
||||||
|
|
@ -124,13 +125,16 @@ fun LoginScreen(paddingValues: PaddingValues) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
AnimatedVisibility(currentScreen != "loadingDialog") {
|
||||||
Button(
|
Button(
|
||||||
onClick = {when(currentScreen) {
|
onClick = {
|
||||||
|
when (currentScreen) {
|
||||||
"serverDialog" -> currentScreen = "passwordDialog"
|
"serverDialog" -> currentScreen = "passwordDialog"
|
||||||
"passwordDialog" -> currentScreen = "loadingDialog"
|
"passwordDialog" -> currentScreen = "loadingDialog"
|
||||||
"apiDialog" -> currentScreen = "loadingDialog"
|
"apiDialog" -> currentScreen = "loadingDialog"
|
||||||
"loadingDialog" -> currentScreen = "loadingDialog"
|
"loadingDialog" -> currentScreen = "loadingDialog"
|
||||||
}},
|
}
|
||||||
|
},
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
.height(96.dp),
|
.height(96.dp),
|
||||||
|
|
@ -142,7 +146,16 @@ fun LoginScreen(paddingValues: PaddingValues) {
|
||||||
},
|
},
|
||||||
) {
|
) {
|
||||||
Row() {
|
Row() {
|
||||||
Text(text = "Next")
|
Text(
|
||||||
|
text = when (currentScreen) {
|
||||||
|
"serverDialog" -> "Next"
|
||||||
|
"passwordDialog" -> "Login"
|
||||||
|
"apiDialog" -> "Login"
|
||||||
|
else -> ""
|
||||||
|
|
||||||
|
}
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue