Skip to content

NestedScrollView flutter_gallery Tabs Sample the Scroll state is not right when tab the tabbar #21868

Closed

Description

@zmtzawqlp

please run flutter_gallery sample and open sample in Material - Tabs.
issue can be reproduced in dev/master branch, beta branch has no this issue but has crash issue.

Steps to Reproduce

  1. tap APPAREL and scroll to bottom(Blush Sweats)
  2. tap HOME and scroll the list up or down
  3. tap APPAREL the Ginger Scarf will disapper in Screen bottom

and i made a demo based on NestedScrollView. it also has this issue.
i notice that SliverOverlapAbsorber can only used for SliverAppBar, no such thing for SliverPersistentHeader. i think it also effect the scroll behaviour.
more detail please see the gif and my demo code. it's kind of you can have a look for this issue.
thanks.
demo_code.txt
19d422db240762562ac0254626ecf887

Activity

  1. changed the title [-]flutter_gallery Tabs Sample the Scroll state is right when tab the tabbar[/-] [+]flutter_gallery Tabs Sample the Scroll state is not right when tab the tabbar[/+] on Sep 14, 2018
  2. added
    customer: galleryRelating to flutter/gallery repository. Please transfer non-framework issues there.
    on Sep 14, 2018
  3. added this to the milestone on Sep 14, 2018
  4. zmtzawqlp commented on Nov 15, 2018

    @zmtzawqlp
    ContributorAuthor

    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 innerscrollcontrol is sync the cache scrollpostion, that the problem here.
    may be we should only Focus on the active one
    https://github.com/fluttercandies/extended_nested_scroll_view

  5. changed the title [-]flutter_gallery Tabs Sample the Scroll state is not right when tab the tabbar[/-] [+]NestedScrollView flutter_gallery Tabs Sample the Scroll state is not right when tab the tabbar[/+] on Dec 20, 2018
  6. AkoWu101 commented on Jun 28, 2019

    @AkoWu101

    @zmtzawqlp Awesome. i try your project. Fix the official NestedScrollView issue

  7. firatcetiner commented on Sep 20, 2019

    @firatcetiner

    @zmtzawqlp I can't use your plugin. The instructions are unclear for me, but thanks anyway.

  8. zmtzawqlp commented on Sep 20, 2019

    @zmtzawqlp
    ContributorAuthor

    @firatcetiner do as demo show

  9. added
    frameworkflutter/packages/flutter repository. See also f: labels.
    p: material_uimaterial_ui package in flutter/packages
    on Nov 26, 2019
  10. Cae2 commented on Jan 3, 2020

    @Cae2

    @zmtzawqlp I can't use your plugin. The instructions are unclear for me, but thanks anyway.

    I didn't understand either how to use it...

    Did you found another solution?

  11. AlexV525 commented on Mar 4, 2020

    @AlexV525
    Member

    @firatcetiner @Cae2 Feel free to ask about the usage for this plugin at the repository. We don't discuss about the usage here.

  12. AlexV525 commented on Mar 4, 2020

    @AlexV525
    Member

    This issue also happened when there's multiple scroll view provided, not just TabBarView.
    @zoechi @Piinks Is there anyone can handle this case? Almost two year passed.

  13. 16 remaining items

  14. iloveq commented on Dec 16, 2021

    @iloveq

    innerScrollController.addListener(() { outerScrollerController.jumpTo(innerScrollController.offset); });

    solved ,do this

  15. hmTest6 commented on Jan 11, 2022

    @hmTest6

    innerScrollController.addListener(() { outerScrollerController.jumpTo(innerScrollController.offset); });

    solved ,do this

    请问i这个代码写在哪里解决这个问题的

  16. vbuberen commented on Jan 21, 2022

    @vbuberen

    Can confirm that issue still exists in 2.8.1

    The library suggested above (https://github.com/fluttercandies/extended_nested_scroll_view) helped to solve the problem.

  17. wangyujie1207 commented on Jun 24, 2022

    @wangyujie1207

    Why does this problem still exist

  18. mrverdant13 commented on Jul 21, 2022

    @mrverdant13

    The issue is still present on version 3.0.4

  19. bugrevealingbme commented on Dec 28, 2022

    @bugrevealingbme

    3.3.10 still ++

  20. tanlianghao commented on Jan 10, 2023

    @tanlianghao

    is there a solution to the problem

  21. greyovo commented on Feb 3, 2023

    @greyovo
    Contributor

    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 innerscrollcontrol is sync the cache scrollpostion, that the problem here. may be we should only Focus on the active one https://github.com/fluttercandies/extended_nested_scroll_view

    Saved my life thx bro <3

  22. removed
    customer: galleryRelating to flutter/gallery repository. Please transfer non-framework issues there.
    on Feb 13, 2023
  23. Piinks commented on May 30, 2023

    @Piinks
    Contributor

    I think this is another case of #40740. I have been scanning the issue tracker looking to consolidate all of these so we can see about a proper solution. I am going to close this since #40740 has the most upvotes, let's follow up there. :)

    Thanks for providing test cases, updates and work arounds!

  24. github-actions commented on Jun 13, 2023

    @github-actions

    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.

  25. locked as resolved and limited conversation to collaborators on Jun 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: contributor-productivityTeam-specific productivity, code health, technical debt.customer: crowdAffects or could affect many people, though not necessarily a specific customer.f: scrollingViewports, list views, slivers, etc.found in release: 1.21Found to occur in 1.21frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onp: material_uimaterial_ui package in flutter/packages

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions