相关疑难解决方法(0)

如何获得ScrollController的完整大小

我已经将ScrollController附加到[SliverAppBar,SliverList]的CustomScrollView

在默认情况下,我会使用reverse:true和animateTo(0.0)将滚动移动到添加的最后一个元素,但在这种情况下使用reverse也会反转SliverAppBar/SliverList顺序!

所以我想使用animateTo(sizeOfScrollableAfterElementAdded)但我找不到这个值.

谢谢 !

flutter

13
推荐指数
2
解决办法
4141
查看次数

Flutter Scrollcontroller maxScrollExtent 不会到达列表末尾

它在列表中的最后一个元素之前停止。有没有办法直到最后一个元素的结束容器

        controller
          ..animateTo(
            controller.position.maxScrollExtent,
            curve: Curves.easeIn,
            duration: const Duration(milliseconds: 300),
          );
      });```




Run Code Online (Sandbox Code Playgroud)

flutter flutter-layout

3
推荐指数
2
解决办法
1243
查看次数

标签 统计

flutter ×2

flutter-layout ×1