[#13] Hide keyboard in landscape.
All checks were successful
continuous-integration/drone/push Build is passing

closes #13
This commit is contained in:
2023-01-27 13:18:00 +01:00
parent 89f2e3ecd5
commit c71b608a7b

View File

@@ -49,7 +49,7 @@ fun Landscape(viewModel: ICounterViewModel) {
Modifier.weight(1f) Modifier.weight(1f)
) )
} }
if (!viewModel.keyboardHidden) {
Column(Modifier.weight(1f)) { Column(Modifier.weight(1f)) {
KeyboardView( KeyboardView(
viewModel.currentScoreA, viewModel.currentScoreA,
@@ -68,6 +68,7 @@ fun Landscape(viewModel: ICounterViewModel) {
} }
} }
} }
}
@Composable @Composable
fun Portrait(viewModel: ICounterViewModel) { fun Portrait(viewModel: ICounterViewModel) {