extended_nested_scroll_view icon indicating copy to clipboard operation
extended_nested_scroll_view copied to clipboard

[Bug report]

Open jayrao5566 opened this issue 2 years ago • 10 comments

Version

6.2.0

Platforms

dart, iOS

Device Model

模拟器,ios17.2

flutter info

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.16.5, on macOS 13.6.1 22G313 darwin-arm64 (Rosetta), locale zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.1)
[✓] Android Studio (version 2023.1)
[✓] IntelliJ IDEA Community Edition (version 2023.3)
[✓] IntelliJ IDEA Community Edition (version 2023.3)
[✓] VS Code (version 1.85.1)

How to reproduce?

════════ Exception caught by rendering library ═════════════════════════════════ 'package:flutter/src/widgets/scroll_position.dart': Failed assertion: line 616 pos 12: 'haveDimensions == (_lastMetrics != null)': is not true. The relevant error-causing widget was:

════════ Exception caught by rendering library ═════════════════════════════════ 'package:flutter/src/widgets/scroll_position.dart': Failed assertion: line 616 pos 12: 'haveDimensions == (_lastMetrics != null)': is not true. The relevant error-causing widget was:

Logs

No response

Example code (optional)

No response

Contact

No response

jayrao5566 avatar Dec 26 '23 02:12 jayrao5566

This happened to me too, with widget Structure

ExtendedNestedScrollView body: SingleChildScrolLView

Edit: All widgets in the ExtendedNestedScrollView body have errors (I've tested with SingleChildScrollView, ListView and CustomScrollView)

sed1ka avatar Dec 26 '23 03:12 sed1ka

ios(17.1.2)和 vivo (android 13)真机也遇到了此问题。 组件初始化后会报 'package:extended_nested_scroll_view/src/extended_nested_scroll_view.dart': Failed assertion: line 1645 pos 12: 'coordinator._outerPosition == this': is not true. 滚动后会报 'package:flutter/src/widgets/scroll_position.dart': Failed assertion: line 616 pos 12: 'haveDimensions == (_lastMetrics != null)': is not true.

hayderGo avatar Dec 26 '23 07:12 hayderGo

同样遇到这种情况,用官方的NestedScrollView 则不会。 似乎不能正确嵌套滚动布局

chenfasheng avatar Dec 26 '23 13:12 chenfasheng

回退吧,6.1.2是没这个问题的

GuoguoDad avatar Dec 27 '23 06:12 GuoguoDad

回退吧,6.1.2是没这个问题的

我的就是6.1.2,也是这个问题。

chenfasheng avatar Dec 27 '23 06:12 chenfasheng

回退吧,6.1.2是没这个问题的

我的就是6.1.2,也是这个问题。 今天升级了6.2.0才出现,回退6.1.2就好了,不知道你这啥情况

GuoguoDad avatar Dec 27 '23 06:12 GuoguoDad

我的6.1.2 没问题, 升级到6.2.0就有这个问题。

chinghoi avatar Dec 27 '23 08:12 chinghoi

暂时用 6.1.2 空了我看下

zmtzawqlp avatar Dec 27 '23 08:12 zmtzawqlp

assert 在这个场景下非必要

zmtzawqlp avatar Dec 27 '23 09:12 zmtzawqlp

请更新到 6.2.1

zmtzawqlp avatar Dec 27 '23 09:12 zmtzawqlp