聊天界面键盘底部Padding动画,添加默认边距
This commit is contained in:
@@ -337,7 +337,7 @@ fun ChatInput(
|
||||
var isKeyboardOpen by remember { mutableStateOf(false) }
|
||||
var text by remember { mutableStateOf("") }
|
||||
val inputBarHeight by animateDpAsState(
|
||||
targetValue = if (isKeyboardOpen) 8.dp else navigationBarHeight,
|
||||
targetValue = if (isKeyboardOpen) 8.dp else (navigationBarHeight + 8.dp),
|
||||
animationSpec = tween(durationMillis = 300), label = ""
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user