8000 更新了flutter后footer出现错误:SliverGeometry has a paintOffset that exceeds the remainingPaintExtent from the constraints. · Issue #234 · peng8350/flutter_pulltorefresh · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

更新了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

Closed
what2003 opened this issue Dec 31, 2019 · 6 comments

Comments

@what2003
Copy link

更新了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)
════════════════════════════════════════════════════════════════════════════════

@scholar-yan
Copy link

me too

@XenonChau
Copy link
XenonChau commented Jan 6, 2020

The same as yours.
#231

@XenonChau
Copy link
XenonChau commented Jan 6, 2020

You can try this, warp smart refresher with a exactly height container if your tile is not dynamic height.

Container(
        height: 100.0 * _dataSource.length,
        child: SmartRefresher(
          ......

It will be a temporary solution.

@progid
Copy link
progid commented Jan 10, 2020

I have the same issue.

@GENL
Copy link
GENL commented Jan 11, 2020

Same issue.

@peng8350
Copy link
Owner

已修复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants
0