fluttercommunity / flutter_sticky_headers

Flutter Sticky Headers - Lets you place "sticky headers" into any scrollable content in your Flutter app. No special wrappers or magic required. Maintainer: @slightfoot
https://pub.dev/packages/sticky_headers
MIT License
1.07k stars 130 forks source link

Fix header not sticking in reverse direction #72

Open JAicewizard opened 1 year ago

JAicewizard commented 1 year ago

localToGlobal Is not up to date during the layout phase. This PR moves that code to the paint phase. This is not ideal, but the operations performed are not expensive so it shouldn't be a performance problem. In fact this would increase the performance as it would not need to layout for a scroll update.

fixes #67