diff --git a/.vscode/launch.json b/.vscode/launch.json index 4b6248ae3cddbaf48f6b401efd32c243a2c2c937..cacb34659397413e3308665e0935cf4010ddb75f 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -5,6 +5,7 @@ "version": "0.2.0", "configurations": [ + { "name": "food_app", "program": "lib/main.dart", diff --git a/android/app/google-services.json b/android/app/google-services.json index af98e7b27a94d7afcabbb0360c8b5766e39e0b6b..0861108f6703a31f723c95a48b2db882c63b11e0 100644 --- a/android/app/google-services.json +++ b/android/app/google-services.json @@ -13,6 +13,14 @@ } }, "oauth_client": [ + { + "client_id": "458093853085-boin3qthi2f9vgpgl2rucdt2mlmskcfd.apps.googleusercontent.com", + "client_type": 1, + "android_info": { + "package_name": "com.example.food_app", + "certificate_hash": "9539a1d7b0cbab7e7b058810527babc4b9727c34" + } + }, { "client_id": "458093853085-g6rmbug37s8665jmdpevskn3j0qq6qjj.apps.googleusercontent.com", "client_type": 1, diff --git a/lib/providers/product_provider.dart b/lib/providers/product_provider.dart index dcc35f1f623c2e900798bbb1c439154556798148..56d36392ad8e2a2ded100719bec5b6e16055285d 100644 --- a/lib/providers/product_provider.dart +++ b/lib/providers/product_provider.dart @@ -11,7 +11,7 @@ class ProductProvider with ChangeNotifier { fetchHerbsProductData() async { List<ProductModel> newList = []; QuerySnapshot value = - await FirebaseFirestore.instance.collection("HerbsProduct ").get(); + await FirebaseFirestore.instance.collection("HerbsProduct").get(); value.docs.forEach( (element) { productModel = ProductModel( @@ -34,7 +34,7 @@ class ProductProvider with ChangeNotifier { List<ProductModel> newList = []; QuerySnapshot value = await FirebaseFirestore.instance - .collection("FreshFruitsProduct ") + .collection("FreshFruitsProduct") .get(); value.docs.forEach( @@ -59,7 +59,7 @@ class ProductProvider with ChangeNotifier { List<ProductModel> newList = []; QuerySnapshot value = await FirebaseFirestore.instance - .collection("RootVegetablesProduct ") + .collection("RootVegetablesProduct") .get(); value.docs.forEach(