简体   繁体   中英

How to create list of interest in FLUTTER app

what I'm trying to do is to have something like this by building an app in Flutter: 在此处输入图像描述

I Have a list of interest and I want to have this kind of card (autosized based on numbers of character) for each of those, I have no fixed number of columns and each row is filled by the right number of elements based on the number of character and I have all the rows needed in order to print all interest in List.

Which is the right widget that I have to use?

I tried with listview but I have only one element for row, I can use multiple columns but this means I have a fixed number of columns. I tried also with GridView, but again I have to fix the crossAxisCount (to fix number of columns).

I have no idea,

TY

You should use wrap for your need.

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