[英]On Item Click Listener for RecyclerView - How can I use the position of an item in a recycler view to smoothscroll to another listview?
[英]How can I use the Showcase View in a ListView Item in Flutter?
如何在 Flutter 的 ListView 项中使用展示视图?
我有一个 ListView,我想在此列表的任何项目中显示一个展示。 在 flutter 中有什么方法可以做到这一点?
我猜showcaseview package 不支持ListView项目。 (或者我不能)
像这样;
我解决了。
例子:
ListView.builder(
shrinkWrap: true,
itemBuilder: (cont, index) {
return index == 0 ? ShowCase(key: accountItemShowCase,
title: 'Başlık',
description:'Açıklama', child:bankAccountItem(idx)) : bankAccountItem(index);
},
itemCount: items.length,
)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.