Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

google authentication #22

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vaishnavi-2307
Copy link
Contributor

No description provided.

@vaishnavi-2307
Copy link
Contributor Author

vaishnavi-2307 commented Mar 4, 2022

google.auth.mp4

Output
image

import '../domain/authentication_firebase_provider.dart';
import '../domain/google_sign_in_provider.dart';

class AuthenticationRepository {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please create abstract repository?
Please take a reference from home feature.


class AuthenticationFailiure extends AuthenticationState {
final String message;
AuthenticationFailiure({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please move this constructor first?
https://dart-lang.github.io/linter/lints/sort_constructors_first.html

this.name,
});

AuthenticationDetail copyWith({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above.

@@ -34,7 +34,7 @@ dependencies:
after_layout: ^1.1.0
http: ^0.13.3
get_it: ^7.2.0

google_sign_in:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add the version number here.

yield AuthenticationLoading();
await _authenticationRepository.unAuthenticate();
} catch (error) {
print('Error occured while logging out. : ${error.toString()}');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please remove print statements and use logger?

@@ -36,10 +36,11 @@ android {
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "dev.hireflutter.starterKit"
minSdkVersion 16
minSdkVersion 19
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it necessary to increase the version of minSdkVersion?

@@ -156,116 +159,181 @@ class _LoginScreenState extends State<LoginScreen> {
}

return Scaffold(
body: Padding(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the build method is getting too long, I think we should break it down into smaller parts (widgets or methods as suitable depending on the case).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants