introduction_screen
introduction_screen copied to clipboard
Exception caught by rendering library
Get this as a message when clicking on the Next button.
════════ Exception caught by rendering library ═════════════════════════════════ The following assertion was thrown during performLayout(): Assertion failed: firstIndex == 0 || childScrollOffset(firstChild!)! - scrollOffset <= precisionErrorTolerance is not true
The relevant error-causing widget was
IntroductionScreen-[LabeledGlobalKey<IntroductionScreenState>#1ed5a]
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 236:49 throw
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 29:3 assertFailed
packages/flutter/src/rendering/sliver_fixed_extent_list.dart 270:77 performLayout
packages/flutter/src/rendering/object.dart 1779:7 layout
packages/flutter/src/rendering/sliver_padding.dart 137:5 performLayout
...
The following RenderObject was being processed when the exception was fired: RenderSliverFillViewport#86a84 relayoutBoundary=up2 NEEDS-LAYOUT NEEDS-COMPOSITING-BITS-UPDATE
RenderObject: RenderSliverFillViewport#86a84 relayoutBoundary=up2 NEEDS-LAYOUT NEEDS-COMPOSITING-BITS-UPDATE
needs compositing
parentData: paintOffset=Offset(0.0, 0.0) (can use size)
constraints: SliverConstraints(AxisDirection.right, GrowthDirection.forward, ScrollDirection.idle, scrollOffset: 500.0, remainingPaintExtent: 500.0, crossAxisExtent: 583.3, crossAxisDirection: AxisDirection.down, viewportMainAxisExtent: 500.0, remainingCacheExtent: 500.0, cacheOrigin: 0.0)
geometry: SliverGeometry(scrollExtent: 2000.0, paintExtent: 500.0, maxPaintExtent: 2000.0, hasVisualOverflow: true, cacheExtent: 500.0)
scrollExtent: 2000.0
paintExtent: 500.0
maxPaintExtent: 2000.0
hasVisualOverflow: true
cacheExtent: 500.0
currently live children: 1 to 1
child with index 1: RenderIndexedSemantics#a7310
needs compositing
parentData: index=1; keepAlive; layoutOffset=500.0
constraints: BoxConstraints(w=500.0, h=583.3)
semantic boundary
size: Size(500.0, 583.3)
index: 1
child: RenderRepaintBoundary#8bae2
needs compositing
parentData:
same here, using the example
Same for me too:
════════ Exception caught by rendering library ═════════════════════════════════
'package:flutter/src/rendering/sliver_fixed_extent_list.dart': Failed assertion: line 270 pos 12: 'firstIndex == 0 || childScrollOffset(firstChild!)! - scrollOffset <= precisionErrorTolerance': is not true.
The relevant error-causing widget was
IntroductionScreen-[LabeledGlobalKey<IntroductionScreenState>#aed2d]
lib/…/onboarding/onboarding.dart:47
════════════════════════════════════════════════════════════════════════════════
Same here
Mine fails too.
Possible solution:
Set curve
to the default value (i.e don't give curve
a value or set curve = Curves.easeIn
).
This seems to fix mine.
Same problem here, @peterbrown0 your solution fixed it. Thanks!
Hi, sorry I don't have a solution for this, I keep this issue open. Apparently @peterbrown0's solution works.
Hi all,
I'm going to close this as its been over a year now and we presume you're all OK?
If not, please re-open.
Thanks, Gavin.