简体   繁体   中英

How can I use the Showcase View in a ListView Item in Flutter?

How can I use the Showcase View in a ListView Item in Flutter?

I have a ListView, I want to show a showcase in any item of this list. is there any way to do this in flutter?

I guess the showcaseview package doesn't support ListView items. (or I couldn't)

Like this;

在此处输入图像描述

I am Solved.

Example:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM