-
-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Specify Positions Sheet Can Move To #4
Comments
Yes i think this is an awesome idea and I already thought about doing it. But I would take it a step further, but im sot sure what would me the best way to implement it, that's why I wasn't working in it jet. Description Same idea, but you also have the option to add more states and set the position for any state. Proposed Solution Maybe we can archive this by making Also we would need the user to provide us with the functions for the Drag Indicator ( Example SUBCLASSING
ENUM
Problems SUBCLASSING Im not sure what data type to use for the ENUM With an enum Im not sure how to implement |
@dbarsamian Hey please have a look at #5 and tell me your thoughts about this solution and if you have any ideas to improve it. |
Plenty README.md updates. Fixed Dependencies. Custom States feature. Extended SearchBar support.
Description
The option to specify the available positions the bottom sheet can move to should be available.
Motivation
There are cases where the middle position state is not necessary to have and even hinders the user experience. Furthermore, dynamic control over the available states would allow for some complex UI design currently not possible, such as allowing a sheet to react to the content inside by changing it's allowed states.
Proposed Solution
Ideally, this would be made available by offering an optional parameter in the constructor to pass in a binding of an array containing all of the allowed position states. This would allow flexibility for static construction of a bottom sheet as well as the dynamic changing of the allowed states.
Example
A static example:
A dynamic example:
The text was updated successfully, but these errors were encountered: