Skip to content

[Bug report] Windows still reports 'ScrollController is attached to more than one ScrollPosition.' #168

@thedeukalion

Description

@thedeukalion

Version

6.2.1

Platforms

Windows

Device Model

11

flutter info

Flutter version 3.35.3

How to reproduce?

Tried all these examples:

https://github.com/fluttercandies/extended_nested_scroll_view/blob/master/example/lib/pages/complex/scroll_to_top.dart

https://github.com/fluttercandies/extended_nested_scroll_view/blob/master/example/lib/pages/simple/extened_nested_scroll_view_demo.dart

https://github.com/fluttercandies/extended_nested_scroll_view/blob/master/example/lib/pages/simple/dynamic_pinned_header_height.dart

Which supposedly fixes:
flutter/flutter#21868

And yet, I receive plenty of in all of them, got tired after the third one skipped the rest:

======== Exception caught by animation library =====================================================
The following assertion was thrown while notifying status listeners for AnimationController:
The provided ScrollController is attached to more than one ScrollPosition.

The Scrollbar requires a single ScrollPosition in order to be painted.

When the scrollbar is interactive, the associated ScrollController must only have one ScrollPosition attached.
The provided ScrollController cannot be shared by multiple ScrollView widgets.

So, is 'GlowNotificationWidget' which was the only thing removed the actual fix for this issue?
If the issue is fixed with this library, why is it present in all the examples?
Does it not work with Windows Desktop App?

Logs

Example code (optional)

MaterialApp(
      scrollBehavior: CustomScrollBehavior(),
      home: ScrollToTopDemo(),
      //home: DynamicPinnedHeaderHeightDemo()
      //home: ExtendedNestedScrollViewDemo()
)

class CustomScrollBehavior extends MaterialScrollBehavior {
  @override
  Set<PointerDeviceKind> get dragDevices => {
    PointerDeviceKind.touch,
    PointerDeviceKind.mouse,
  };
}

Contact

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions