Skip to content

ScrollController attached to multiple scroll views #79443

@0xNF

Description

@0xNF

I don't have easy steps to reproduce this, sorry. The error message said to file an issue so here I am.

════════ Exception caught by gesture ═══════════════════════════════════════════
The following assertion was thrown while handling a gesture:
ScrollController attached to multiple scroll views.
'package:flutter/src/widgets/scroll_controller.dart':
Failed assertion: line 109 pos 12: '_positions.length == 1'

2

Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
  https://github.com/flutter/flutter/issues/new?template=2_bug.md

When the exception was thrown, this was the stack
#2      ScrollController.position
package:flutter/…/widgets/scroll_controller.dart:109
#3      ScrollController.offset
package:flutter/…/widgets/scroll_controller.dart:116
#4      _ReorderableListContentState._scrollTo
package:reorderableitemsview/reorderableitemsview.dart:331
#5      _ReorderableListContentState._wrap.<anonymous closure>.<anonymous closure>
package:reorderableitemsview/reorderableitemsview.dart:631
#6      _DragTargetState.didEnter
package:flutter/…/widgets/drag_target.dart:693
...
Handler: "onStart"
Recognizer: DelayedMultiDragGestureRecognizer#c450e
════════════════════════════════════════════════════════════════════════════════

I'm using reorderableitemsview: ^1.0.0, which is where the exception in question is being thrown from.

I do not manually create any scrollcontrollers, resolutions found https://stackoverflow.com/questions/52484710/flutter-scrollcontroller-attached-to-multiple-scroll-views don't apply

Metadata

Metadata

Assignees

No one assigned

    Labels

    in triagePresently being triaged by the triage teamr: timeoutIssue is closed due to author not providing the requested details in time

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions