Luis Daivid
12/05/2022, 11:05 AMColumn(
modifier = Modifier.verticalScroll(scrollState)
) {
Box(modifier = Modifier.fillMaxWidth().weight(1f) {
LogoImage()
}
Buttons(modifier = Modifier.fillMaxSize())
}
I have textfields inside Buttons, but when focused, the keyboard just hides the elements. How should I implement it?nuhkoca
12/05/2022, 12:14 PMimePadding
modifier to the button?Luis Daivid
12/05/2022, 2:10 PMLuis Daivid
12/05/2022, 2:16 PMColton Idle
12/05/2022, 5:23 PMZach
12/05/2022, 9:52 PMScaffold(Modifier.imePadding()) {
Box(
Modifier
.fillMaxSize()
.background(Color.Black)
.systemBarsPadding()
) {
Column(Modifier.align(Alignment.TopCenter)) {
// Your top app bar goes here
Row(
Modifier.fillMaxSize(),
verticalAlignment = Alignment.CenterVertically
) {
// Your onboarding content goes here (username/password fields)
}
// Your bottom button goes here
}
}
}
Zach
12/05/2022, 9:55 PMWindowCompat.setDecorFitsSystemWindows(window, false)
for easier control of how to fit your content within the system barsZach
12/05/2022, 9:56 PMfloatingActionBar
inside scaffold and set your button to that but it would require some extra modifiers I think