Tag: IndexedStack

  • Flutter: enable scroll-to-top for nested Scaffolds (e.g. in IndexedStack)

    Flutter: enable scroll-to-top for nested Scaffolds (e.g. in IndexedStack)

    By

    in

    –

    When using nested Scaffolds (e.g. in combination with IndexedStack), the PrimaryScrollController is not usable by default. An IndexedStack will load all subviews so scroll-to-top will change all scrollable views at the same time, even if they are not visible or it simply does not work, because the PrimaryScrollController can only be attached to a single…

    Read more