-
Notifications
You must be signed in to change notification settings - Fork 726
更新了flutter后footer出现错误:SliverGeometry has a paintOffset that exceeds the remainingPaintExtent from the constraints. #234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
me too |
The same as yours. |
You can try this, warp smart refresher with a exactly height container if your tile is not dynamic height.
It will be a temporary solution. |
I have the same issue. |
Same issue. |
peng8350
added a commit
that referenced
this issue
Jan 11, 2020
已修复 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
更新了flutter后footer出现错误:SliverGeometry has a paintOffset that exceeds the remainingPaintExtent from the constraints.
════════ Exception caught by rendering library ═════════════════════════════════
The following assertion was thrown during performLayout():
SliverGeometry has a paintOffset that exceeds the remainingPaintExtent from the constraints.
The render object whose geometry violates the constraints is the following: RenderSliverLoading#36d29 relayoutBoundary=up1 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
The remainingPaintExtent is 237.0, but the paintOrigin + paintExtent is 292.0.
The paintOrigin and paintExtent must cause the child sliver to paint within the viewport, and so cannot exceed the remainingPaintExtent.
The relevant error-causing widget was
CustomFooter
lib/forum_main.dart:39
When the exception was thrown, this was the stack
#0 RenderSliver.debugAssertDoesMeetConstraints.
package:flutter/…/rendering/sliver.dart:1215
#1 RenderSliver.debugAssertDoesMeetConstraints
package:flutter/…/rendering/sliver.dart:1229
#2 RenderObject.layout.
package:flutter/…/rendering/object.dart:1770
#3 RenderObject.layout
package:flutter/…/rendering/object.dart:1772
#4 RenderViewportBase.layoutChildSequence
package:flutter/…/rendering/viewport.dart:451
...
The following RenderObject was being processed when the exception was fired: RenderSliverLoading#36d29 relayoutBoundary=up1 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
RenderObject: RenderSliverLoading#36d29 relayoutBoundary=up1 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
parentData: paintOffset=Offset(0.0, 0.0) (can use size)
constraints: SliverConstraints(AxisDirection.down, GrowthDirection.forward, ScrollDirection.idle, scrollOffset: 0.0, remainingPaintExtent: 237.0, crossAxisExtent: 375.0, crossAxisDirection: AxisDirection.right, viewportMainAxisExtent: 667.0, remainingCacheExtent: 487.0 cacheOrigin: 0.0 )
geometry: SliverGeometry(scrollExtent: 0.0, paintExtent: 55.0, paintOrigin: 237.0, maxPaintExtent: 55.0, hasVisualOverflow: true, cacheExtent: 55.0)
scrollExtent: 0.0
paintExtent: 55.0
paintOrigin: 237.0
maxPaintExtent: 55.0
hasVisualOverflow: true
cacheExtent: 55.0
child: _RenderLayoutBuilder#47e10 relayoutBoundary=up2 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
parentData: paintOffset=Offset(0.0, -0.0) (can use size)
constraints: BoxConstraints(w=375.0, 0.0<=h<=Infinity)
size: Size(375.0, 55.0)
child: RenderSemanticsGestureHandler#d6f37 relayoutBoundary=up3 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
parentData: offset=Offset(0.0, 0.0) (can use size)
constraints: BoxConstraints(w=375.0, 0.0<=h<=Infinity)
size: Size(375.0, 55.0)
gestures: tap
child: RenderPointerListener#3324b relayoutBoundary=up4 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
parentData: (can use size)
constraints: BoxConstraints(w=375.0, 0.0<=h<=Infinity)
size: Size(375.0, 55.0)
behavior: opaque
listeners: down
child: RenderConstrainedBox#ad0f9 relayoutBoundary=up5 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
parentData: (can use size)
constraints: BoxConstraints(w=375.0, 0.0<=h<=Infinity)
size: Size(375.0, 55.0)
additionalConstraints: BoxConstraints(0.0<=w<=Infinity, h=55.0)
════════════════════════════════════════════════════════════════════════════════
The text was updated successfully, but these errors were encountered: