Releases: akshathjain/sliding_up_panel
Releases · akshathjain/sliding_up_panel
Formatted code according to dartfmt
Features
- Formatted code according to dartfmt
Documentation
- Updated documentation to reflect new features and fixes
Added support for null safety
Added header and footer properties
Added the snapPoint property, increased performance, and fixed bugs
Fixes
- Addressed issue #94: Too much widget rebuild occurring when the user slides the panel. This fix results in huge performance benefits when using the
panelChild
andpanelBuilder
properties - Addressed issues #102, #111: Fixed issue where tapping on the panel closes it (when using the
panelBuilder
) - Addressed issues #24, #70, #108, #121: Changed
backdropTapClosesPanel
to useonTap
andonVerticalDragEnd
so swipes on the backdrop cause the panel to close
Features
- Addressed issue #107: Added duration and curve properties to the
PanelController
'sanimatePanelToPosition
method - Addressed issues #12,#77,#86,#100: Added a
snapPoint
property to allow the panel to snap to a position midway during its slide
Documentation
- Updated documentation to reflect new features and fixes
- Updated copyright year in the LICENSE
Added option to link panel content scroll position with SlidingUpPanel scroll position
Fixes
- Addressed issue #69: Used a FadeTransition to handle opacity changes (as per Flutter documentation)
- Cleaned up
PanelController
code to make maintenance easier - Added clearer assert statements and messages to indicate why calling
PanelController
methods would fail before attaching thePanelController
.
Features
- Addressed issues #17, #55, #60: Added the ability to link / nested the scroll position of the panel content with the position of the panel (i.e. infinite scrolling).
- Added the
panelBuilder
property that's required to implement the nested scrolling as described above. - Added an
isAttached
property to thePanelController
to indicate whether or not thePanelController
is attached to an instance of theSlidingUpPanel
Breaking Changes
The following PanelController
methods now return Future<void>
instead of void
:
close()
open()
hide()
show()
animatePanelToPosition(double value)
The following PanelController
methods have changed to Dart properties to better reflect Dart language conventions:
setPanelPosition()
->panelPosition
[as a setter]getPanelPosition()
->panelPosition
[as a getter]isPanelAnimating()
->isPanelAnimating
isPanelOpen()
->isPanelOpen
isPanelClosed()
->isPanelClosed
isPanelShown()
->isPanelShown
For example, here's how you would have previously used setPanelPosition()
and getPanelPosition()
vs. how you would now use the panelPosition
property:
// OLD, no longer supported
print(pc.getPanelPosition()); // print a value between 0.0 and 1.0
pc.setPanelPosition(0.5); // sets the panelPosition to 0.5
// NEW
print(pc.panelPosition); // print a value between 0.0 and 1.0
pc.panelPosition = 0.5; // sets the panelPosition to 0.5
And here's how you would have previously called isPanelAnimating()
vs. how you would now call isPanelAnimating
.
panelController.isPanelAnimating(); // OLD, no longer supported
panelController.isPanelAnimating; // NEW
Documentation
- Updated the documentation to reflect changes
- Updated example to use nested scrolling
Fixed Listener Related Bugs
Added defaultPanelState Property
Features
- Added the
defaultPanelState
property that changes whether the panel is either open or closed by default (PanelState.OPEN
orPanelState.CLOSED
)
Documentation
- Updated the documentation to reflect new features
Added slideDirection Property
Features
- Added
slideDirection
property that changes how the panel slides open (either up or down)
Documentation
- Updated the documentation to reflect new features
Added isDraggable Property
Features
- Added
isDraggable
property that allows/prevents dragging of the panel
Documentation
- Updated the documentation to reflect new features
Updated Documentation
Documentation
- Fixed problem where images would wrap on pub (instead of displaying on one line)