Skip to content
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

CupertinoPopoverDirection.right 方向设置 popoverWidth 会报错 #60

Open
z234009184 opened this issue Nov 13, 2020 · 0 comments
Open

Comments

@z234009184
Copy link

z234009184 commented Nov 13, 2020

如题

在设置气泡方向为 CupertinoPopoverDirection.right 方向时设置 popoverWidth 会报错

详细报错信息如下

When the exception was thrown, this was the stack: 
#0      RenderBox.debugAssertDoesMeetConstraints.<anonymous closure> (package:flutter/src/rendering/box.dart:2069:9)
#1      RenderBox.debugAssertDoesMeetConstraints (package:flutter/src/rendering/box.dart:2128:6)
#2      RenderBox.size=.<anonymous closure> (package:flutter/src/rendering/box.dart:1846:7)
#3      RenderBox.size= (package:flutter/src/rendering/box.dart:1848:6)
#4      _CupertionPopoverContextRenderObject.performLayout (package:cool_ui/widgets/popover/cupertino_popover.dart:474:7)
...
The following RenderObject was being processed when the exception was fired: _CupertionPopoverContextRenderObject#b9408 relayoutBoundary=up2 NEEDS-LAYOUT
...  needs compositing
...  parentData: offset=Offset(584.0, 244.0) (can use size)
...  constraints: BoxConstraints(w=190.0, 64.0<=h<=72.0)
...  size: Size(198.0, 72.0)
RenderObject: _CupertionPopoverContextRenderObject#b9408 relayoutBoundary=up2 NEEDS-LAYOUT
  needs compositing
  parentData: offset=Offset(584.0, 244.0) (can use size)
  constraints: BoxConstraints(w=190.0, 64.0<=h<=72.0)
  size: Size(198.0, 72.0)
...  child: RenderCustomPaint#a5366 relayoutBoundary=up3
...    needs compositing
...    parentData: offset=Offset(0.0, 0.0) (can use size)
...    constraints: BoxConstraints(w=190.0, 64.0<=h<=72.0)
...    size: Size(190.0, 72.0)
...    child: _RenderInkFeatures#36a74 relayoutBoundary=up4
...      needs compositing
...      parentData: <none> (can use size)
...      constraints: BoxConstraints(w=190.0, 64.0<=h<=72.0)
...      size: Size(190.0, 72.0)
...      child: RenderRepaintBoundary#bfc1f relayoutBoundary=up5
...        needs compositing
...        parentData: <none> (can use size)
...        constraints: BoxConstraints(w=190.0, 64.0<=h<=72.0)
...        layer: OffsetLayer#12c79
...          engine layer: OffsetEngineLayer#5d035
...          offset: Offset(584.0, 244.0)
...        size: Size(190.0, 72.0)
...        metrics: 50.0% useful (1 bad vs 1 good)
...        diagnosis: insufficient data to draw conclusion (less than five repaints)
...        child: RenderCustomPaint#fce3e relayoutBoundary=up6
...          needs compositing
...          parentData: <none> (can use size)
...          constraints: BoxConstraints(w=190.0, 64.0<=h<=72.0)
...          size: Size(190.0, 72.0)
════════════════════════════════════════════════════════════════════════════════════════════════════

Another exception was thrown: _CupertionPopoverContextRenderObject does not meet its constraints.

════════ Exception caught by rendering library ═════════════════════════════════════════════════════
_CupertionPopoverContextRenderObject does not meet its constraints.
════════════════════════════════════════════════════════════════════════════════════════════════════
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

1 participant