Description
As [flutter document(https://docs.flutter.io/flutter/widgets/NestedScrollView-class.html) said about SliverOverlapAbsorber
// This widget takes the overlapping behavior of the SliverAppBar,
// and redirects it to the SliverOverlapInjector below. If it is
// missing, then it is possible for the nested "inner" scroll view
// below to end up under the SliverAppBar even when the inner
// scroll view thinks it has not been scrolled.
// This is not necessary if the "headerSliverBuilder" only builds
// widgets that do not overlap the next sliver.
SliverOverlapAbsorber can fix the Scroll postion in body scroll widget. is there any way to support
multiple child. as i use a pinned SliverPersistentHeader under a SliverOverlapAbsorber
more info please see the gif and demo code. thanks
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Activity
zmtzawqlp commentedon Nov 15, 2018
i have done some things to solve this thing, may be you have better solution 。please check it when you have the time.
i notice outerscrollcontrol will handle the pinned scroll extend, so i done some to fix it.
https://github.com/fluttercandies/extended_nested_scroll_view
[-]is there any way to support multiple child for SliverOverlapAbsorber[/-][+]NestedScrollView : is there any way to support multiple child for SliverOverlapAbsorber[/+]vanlooverenkoen commentedon Aug 6, 2019
Any progress on this issue? This should be fixed in the flutter itself as well
shinvi commentedon Aug 26, 2019
It’s already in the second half of 2019, and I still haven’t seen any progress on this issue. T_T
hahnrobert commentedon Apr 30, 2020
@vanlooverenkoen I don't understand why this ticket was closed. This ticket is definitely not addressed as of today.
Flutter provides no solution to absorb the height of more than one child. This limits design abilities as no fixed size element can be used between the AppBar and the scrolling content of a child.
bikashKatwal commentedon Jun 16, 2020
I am still having this issue, it is not yet resolved from flutter
23 remaining items
Angeloqo commentedon Nov 24, 2022
worked out fine for me!! thanks!!
nerder commentedon Jan 9, 2023
#22393 (comment)
The solution presented here doesn't work properly when you have a
CustomScrollView
in the body of yourNestedScrollView
, only theMultiSliver
seems to do the work.jong950715 commentedon Feb 15, 2023
#22393 (comment)
It works for my case.
headerSliverBuilder of NestedScrollView has one floating appbar, one pinned appbar
and body has CustomScrollview, it has 2 SliverOverlapInjector.
It works properly even with CustomScrollView in the body of NestedScrollView
Piinks commentedon Apr 7, 2023
Resolving #33137 (currently in progress) will resolve this as well since multiple slivers will be able to go into the group, and the group itself will be able to go into the SliverOverlapAbsorber. 👍
Piinks commentedon Jun 8, 2023
This has been resolved by #126596. With SliverMainAxisGroup, multiple slivers can be wrapped by the group, and then the group can be provided to the SliverOverlapAbsorber. :) cc @thkim1011
github-actions commentedon Jun 23, 2023
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -v
and a minimal reproduction of the issue.