extended_nested_scroll_view icon indicating copy to clipboard operation
extended_nested_scroll_view copied to clipboard

设置过ExtendedVisibilityDetector uniqueKey 后 控制台一直打印 is visible

Open muchenfine opened this issue 1 year ago • 5 comments

I/flutter ( 2809): [<'AIssue2'>] is visible 2 I/flutter ( 2809): [<'ASpotCheck1'>] is visible 3 I/flutter ( 2809): [<uction0'>] is visible 2 I/flutter ( 2809): [<e2'>] is visible 2 I/flutter ( 2809): [<'duction0'>] is visible 2 I/flutter ( 2809): [<'sue2'>] is visible 2 I/flutter ( 2809): [<'oduction0'>] is visible 2 I/flutter ( 2809): [<'heck1'>] is visible 32 I/flutter ( 2809): [<'Issue2'>] is visible

muchenfine avatar Aug 09 '22 05:08 muchenfine

有时候会打印600多次。 图片

muchenfine avatar Aug 09 '22 05:08 muchenfine

图片 下拉刷新是会持续打印600多次

muchenfine avatar Aug 09 '22 05:08 muchenfine

正常的。你可以了解下 VisibilityDetector

zmtzawqlp avatar Aug 09 '22 06:08 zmtzawqlp

@zmtzawqlp

按照官网的例子,refresh和extended_nested_scroll_view一起使用时,滚动就会出现这个错误

RenderBox.size accessed beyond the scope of resize, layout, or permitted parent access. RenderBox can always access its own size, otherwise, the only object that is allowed to read RenderBox.size is its parent, if they have said they will. It you hit this assert trying to access a child's size, pass "parentUsesSize: true" to that child's layout(). 'package:flutter/src/rendering/box.dart': package:flutter/…/rendering/box.dart:1 Failed assertion: line 1987 pos 13: 'debugDoingThisResize || debugDoingThisLayout || _computingThisDryLayout || (RenderObject.debugActiveLayout == parent && size._canBeUsedByParent)'

muchenfine avatar Aug 09 '22 06:08 muchenfine

官方demo 能重现吗? 步骤是啥

zmtzawqlp avatar Aug 09 '22 10:08 zmtzawqlp

正常的。你可以了解下 VisibilityDetector

法老,可以关闭控制台这样的输出吗,这个只有在debug模式下才会有吗

Livjxbill993 avatar Oct 31 '22 03:10 Livjxbill993

正常的。你可以了解下 VisibilityDetector

法老,可以关闭控制台这样的输出吗,这个只有在debug模式下才会有吗

嗯 ,debug 下面才会打印 https://github.com/fluttercandies/extended_nested_scroll_view/blob/029b0911cf3cfea57e8277e8a63429b26dc18aba/lib/src/extended_nested_scroll_view_part.dart#L91

zmtzawqlp avatar Oct 31 '22 03:10 zmtzawqlp

@zmtzawqlp

按照官网的例子,refresh和extended_nested_scroll_view一起使用时,滚动就会出现这个错误

RenderBox.size accessed beyond the scope of resize, layout, or permitted parent access. RenderBox can always access its own size, otherwise, the only object that is allowed to read RenderBox.size is its parent, if they have said they will. It you hit this assert trying to access a child's size, pass "parentUsesSize: true" to that child's layout(). 'package:flutter/src/rendering/box.dart': package:flutter/…/rendering/box.dart:1 Failed assertion: line 1987 pos 13: 'debugDoingThisResize || debugDoingThisLayout || _computingThisDryLayout || (RenderObject.debugActiveLayout == parent && size._canBeUsedByParent)'

你好。这个问题解决了吗? listview 数据变化的时候控制台会报上面这个错误。如果数据不变化一直刷新是没有报错的

Junesui avatar Feb 19 '23 04:02 Junesui