-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FIX/#163] imePadding 키보드 이슈 해결 #181
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM~ 🚀🚀🚀🚀🚀 확장함수 좋습니다~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!!!!
fun Modifier.advancedImePadding() = composed { | ||
var consumePadding by remember { mutableStateOf(0) } | ||
onGloballyPositioned { coordinates -> | ||
val rootCoordinate = coordinates.findRootCoordinates() | ||
val bottom = coordinates.positionInWindow().y + coordinates.size.height | ||
|
||
consumePadding = (rootCoordinate.size.height - bottom).toInt() | ||
} | ||
.consumeWindowInsets(PaddingValues(bottom = (consumePadding / LocalDensity.current.density).dp)) | ||
.imePadding() | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
개쩌네요
공부하고 쇽샥해가겠습니다 ㅋㅋ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
와 짱이다!!! 어푸🚀🚀🚀🚀
Related issue 🛠
Work Description ✏️
To Reviewers 📢
감사합니다~