Skip to content

Commit 2754046

Browse files
updated readme
1 parent 9ca519d commit 2754046

File tree

3 files changed

+1
-41
lines changed

3 files changed

+1
-41
lines changed

123.png

21.3 KB
Loading

README.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
11
# flutter caching test
22

3-
This app is used to test the following features:
4-
- Google Sing In at startup;
5-
- ```Simple Provider Test``` - basic testing of ChangeNotifier class;
6-
- ```Future Firestore``` - Fetching data from Firestore. Fetched data is cached into SQLite database;
7-
- ```Stream Firestore``` - Streaming data from Firestore. Just showing how you can add, update and delete Firestore data in real time;
8-
- ```Clean DB``` - removes all tables from SQLite database and creates them again;
9-
- ```Old Json Caching Example``` - fetching data from REST API and caching into SQLite;
3+
![picture](123.png)
104

11-
- Firebase notifications are also enabled. FCM token is shown in debug console at startup. Copy the token and go to "Cloud messaging" in Firebase console to test it out.
12-
13-
- Provider is listening on Firestore collection changes; Changes can be seen on the Home Page and on "Simple provider test" page;
145

lib/screens/firestore_collection.dart

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -124,34 +124,3 @@ editDocInFirebase(String value, String doc) async {
124124
.doc(doc)
125125
.update({'name': value});
126126
}
127-
128-
129-
// Widget list({required BuildContext context}) {
130-
// return Center(
131-
// child: FutureBuilder(
132-
// future: Provider.of<FirestoreChanges>(context).readSQLiteCache(),
133-
// builder: (context, snapshot) {
134-
// if (!snapshot.hasData) {
135-
// return const Center(child: CircularProgressIndicator());
136-
// } else {
137-
// // return Text(snapshot.data.toString());
138-
// return ListView.builder(
139-
// itemCount: (snapshot.data as dynamic).length,
140-
// itemBuilder: (context, index) {
141-
// final entry = (snapshot.data as dynamic)[index];
142-
// return ListTile(
143-
// title: Text(entry['name'].toString()),
144-
// subtitle: Text('Doc ID: ${entry['doc_id'].toString()}'),
145-
// leading: const Icon(Icons.data_usage),
146-
// trailing: IconButton(
147-
// onPressed: () {
148-
// removeDocFromFirebase(entry['doc_id']);
149-
// },
150-
// icon: const Icon(Icons.delete)),
151-
// );
152-
// });
153-
// }
154-
// },
155-
// ),
156-
// );
157-
// }

0 commit comments

Comments
 (0)