【发布时间】:2021-02-06 11:32:06
【问题描述】:
如何在 Flutter 的 ListView 项目中使用 Showcase View?
我有一个 ListView,我想在此列表的任何项目中显示一个展示。有没有办法在颤振中做到这一点?
我猜showcaseview 包不支持ListView 项。 (或者我不能)
像这样;
【问题讨论】:
标签: android ios flutter showcaseview
如何在 Flutter 的 ListView 项目中使用 Showcase View?
我有一个 ListView,我想在此列表的任何项目中显示一个展示。有没有办法在颤振中做到这一点?
我猜showcaseview 包不支持ListView 项。 (或者我不能)
像这样;
【问题讨论】:
标签: android ios flutter showcaseview
我解决了。
例子:
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,
)
【讨论】: