fix(ui): handle bottom sheet peek change properly
This commit is contained in:
parent
40cfef5f1e
commit
0060a21b36
1 changed files with 9 additions and 6 deletions
|
|
@ -174,11 +174,14 @@ class SheetStateWrapper(
|
|||
p1.value = target
|
||||
peek = peek1
|
||||
}
|
||||
scope.launch {
|
||||
state.animateTo(peek)
|
||||
p1.value = target
|
||||
p2.value = target
|
||||
state.invalidateDetents()
|
||||
}
|
||||
state.invalidateDetents()
|
||||
state.targetDetent = peek
|
||||
// TODO: this is broken; animateTo never finishes
|
||||
// scope.launch {
|
||||
// state.animateTo(peek)
|
||||
// p1.value = target
|
||||
// p2.value = target
|
||||
// state.invalidateDetents()
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue