Skip to content

Wrong calculations for multiple pinned SliverPersistentHeader inside a NestedScrollView #62

@papmodern

Description

@papmodern

I had a section in my app which contains a appbar a top section and tab bar which all of them are implemented with NestedScrollView and MultiSliver. It was working fine but it came up problematic after I removed my pubspec.lock file.

Recent problem:
image

Previously correct behavior
image

Therefore I realized this feature of the lib is corrupted from version 0.2.5 to 0.2.8

I'm working on Flutter 2.10.5

I used the lib with 0.2.5 exact version as dependency_overrides and its working correctly now. But I wanted to inform you about this new bug

I can describe the wrong behavior in this way. Whenever you add more than one SliverPersistentHeader or SliverAppBar with pinned: true property, the first one works fine, but the rest of the slivers can't understand the position and they don't receive shrinkOffset changes. Also the body of the NestedScrollView goes behind these widgets(The ones after the first pinned widget).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions