Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
l3limp committed Feb 4, 2024
1 parent fa98128 commit 72b860a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:flutter/material.dart';
import 'package:todo/screens/home.dart';
import 'package:todo/theme.dart';
import 'screens/temp.dart';
import 'screens/splash.dart';

void main() {
runApp(const MyApp());
Expand Down
2 changes: 1 addition & 1 deletion lib/screens/add.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:flutter/material.dart';
import 'package:todo/model/todo.dart';
import 'package:todo/screens/temp.dart';
import 'package:todo/screens/splash.dart';

import '../theme.dart';

Expand Down
4 changes: 1 addition & 3 deletions lib/screens/edit.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:flutter/material.dart';
import 'package:todo/model/todo.dart';
import 'package:todo/screens/temp.dart';
import 'package:todo/screens/splash.dart';

import '../theme.dart';

Expand All @@ -27,8 +27,6 @@ class _EditCardState extends State<EditCard> {
late String description;
late List chips;

// late CollectionReference books;

@override
void initState() {
super.initState();
Expand Down
4 changes: 2 additions & 2 deletions lib/screens/home.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import 'dart:math';


import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:flutter/material.dart';
import 'package:google_sign_in/google_sign_in.dart';
import 'package:todo/model/todo.dart';
import 'package:todo/screens/add.dart';
import 'package:todo/screens/edit.dart';
import 'package:todo/screens/temp.dart';
import 'package:todo/screens/splash.dart';

import '../theme.dart';

Expand Down
4 changes: 0 additions & 4 deletions lib/screens/temp.dart → lib/screens/splash.dart
Original file line number Diff line number Diff line change
Expand Up @@ -111,19 +111,16 @@ class _InitialisationState extends State<Initialisation>
if (auth.currentUser == null) {
return ElevatedButton(
onPressed: () async {
// Trigger the authentication flow
final GoogleSignInAccount?
googleUser =
await GoogleSignIn()
.signIn();

// Obtain the auth details from the request
final GoogleSignInAuthentication?
googleAuth =
await googleUser
?.authentication;

// Create a new credential
final credential =
GoogleAuthProvider
.credential(
Expand All @@ -132,7 +129,6 @@ class _InitialisationState extends State<Initialisation>
idToken: googleAuth?.idToken,
);

// Once signed in, return the UserCredential
await FirebaseAuth.instance
.signInWithCredential(
credential)
Expand Down

0 comments on commit 72b860a

Please sign in to comment.