Skip to content

Releases: akshathjain/sliding_up_panel

Formatted code according to dartfmt

27 Apr 03:04
Compare
Choose a tag to compare

Features

  • Formatted code according to dartfmt

Documentation

  • Updated documentation to reflect new features and fixes

Added support for null safety

27 Apr 02:55
Compare
Choose a tag to compare

Features

  • Addressed issue #223,#240 - Added null safety support

Documentation

  • Updated documentation to reflect new features and fixes

Added header and footer properties

13 Apr 21:33
Compare
Choose a tag to compare

Features

  • Addressed issues #71, #103 - Added an optional header widget that floats above the panel and attaches to the top
  • Added an optional footer widget that floats above the panel and attaches to the bottom

Documentation

  • Updated documentation to reflect new features and fixes

Added the snapPoint property, increased performance, and fixed bugs

02 Apr 05:14
Compare
Choose a tag to compare

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 and panelBuilder 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 use onTap and onVerticalDragEnd so swipes on the backdrop cause the panel to close

Features

  • Addressed issue #107: Added duration and curve properties to the PanelController's animatePanelToPosition 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

26 Jan 02:00
Compare
Choose a tag to compare

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 the PanelController.

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 the PanelController to indicate whether or not the PanelController is attached to an instance of the SlidingUpPanel

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

25 Sep 18:41
c3476a7
Compare
Choose a tag to compare

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

Added defaultPanelState Property

31 Aug 19:04
Compare
Choose a tag to compare

Features

  • Added the defaultPanelState property that changes whether the panel is either open or closed by default (PanelState.OPEN or PanelState.CLOSED)

Documentation

  • Updated the documentation to reflect new features

Added slideDirection Property

16 Apr 04:13
Compare
Choose a tag to compare

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

07 Apr 01:22
Compare
Choose a tag to compare

Features

  • Added isDraggable property that allows/prevents dragging of the panel

Documentation

  • Updated the documentation to reflect new features

Updated Documentation

05 Apr 19:40
Compare
Choose a tag to compare

Documentation

  • Fixed problem where images would wrap on pub (instead of displaying on one line)