flutter_sticky_header icon indicating copy to clipboard operation
flutter_sticky_header copied to clipboard

Add a callback that handles the changes in the state of a sticky header such as "onPinned"

Open fujidaiti opened this issue 1 year ago • 0 comments

This PR fixes #48 and #70 by adding a callback to be called when a sticky header is pinned or unpinned, etc. It also works with reversed scrollable widgets.

  • Added SliverStickyHeaderActivity class that represents an event such as "onPinned"
  • Added the event dispatching logic to RenderSliverStickyHeader
  • Added callback parameters to the constructors of SliverStickyHeader
  • Added a new example to example/lib/main.dart

I hope you find it useful 😀

fujidaiti avatar Jun 25 '23 11:06 fujidaiti