Resizing when using the keyboard

This commit is contained in:
Vitor Pamplona
2023-01-30 00:23:22 -03:00
parent f2d7dea860
commit fb8d6daf3d
3 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@
android:label="Amethyst" android:label="Amethyst"
android:name=".ui.MainActivity" android:name=".ui.MainActivity"
android:exported="true" android:exported="true"
android:launchMode="singleTask" android:allowTaskReparenting="true" android:windowSoftInputMode="adjustResize"
android:theme="@style/Theme.Amethyst"> android:theme="@style/Theme.Amethyst">
<intent-filter android:label="Amethyst"> <intent-filter android:label="Amethyst">

View File

@ -131,7 +131,7 @@ fun ShowQRDialog(user: User, onScan: (String) -> Unit, onClose: () -> Unit) {
onClick = { presenting = true }, onClick = { presenting = true },
shape = RoundedCornerShape(35.dp), shape = RoundedCornerShape(35.dp),
modifier = Modifier modifier = Modifier
.fillMaxWidth() .fillMaxWidth().padding(30.dp)
.height(50.dp), .height(50.dp),
colors = ButtonDefaults colors = ButtonDefaults
.buttonColors( .buttonColors(

View File

@ -88,7 +88,7 @@ fun LoginPage(accountViewModel: AccountStateViewModel) {
Image( Image(
painterResource(id = R.drawable.amethyst), painterResource(id = R.drawable.amethyst),
contentDescription = "App Logo", contentDescription = "App Logo",
modifier = Modifier.size(250.dp), modifier = Modifier.size(200.dp),
contentScale = ContentScale.Inside contentScale = ContentScale.Inside
) )