fluttercandies / extended_nested_scroll_view

extended nested scroll view to fix following issues. 1.pinned sliver header issue 2.inner scrollables in tabview sync issue 3.pull to refresh is not work. 4.do without ScrollController in NestedScrollView's body
MIT License
591 stars 117 forks source link

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

Closed muchenfine closed 1 year ago

muchenfine commented 1 year ago

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 commented 1 year ago

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

muchenfine commented 1 year ago

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

zmtzawqlp commented 1 year ago

正常的。你可以了解下 VisibilityDetector

muchenfine commented 1 year ago

@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)'

zmtzawqlp commented 1 year ago

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

Livjxbill993 commented 1 year ago

正常的。你可以了解下 VisibilityDetector

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

zmtzawqlp commented 1 year ago

正常的。你可以了解下 VisibilityDetector

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

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

Junesui commented 1 year ago

@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 数据变化的时候控制台会报上面这个错误。如果数据不变化一直刷新是没有报错的