You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bottom sheet state offset을 활용하여 bottom padding을 주고 있었음.
문제점 : sheetState가 변경될 때마다 해당 Offset이 변함. 즉, 키보드가 올라올 때, bottom padding 값이 300 dp 였다가 키보드의 가려지는 bottom sheet 때문에 영역이 줄어듬. 300dp -> 200dp 로 줄어듬으로써, 잠깐 흰 배경이 content 영역을 차지함으로써, 깜빡이는 현상이 나타났다가 돌아옴.
Feature Name
Bottom Sheet 가 올라가면서 아래 Content Bottom Padding을 Bottom Sheet 높이만큼 주고 있었다. 키보드가 올라옴으로써 기존의 코드에서는 Content 영역이 흰배경으로 잠깐 왔다가 돌아오면서 깜빡이는 현상이 있었음.
기존 코드
.padding( bottom = sheetState.requireOffset().pxToDp )
bottom sheet state offset을 활용하여 bottom padding을 주고 있었음.
수정 코드
위 커밋으로 어느정도 해결함. (하지만 만족스러운 해결방법이 아닌 것 같음.)
문제점
BottomSheetState 상태 값을 가지는 하위 composable recomposition 최적화가 쉽지 않음. 해당 논의가 StackOverFlow 에서 논의되었지만, 해결되어 보이지 않음.
The text was updated successfully, but these errors were encountered: