Added necessary dependencies for google sing in, created the google_sign_in provider, modified Info.plist to work with google sign in
This commit is contained in:
parent
f1226aea99
commit
e4f74a2c02
4 changed files with 7 additions and 5 deletions
|
|
@ -13,7 +13,7 @@
|
||||||
<array>
|
<array>
|
||||||
<!-- TODO Replace this value: -->
|
<!-- TODO Replace this value: -->
|
||||||
<!-- Copied from GoogleServices-Info.plist key REVERSED_CLIENT_ID -->
|
<!-- Copied from GoogleServices-Info.plist key REVERSED_CLIENT_ID -->
|
||||||
<string>com.googleusercontent.apps.861823949799-vc35cprkp249096uujjn0vvnmcvjppkn</string>
|
<string>com.googleusercontent.apps.854370768062-bsmn2u8jngin4g6ior8crnir42t8p9u4</string>
|
||||||
</array>
|
</array>
|
||||||
</dict>
|
</dict>
|
||||||
</array>
|
</array>
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import './models/task_model.dart';
|
||||||
import './models/user_model.dart';
|
import './models/user_model.dart';
|
||||||
import './resources/firestore_provider.dart';
|
import './resources/firestore_provider.dart';
|
||||||
|
|
||||||
/* class App extends StatelessWidget {
|
class App extends StatelessWidget {
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return MaterialApp(
|
return MaterialApp(
|
||||||
title: 'Do more',
|
title: 'Do more',
|
||||||
|
|
@ -18,9 +18,9 @@ import './resources/firestore_provider.dart';
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
} */
|
}
|
||||||
|
|
||||||
class App extends StatelessWidget {
|
/* class App extends StatelessWidget {
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final fire = FirestoreProvider();
|
final fire = FirestoreProvider();
|
||||||
return MaterialApp(
|
return MaterialApp(
|
||||||
|
|
@ -86,4 +86,4 @@ class App extends StatelessWidget {
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
} */
|
||||||
|
|
|
||||||
1
lib/src/resources/google_login_provider.dart
Normal file
1
lib/src/resources/google_login_provider.dart
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
import 'package:firebase_auth/firebase_auth.dart';
|
||||||
|
|
@ -29,6 +29,7 @@ dependencies:
|
||||||
firebase_auth: ^0.8.1
|
firebase_auth: ^0.8.1
|
||||||
firebase_ml_vision: ^0.6.0
|
firebase_ml_vision: ^0.6.0
|
||||||
firebase_storage: ^2.0.1
|
firebase_storage: ^2.0.1
|
||||||
|
google_sign_in: ^4.0.1+1
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_test:
|
flutter_test:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue