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

fix: 修复评论页逻辑错误导致的页面卡死问题 #1103

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

fannnzhang
Copy link

@fannnzhang fannnzhang commented Nov 22, 2024

I/flutter ( 9105): [2024-11-21 14:29:55.024187 | Catcher 2 | INFO] ---------- ERROR ----------
I/flutter ( 9105): [2024-11-21 14:29:55.025009 | Catcher 2 | INFO] A RenderViewport expected a child of type RenderSliver but received a child of type RenderErrorBox.
I/flutter ( 9105): RenderObjects expect specific types of children because they coordinate with their children during layout and paint. For example, a RenderSliver cannot be the child of a RenderBox because a RenderSliver does not understand the RenderBox layout protocol.
I/flutter ( 9105):
I/flutter ( 9105): The RenderViewport that expected a RenderSliver child was created by:
I/flutter ( 9105): Viewport ← IgnorePointer-[GlobalKey#56717] ← Semantics ← Listener ← _GestureSemantics ← RawGestureDetector-[LabeledGlobalKey#4bdea] ← Listener ← _ScrollableScope ← _ScrollSemantics-[GlobalKey#a2f4a] ← NotificationListener ← Transform ← ClipRect ← ⋯
I/flutter ( 9105):
I/flutter ( 9105): The RenderErrorBox that did not match the expected child type was created by:
I/flutter ( 9105): ErrorWidget-[#fc8b5] ← FutureBuilder ← Viewport ← IgnorePointer-[GlobalKey#56717] ← Semantics ← Listener ← _GestureSema


if (_videoReplyController.replyList.isNotEmpty || (data && data['status'])) 这句代码由于data类型是Map 而不是bool 导致错误 返回ErrorRenderBox 与CustomScrollView需要的SliverRenderBox不一致 进而引发上述错误 该问题在ios上会直接导致页面无法响应手势 只能杀进程 当前flutter版本 3.24.5

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

Successfully merging this pull request may close these issues.

1 participant