skip to Main Content

I want to be able to filter a field where I can do a batch.update on flutter Firestore

final batch = FirebaseFirestore.instance.batch(); var nycRef = FirebaseFirestore.instance.collection("FoodOrders").doc(); // I want to specify a field here like where() // e.g var nycRef = FirebaseFirestore.instance.collection("FoodOrders").where("MyId",isEqualTo: myId); batch.update(nycRef, {"Paid": true}); batch.commit(); But I get an error saying The argument type 'Query<Map<String, dynamic>>'…

VIEW QUESTION

willpopscope is not working flutter when clicked on device backbutton

This is a widget I am returning on build: getBackgroundWidget() { return WillPopScope( onWillPop: _onBackPressed, child: Scaffold( key: scaffoldKey, backgroundColor: Colors.white, drawer: AppNavigationDrawer(onSelectMenuItem), appBar: AppBar( elevation: 0.5, shadowColor: Colors.grey, backgroundColor: Colors.white, titleSpacing: 0, leading: IconButton( onPressed: () { scaffoldKey.currentState!.openDrawer(); },…

VIEW QUESTION
Back To Top
Search