-
Notifications
You must be signed in to change notification settings - Fork 5
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
base: main
Are you sure you want to change the base?
Conversation
import '../domain/authentication_firebase_provider.dart'; | ||
import '../domain/google_sign_in_provider.dart'; | ||
|
||
class AuthenticationRepository { |
There was a problem hiding this comment.
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({ |
There was a problem hiding this comment.
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({ |
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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()}'); |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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).
No description provided.