【问题标题】:Is there is any way to scroll to a position in list view in Flutter有什么方法可以滚动到 Flutter 列表视图中的某个位置
【发布时间】:2021-03-19 23:05:18
【问题描述】:

在 Instagram 中,点击网格项目将导航到列表视图中的特定索引项目,类似的照片应用程序是否有可能在颤振中出现

【问题讨论】:

标签: flutter listview gridview flutter-layout flutter-animation


【解决方案1】:

为此,您可以使用scrollable_positioned_list

点击网格项并导航到其他列表页面后,只需将索引传递到那里,

itemScrollController.scrollTo( 
index: 150,
 duration: Duration(seconds: 2),
 curve: Curves.easeInOutCubic);

【讨论】:

    猜你喜欢
    • 2021-12-25
    • 1970-01-01
    • 1970-01-01
    • 2021-02-17
    • 1970-01-01
    • 2020-07-16
    • 1970-01-01
    • 2020-12-11
    • 1970-01-01
    相关资源
    最近更新 更多