Skip to content
Snippets Groups Projects
Commit 95e38171 authored by Harshil Patel's avatar Harshil Patel
Browse files

"Added SHA keys and firebase plugin"

parent d5180020
No related branches found
No related tags found
1 merge request!3Main product
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
"version": "0.2.0", "version": "0.2.0",
"configurations": [ "configurations": [
{ {
"name": "food_app", "name": "food_app",
"program": "lib/main.dart", "program": "lib/main.dart",
......
...@@ -13,6 +13,14 @@ ...@@ -13,6 +13,14 @@
} }
}, },
"oauth_client": [ "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_id": "458093853085-g6rmbug37s8665jmdpevskn3j0qq6qjj.apps.googleusercontent.com",
"client_type": 1, "client_type": 1,
......
...@@ -11,7 +11,7 @@ class ProductProvider with ChangeNotifier { ...@@ -11,7 +11,7 @@ class ProductProvider with ChangeNotifier {
fetchHerbsProductData() async { fetchHerbsProductData() async {
List<ProductModel> newList = []; List<ProductModel> newList = [];
QuerySnapshot value = QuerySnapshot value =
await FirebaseFirestore.instance.collection("HerbsProduct ").get(); await FirebaseFirestore.instance.collection("HerbsProduct").get();
value.docs.forEach( value.docs.forEach(
(element) { (element) {
productModel = ProductModel( productModel = ProductModel(
...@@ -34,7 +34,7 @@ class ProductProvider with ChangeNotifier { ...@@ -34,7 +34,7 @@ class ProductProvider with ChangeNotifier {
List<ProductModel> newList = []; List<ProductModel> newList = [];
QuerySnapshot value = await FirebaseFirestore.instance QuerySnapshot value = await FirebaseFirestore.instance
.collection("FreshFruitsProduct ") .collection("FreshFruitsProduct")
.get(); .get();
value.docs.forEach( value.docs.forEach(
...@@ -59,7 +59,7 @@ class ProductProvider with ChangeNotifier { ...@@ -59,7 +59,7 @@ class ProductProvider with ChangeNotifier {
List<ProductModel> newList = []; List<ProductModel> newList = [];
QuerySnapshot value = await FirebaseFirestore.instance QuerySnapshot value = await FirebaseFirestore.instance
.collection("RootVegetablesProduct ") .collection("RootVegetablesProduct")
.get(); .get();
value.docs.forEach( value.docs.forEach(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment