Comments (6)
if there was a way to completely stop the sheet from sliding down when it reaches a certain deten
Unfortunately no. You can only disable it completely when it reaches some state. You can't limit swipe by minimum detent
from compose-cupertino.
If you want to disable swipe there is a sheetSwipeEnabled
option.
If you want to allow swipe but ignore anchor changes you can return false in the confirmValueChange
from compose-cupertino.
Won't this disable swiping the sheet completely? I want to only disable dismissing the sheet by swipe down, but I want to be able to swipe the sheet between different detents/heights
from compose-cupertino.
@alexzhirkevich Also i just tested sheetSwipeEnabled = false , using 2 detente Medium and Large and it doesn’t seem to disable swiping at all
from compose-cupertino.
Won't this disable swiping the sheet completely? I want to only disable dismissing the sheet by swipe down, but I want to be able to swipe the sheet between different detents/heights
Then you need to return false for the Hidden state only in confirmValueChange lambda
from compose-cupertino.
@alexzhirkevich I suppose this works, however i was wondering if there was a way to completely stop the sheet from sliding down when it reaches a certain detent. Returning false in the confirmvaluechange block will allow swiping down a bit then bouncing back to the original state, when what i’m looking for is to completely block the downward swipe gesture.
Thank you very much for taking the time to respond and for the effort you’re putting in.
from compose-cupertino.
Related Issues (20)
- No indication effect HOT 5
- UseCase: CupertinoDatePickerNative cannot set the Year/Month mode; only the Year/Month/Day mode is available.
- Add support for sticky section titles in LazyListSection HOT 2
- AppCrash when using NativeChildren for navigation via decompose HOT 6
- AdaptiveScaffold background inconsistency HOT 1
- Navigation title animation problems HOT 1
- Unexpected bottom sheet behaviour with IME HOT 2
- AdaptiveDatePicker is returing wrong values HOT 4
- Does the sdk work on projects still using Material? HOT 1
- CupertinoSwitch does not seem to respond well to user swipe action HOT 1
- is the cupertino-decompose library only useful if client kmp project uses decompose? HOT 3
- Small question. Why picker rotation was changed to false? Seems like it looked beautifully on android HOT 2
- No static method rememberDatePickerState-
- Modal sheet always expands up to the large detent even if no such detent was set for the presentation style HOT 3
- Nested Scaffold Bottom Bar is always visible
- Bottom sheet without scaffold pattern HOT 3
- Roll out release for Kotlin 2.0.0 HOT 4
- Unable to open CupertinoSwipeBox in LazyList HOT 1
- Keyboard Doesn't Open for CupertinoSearchTextField in CupertinoActionSheet or CupertinoAlertDialog HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from compose-cupertino.