How can create FloatingActionButton on the top of the keyboard in jetpack compose

212 Views Asked by At

How can create FloatingActionButton on the top of the keyboard but if keyboard is hidden, then in the bottom of the screen?

FloatingActionButton(
         modifier = Modifier
                    .padding(bottom = 2.dp, end = 2.dp),
         onClick = { visible = !visible },
         ) {
            Icon(
                 imageVector = Icons.Outlined.Send,
                 contentDescription = "Send"
                 )
         }

enter image description here

enter image description here

0

There are 0 best solutions below