Changed constructor implementation of the firestore provider to avoid name conflicts. Firebase plugins no longer throw whe performing operations
This commit is contained in:
parent
6fd93a59a7
commit
f1226aea99
2 changed files with 7 additions and 13 deletions
|
|
@ -5,7 +5,7 @@ import './models/task_model.dart';
|
|||
import './models/user_model.dart';
|
||||
import './resources/firestore_provider.dart';
|
||||
|
||||
class App extends StatelessWidget {
|
||||
/* class App extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
return MaterialApp(
|
||||
title: 'Do more',
|
||||
|
|
@ -18,9 +18,9 @@ class App extends StatelessWidget {
|
|||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
} */
|
||||
|
||||
/* class App extends StatelessWidget {
|
||||
class App extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
final fire = FirestoreProvider();
|
||||
return MaterialApp(
|
||||
|
|
@ -64,7 +64,7 @@ class App extends StatelessWidget {
|
|||
fire.updateEvent(
|
||||
'vBOvtmTeC8iPg8L4Hixh',
|
||||
'-LZReccofbHpw9UfOTMk',
|
||||
name: 'kjhahslkdjhf',
|
||||
name: 'Custom Task',
|
||||
);
|
||||
},
|
||||
child: Text('Add task'),
|
||||
|
|
@ -86,4 +86,4 @@ class App extends StatelessWidget {
|
|||
),
|
||||
);
|
||||
}
|
||||
} */
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue