loading_more_list icon indicating copy to clipboard operation
loading_more_list copied to clipboard

[Bug report] 当GridViewDemo中开启reverse和closeToTrailing时,如果loadmore中的数据源过少,会触发断言。

Open pengfei2015 opened this issue 2 years ago • 0 comments

Version

6.0.0

Platforms

Android, iOS

Device Model

模拟器

flutter info

• Flutter version 3.16.1 on channel stable 
    • Engine revision 22b600f240
    • Dart version 3.2.1

How to reproduce?

当GridViewDemo中开启reverse和closeToTrailing时,如果loadmore中的数据源过少,会触发断言。

Logs

SliverGeometry is not valid: The "maxPaintExtent" is less than the "paintExtent".

Example code (optional)

example里的GridViewDemo加上
`        reverse: true,
        extendedListDelegate: ExtendedListDelegate(closeToTrailing: true),`
TuChongRepository的loadData中
`      for (final TuChongItem item in feedList!) {
        if (item.hasImage && !contains(item) && hasMore) {
          add(item);
         // 提前退出
          break;
        }
      }`

Contact

No response

pengfei2015 avatar Dec 07 '23 06:12 pengfei2015