Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
Fix broken IvyModal.kt stuff by refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
ILIYANGERMANOV committed May 23, 2022
1 parent 81338f9 commit 8d620c1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 7 additions & 1 deletion app/src/main/java/com/ivy/wallet/ui/theme/modal/IvyModal.kt
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ fun BoxScope.IvyModal(
},
animationSpec = tween(DURATION_MODAL_ANIM)
)
val navBarPadding by animateDpAsState(
targetValue = densityScope {
if (keyboardShown) 0.dp else navigationBarInsets().bottom.toDp()
},
animationSpec = tween(DURATION_MODAL_ANIM)
)
val blurAlpha by animateFloatAsState(
targetValue = if (visible) 1f else 0f,
animationSpec = tween(DURATION_BACKGROUND_BLUR_ANIM),
Expand Down Expand Up @@ -143,7 +149,7 @@ fun BoxScope.IvyModal(
visible = visible,
modalPercentVisible = modalPercentVisible,
keyboardShownInsetDp = keyboardShownInsetDp,
navBarPadding = navigationBarInsets().bottom.toDensityDp(),
navBarPadding = navBarPadding,
onHeightChanged = {
actionsRowHeight = it
},
Expand Down

This file was deleted.

0 comments on commit 8d620c1

Please sign in to comment.