Skip to content

v4.1.0

Latest

Choose a tag to compare

@gonuit gonuit released this 26 Nov 23:24
69220ff

Changes:

  • CustomRefreshIndicator:
    • Fixed a crash when the indicator was hidden before the onRefresh callback completed. Reported by @KubrickRubrik in #60.
    • Fixed the scroll indicator being shown on the opposite edge while the indicator was dragged.
    • The show and refresh methods now set the indicator edge and use the scroll direction of the list, so the indicator is visible on the correct side when triggered programmatically.
    • The IndicatorController methods used internally by the widget are now marked as internal.
    • Fixed the widget still driving an externally provided controller after it was replaced with null.
    • Fixed the indicator state being left on the previous controller when the controller was changed during a refresh. The new controller now takes over the indicator state.
    • Fixed an externally provided controller being left in the loading state when the widget was removed during a refresh.
    • Fixed the indicator being hidden by an outdated onRefresh call that completed after the indicator was hidden manually and a new refresh was started.
  • CustomMaterialIndicator:
    • Added the show, hide and refresh methods, available through a GlobalKey<CustomMaterialIndicatorState>. Reported by @MrLi2000 in #70.
    • Fixed the indicatorSize argument, which had no effect.
    • Fixed the indicator being visible above the edgeOffset as soon as the list was touched. The indicator is now clipped at the edge, like the built-in RefreshIndicator. Reported by @MrTadeu in #62.
    • Fixed a misleading comment. Reported by @raymondmakz in #68.
  • PositionedIndicatorContainer:
    • Added the clipBehavior argument, which clips the child at the edge from which it slides in. Defaults to Clip.none.
    • Fixed the position of the child for horizontal lists with the right-to-left text direction.
  • ClampingWithOverscrollPhysics:
    • Fixed overscroll not being registered when the list was scrolled past its leading edge.
    • Fixed the list becoming unscrollable after overscrolling while the indicator was idle or loading. Reported by @Katzeee in #65.

Full Changelog: v4.0.2...v4.1.0