Skip to content

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.

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?

// 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?

}

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