简体   繁体   中英

Widget into listview or datable in flutter

I need to do something like this:

在此处输入图像描述

if I push the red button a row will be deleted

if I push the green button a row will be added between last row with red button and the row with green button

Ingredient's row need 3 text inputs Direction's row need only one text input

of course at finish I need to read all data of all text inputs

what do you recommend to use

You can use dynamic form to get all data after the adding field and field add dynamically in form,

You can refer this video.

And also you can validate form refer .

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