我想根据工作变量的数量将输入中的数据输入到变量列表中
列表 pekerja = [];
表单(键:keyform,子:ListView.builder(itemCount:pekerja.length,itemBuilder:(context,i){返回填充(填充:const EdgeInsets.all(5.0),子:表(columnWidths:{1:FractionColumnWidth( 0.4)}, defaultVerticalAlignment: TableCellVerticalAlignment.middle, children: [ TableRow( children: [ Text(pekerja[i]['nama_kasir'],style: TextStyle(color:Colors.black54, fontSize: 16,fontWeight: FontWeight.bold) ),TextFormField(maxLength:2,keyboardType:TextInputType.number,装饰:InputDecoration(labelText:“Bagi Hasil%”,填充:true,fillColor:Colors.white70),onTap:(){id = pekerja [i] [' id_kasir']; }, onSaved: (e) => bagihasil = e! , onChanged: (value) { persen.add(value.toString()); }, onFieldSubmitted: (value) { id == pekerja[i] ['id_kasir']? persen.add(value.toString()) : null; },
)
]
)
],
),
);
}
),
),