Skip to content

Commit e2a0456

Browse files
authored
Added step to avoid compiler error
[skip-ci]
1 parent ca98157 commit e2a0456

File tree

1 file changed

+9
-1
lines changed
  • example/firebase_rtdb_flutter_repository

1 file changed

+9
-1
lines changed

example/firebase_rtdb_flutter_repository/README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,22 @@ To listen for real-time changes, it streams `TodoEntity` objects stored in the `
1717

1818
### Works with `firestore_redux` project
1919

20-
in `main.dart` replace
20+
In `main.dart` replace the current implementation of the abstract `ReactiveTodosRepository`
2121
```dart
2222
FirestoreReactiveTodosRepository(Firestore.instance)
2323
```
2424
with
2525
```dart
2626
FirebaseReactiveTodosRepository(FirebaseDatabase.instance)
2727
```
28+
Also in `main.dart` replace the `cloud_firestore` package with the `firebase_database` package. Replace
29+
```dart
30+
import 'package:cloud_firestore/cloud_firestore.dart';
31+
```
32+
with
33+
```dart
34+
import 'package:firebase_database/firebase_database.dart';
35+
```
2836
In `pubspec.yaml` replace
2937
```yaml
3038
firebase_flutter_repository:

0 commit comments

Comments
 (0)