skip to Main Content

Can I Use "FutureBuilder()" under Void Method in Flutter

This is My Code. Future<void> SendOrderDetails() async{ Row( children: [ FutureBuilder( future: topcart.getData(), builder: (context, AsyncSnapshot<List<Cart>> snapshot) { for(int i = 0; i<itemcount; i++) { if(itemcount>listModel2.data!.length) { listModel2.data?.add(Model2( ORDER_INFO_ID: 1, PRODUCT_ED_ID: 2, QTY: quantitycalcule.toString(), UNIT_PRICE:'00',// snapshot.data![i].Book_initional_price!.toString(), CHGED_BY:1, CHGED_DATE: DateTime.now().toString(), STATUS:…

VIEW QUESTION
Back To Top
Search