Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

I want to display data in mulitpe rows when overflowed one row

Hello I’m new to flutter and I have problem with displaying data in multiple rows. I’m fetching users from API and displaying button for each user, users are displayed in row like this:enter image description here

This "Spremi" button is not in the row it is for sending data.
here is the code: Row( children: _dokument!.podijeljenoSa.clanovi.map((e) => OutlinedButton.icon( label: Text(e["naziv"]), icon: const Icon(Icons.check), onPressed: () async { removeMember(e.naziv);},)).toList()),

How can I display users in new row?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

If you do not want to scroll horizontally the you can try this

Wrap(  direction: Axis.horizontal,children: _dokument!.podijeljenoSa.clanovi.map((e) => OutlinedButton.icon( label: Text(e["naziv"]), icon: const Icon(Icons.check), onPressed: () async { removeMember(e.naziv);},)).toList()),
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading