mirror of
https://github.com/twinksoftware/Gearslip.git
synced 2026-11-10 16:02:25 +01:00
home: What's new and which cars work sit at the bottom
This commit is contained in:
1 parent
1086e7c8fa
commit
eba8ac1127
1 file changed
+12
-12
@@ -100,7 +100,18 @@ fun HomeScreen(
|
||||
)
|
||||
Spacer(Modifier.height(16.dp))
|
||||
StatusCard(status)
|
||||
// The first drive that worked asks once to share it, right under the result.
|
||||
val car = workedCar
|
||||
if (car != null && !live) {
|
||||
Spacer(Modifier.height(16.dp))
|
||||
WorkedCard(car, onSeeWhatsSent = onOpenUsageNotes)
|
||||
}
|
||||
Spacer(Modifier.height(16.dp))
|
||||
UpdateCard()
|
||||
}
|
||||
|
||||
// Sits at the bottom, where a thumb reaches it.
|
||||
Column(Modifier.padding(vertical = 16.dp)) {
|
||||
SettingsCard {
|
||||
SettingsRow(
|
||||
"What's new in ${Intro.release}",
|
||||
@@ -117,19 +128,8 @@ fun HomeScreen(
|
||||
trailing = { Arrow() },
|
||||
)
|
||||
}
|
||||
// The first drive that worked asks once to share it, right under the result.
|
||||
val car = workedCar
|
||||
if (car != null && !live) {
|
||||
Spacer(Modifier.height(16.dp))
|
||||
WorkedCard(car, onSeeWhatsSent = onOpenUsageNotes)
|
||||
}
|
||||
Spacer(Modifier.height(16.dp))
|
||||
UpdateCard()
|
||||
}
|
||||
|
||||
// Sits at the bottom, where a thumb reaches it.
|
||||
Column(Modifier.padding(vertical = 16.dp)) {
|
||||
if (live) {
|
||||
Spacer(Modifier.height(16.dp))
|
||||
Button(onClick = onDisconnect, modifier = Modifier.fillMaxWidth().height(56.dp)) {
|
||||
Text("Disconnect")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user