fluttercommunity / flutter-draggable-scrollbar

Draggable Scrollbar - A scrollbar that can be dragged for quickly navigation through a vertical list. Additional option is showing label next to scrollthumb with information about current item. Maintainer: @marica27
https://pub.dev/packages/draggable_scrollbar
MIT License
441 stars 77 forks source link

When i Scroll listview it showing this error #35

Closed anandsubbu007 closed 4 years ago

anandsubbu007 commented 4 years ago
════════ Exception caught by gesture library ═══════════════════════════════════
The following assertion was thrown while resolving a PointerSignalEvent:
Cannot get size from a render object that has been marked dirty for layout.

The size of this render object is ambiguous because this render object has been modified since it was last laid out, which typically means that the size getter was called too early in the pipeline (e.g., during the build phase) before the framework has determined the size and position of the render objects during layout.

The size getter was called for the following element: DraggableScrollbar
    dirty
    dependencies: [_EffectiveTickerMode]
    state: _DraggableScrollbarState#f7719(tickers: tracking 2 tickers)
The render object from which the size was to be obtained was: _RenderLayoutBuilder#671ac relayoutBoundary=up11 NEEDS-LAYOUT

Consider using debugPrintMarkNeedsLayoutStacks to determine why the render object in question is dirty, if you did not expect this.

When the exception was thrown, this was the stack
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 212:49      throw_
packages/flutter/src/widgets/framework.dart 3812:9                                                                             <fn>
packages/flutter/src/widgets/framework.dart 3829:7                                                                             get size
packages/draggable_scrollbar/draggable_scrollbar.dart 359:20                                                                   get barMaxScrollExtent
packages/draggable_scrollbar/draggable_scrollbar.dart 426:11                                                                   <fn>
...
Event: PointerScrollEvent#1a7b4(position: Offset(321.0, 507.0), scrollDelta: Offset(-0.0, 5.0))
    position: Offset(321.0, 507.0)
    scrollDelta: Offset(-0.0, 5.0)
════════════════════════════════════════════════════════════════════════════════

════════ Exception caught by gesture library ═══════════════════════════════════
Cannot get size from a render object that has been marked dirty for layout.
════════════════════════════════════════════════════════════════════════════════

════════ Exception caught by gesture library ═══════════════════════════════════
Cannot get size from a render object that has been marked dirty for layout.
════════════════════════════════════════════════════════════════════════════════

════════ Exception caught by gesture library ═══════════════════════════════════
Cannot get size from a render object that has been marked dirty for layout.
════════════════════════════════════════════════════════════════════════════════