sliding_up_panel 2.0.0+1
sliding_up_panel: ^2.0.0+1 copied to clipboard
A draggable Flutter widget that makes implementing a SlidingUpPanel much easier!
2.0.0+1 [April 26, 2021] #
2.0.0 [April 26, 2021] #
1.0.2 [April 13, 2020] #
1.0.1 [April 2, 2020] #
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
panelChildandpanelBuilderproperties - Addressed issues #102, #111: Fixed issue where tapping on the panel closes it (when using the
panelBuilder) - Addressed issues #24, #70, #108, #121: Changed
backdropTapClosesPanelto useonTapandonVerticalDragEndso swipes on the backdrop cause the panel to close
Features #
- Addressed issue #107: Added duration and curve properties to the
PanelController'sanimatePanelToPositionmethod - Addressed issues #12,#77,#86,#100: Added a
snapPointproperty 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
1.0.0 [January 25, 2020] #
Fixes
- Addressed issue #69: Used a FadeTransition to handle opacity changes (as per Flutter documentation)
- Cleaned up
PanelControllercode to make maintenance easier - Added clearer assert statements and messages to indicate why calling
PanelControllermethods 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
panelBuilderproperty that's required to implement the nested scrolling as described above. - Added an
isAttachedproperty to thePanelControllerto indicate whether or not thePanelControlleris 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()->isPanelAnimatingisPanelOpen()->isPanelOpenisPanelClosed()->isPanelClosedisPanelShown()->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
0.3.6 [September 25, 2019] #
Fixes
- Fixed issues #54, #59 where panel listeners would be called before UI was rendered (related to
defaultPanelState)
Documentation
- Updated the documentation to reflect fixes
0.3.5 [August 31, 2019] #
Features
- Added the
defaultPanelStateproperty that changes whether the panel is either open or closed by default (PanelState.OPENorPanelState.CLOSED)
Documentation
- Updated the documentation to reflect new features
0.3.4 [April 16, 2019] #
Features
- Added the
slideDirectionproperty that changes how the panel slides open (either up or down)
Documentation
- Updated the documentation to reflect new features
0.3.3 [April 6, 2019] #
Features
- Added the
isDraggableproperty that allows/prevents dragging of the panel
Documentation
- Updated the documentation to reflect new features
0.3.2 [April 5, 2019] #
Documentation
- Fixed problem where images would wrap on pub (instead of displaying on one line)
0.3.1 [April 5, 2019] #
Features
- Configuration options to
SlidingUpPanelparallaxEnabledparallaxOffset
Documentation
- Created a new example app (Maps)
- Updated documentation to reflect new features
0.3.0 April 2, 2019 #
Features
-
Added ability to close the
panelwhen the backdrop is tapped -
Added callbacks to the
SlidingUpPanelonPanelSlideonPanelOpenedonPanelClosed
-
Added methods to the
PanelControllersetPanelPositionanimatePanelToPositiongetPanelPositionisPanelAnimatingisPanelOpenisPanelClosedisPanelShown
Bug Fixes
- Fixed issue where the
collapsedwidget would accept touch events even when invisible (i.e. even when the panel was fully open)
Documentation
- Updated documentation to reflect new features
- Added clarification on
PanelControllerlifecycle - Added an explanation about nesting the
Scaffoldwhen displaying a backdrop
0.2.0 April 1, 2019 #
Added the backdrop feature:
- Body darkens as the panel opens
- The backdrop color is customizable
- The backdrop opacity is also customizable
- Off by default
Other changes:
- Removed the README from the example app (pub will display the code on the website now)
- Specified Dart as the language in the README code snippets
0.1.2 March 31, 2019 #
- Updated documentation to be more comprehensive
0.1.1 March 31, 2019 #
- Added a CHANGELOG file
0.1.0 March 31, 2019 #
This is the initial release of the sliding_up_panel package. This includes features such as
- A sliding up panel that responds to user gestures
- Customizing the look and feel of the sliding panel
- Manually controlling the sliding panel via the PanelController