gpt4 book ai didi

android - 如何在 Flutter 的 ListView 项目中使用 Showcase View?

转载 作者:行者123 更新时间:2023-12-05 00:15:35 25 4
gpt4 key购买 nike

如何在 Flutter 的 ListView 项目中使用 Showcase View?

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

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

像这样;

enter image description here

最佳答案

我解决了。

示例:

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,
)

关于android - 如何在 Flutter 的 ListView 项目中使用 Showcase View?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66076393/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com