- Added
copy
method toDraggablePanelController
. It fixes the issue when you hide and re-show the panel.
- In this update, I added the
DraggablePanelController
to give you the ability to control the panel directly outside of this widget. Just create it and pass it to theDraggablePanel
widget. See example.
- Changed alignment of
Wrap
inside DraggablePanel.
- Added new optional param
panelHeight
. This param is used to set the height of the panel. If not set, the panel will take the height of the child widget based on item's and button's length.
- The panel size calculation has been changed.
- Added web support with essential configuration for PWA functionality.
- Improved draggable panel logic by introducing better state management and optimizing boundary checks.
- Fixed issues with initial panel positioning and docking behavior.
- Simplified and cleaned up redundant code for better maintainability.
- Now
child
is nullable inDraggablePanel
widget. This is useful when you want to useDraggablePanel
inside other stack widgets.
- The
DraggablePanelItem
andDraggablePanelButton
models were removed and replaced withRecord
. This was done to make the package easier to use. If you were usingDraggablePanel
in a package, you would need to import models for others that use your same package. Now, this is not necessary.
- Initial release.