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

"Changed android menifest and solved permission error for firebase"

parent 04c89033
No related branches found
No related tags found
1 merge request!3Main product
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.food_app">
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
android:label="food_app"
android:name="${applicationName}"
......
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/cupertino.dart';
import 'package:food_app/models/product_model.dart';
class ProductProvider with ChangeNotifier {
......@@ -9,7 +10,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(
......
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