jamesblasco / modal_bottom_sheet

Flutter | Create advanced modal bottom sheets. Material, Cupertino or your own style
https://pub.dev/packages/modal_bottom_sheet
MIT License
1.9k stars 479 forks source link

Minor: ScrollController's on(Attach|Detach) arguments for scroll activity tracking #378

Closed ignatz closed 8 months ago

ignatz commented 1 year ago

I'd like to know if the sheet is currently being scrolled. Since I couldn't find any other way (happy to hear otherwise), I'd like to listen to the ScrollPosition.isScrollingNotifier. You'd normally set this up in the void Function(ScrollPosition) onAttach callback. As such, I'd like to expose it. I also exposed the onDispose, mostly since I was on it and it seems useful enough :handwave:

jamesblasco commented 8 months ago

I merged another MR with this change. It should be available in the new release