【发布时间】:2018-09-26 11:47:18
【问题描述】:
我正在尝试将RefreshIndicator 添加到CustomScrollView。有可能吗?这是代码示例:
CustomScrollView(
slivers: <Widget>[
SliverAppBar(
title: Text('POSTAPP'),
centerTitle: true,
floating: true,
pinned: false,
),
SliverList(
delegate: SliverChildBuilderDelegate(
_createPostItem,
childCount: postRepo.posts.length,
),
),
],
);
【问题讨论】:
-
您是否尝试将您的
CustomScrollView放在RefreshIndicator中? -
是的,但在这种情况下,刷新指示器将包裹整个内容,包括应用栏和列表视图,我想将它定位在 appBar 和列表视图之间
-
我遇到了同样的问题,你能找到解决这种情况的方法吗?我无法在当前设置中使用 NestedScrollView。
-
查看 Andrey Turkovsky 的回答 stackoverflow.com/a/52518878/8153664
-
面临同样的问题。我不想更新 SliverAppBar。