【问题标题】:How can I use the Showcase View in a ListView Item in Flutter?如何在 Flutter 的 ListView 项中使用 Showcase View?
【发布时间】:2021-02-06 11:32:06
【问题描述】:

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

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

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

像这样;

【问题讨论】:

标签: android ios flutter showcaseview


【解决方案1】:

我解决了。

例子:

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

【讨论】:

    猜你喜欢
    • 2014-04-04
    • 2019-02-27
    • 2013-11-12
    • 2020-07-23
    • 2023-02-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-09-19
    相关资源
    最近更新 更多