如何在 Flutter 中的 ListView 项中使用 Showcase 视图?

Ufu*_*man 2 android ios showcaseview flutter

如何在 Flutter 中的 ListView 项中使用 Showcase 视图?

我有一个 ListView,我想在此列表的任何项目中显示展示。有什么办法可以在颤振中做到这一点吗?

我猜ShowcaseView包不支持ListView项目。(或者我不能)

像这样;

在此输入图像描述

Ufu*_*man 8

我解决了。

\n

例子 :

\n
ListView.builder(\n        shrinkWrap: true,\n        itemBuilder: (cont, index) {\n          return index == 0 ? ShowCase(key: accountItemShowCase,\n                                       title: 'Ba\xc5\x9fl\xc4\xb1k',\n                                       description:'A\xc3\xa7\xc4\xb1klama', child:bankAccountItem(idx)) : bankAccountItem(index);\n        },\n        itemCount: items.length,\n      )\n
Run Code Online (Sandbox Code Playgroud)\n