Panel's closing & draggable snapping #340
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello there 👋
This is a very useful package that I found and utilize it in my open-source project Google Maps Clone, I find out this is an amazing custom panel which has a limited behaviour and this contribution contribute to it's behaviour and taking it a bit further by adding "Fully Closing Panel Behavior" & "Draggable Snapping Behaviour", these two features works under a boolean flag and do not disturb the existing functionality of the package.
How to use?
I also liked to add some additional things to this amazing panel such as a
resizeHandle
and a method in thePanelController
to open a panel at a desired position namedshowAt
which operates the same as other methods in thePanelController
.You can add a
resizeHandle
like this:You can open Panel at desired position like this:
Currently the panel in my Google Maps Clone project might not exist if you're checking it now (24 Feb 2024) but will exist if you're in future 😄. Because this project is from a YouTube Bootcamp and changes reflects with a new video.
If you find out some of the functionality that I added is not working as expected please leave a comment or fix it and make a pull request.
Thanks.