Skip to content

Commit dfb6511

Browse files
Resolved the TODO comment in the Nav3Snippets
1 parent e3cdedb commit dfb6511

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • compose/snippets/src/main/java/com/example/compose/snippets/predictiveback

compose/snippets/src/main/java/com/example/compose/snippets/predictiveback/Nav3Snippets.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,7 @@ fun ScreenB(
9999
label = "ScaleAnimation"
100100
)
101101

102-
// TODO: this should be hoisted up
103-
val maxShift = ( LocalConfiguration.current.screenWidthDp / 20f) - 8
102+
val maxShift = (LocalConfiguration.current.screenWidthDp / 20f) - 8
104103

105104
val animatedOffsetX by animateDpAsState(
106105
targetValue = when (swipeEdge) {

0 commit comments

Comments
 (0)