Tobias Gronbach
03/26/2022, 10:32 PMTobias Gronbach
03/26/2022, 10:32 PMBox(
modifier = Modifier.fillMaxSize(),
contentAlignment = Alignment.BottomEnd
) {
FloatingActionButton(
modifier = Modifier.padding(10.dp, 10.dp),
onClick = {
// do something
},
) {
Icon(
imageVector = Icons.Default.Check,
contentDescription = null,
)
}
}
It works but it's seems somehow a dirty approach and leads to some problems. In my case a have a few TextFields. When the keyboard opens the fab is pushed up as well,
and I don't want that. Hope you guys can help me with some ideas!andrew
03/27/2022, 2:39 AMandrew
03/27/2022, 2:40 AMScaffold(
floatingActionButton = {
FloatingActionButton(onClick = { /* ... */ }) {
/* FAB content */
}
}
) {
// Screen content
}
andrew
03/27/2022, 2:40 AMTobias Gronbach
03/27/2022, 2:31 PM