-
Notifications
You must be signed in to change notification settings - Fork 178
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
How to use it without the mock service #19
Comments
No you don't. class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Provider<AuthService>(
builder: (_) => FirebaseAuthService(),
dispose: (_, AuthService authService) => authService.dispose(),
child: MaterialApp(
theme: ThemeData(
primarySwatch: Colors.indigo,
),
home: LandingPage(),
),
);
}
} As a result, you could also remove the |
Thanks.. Thanks |
@bizz84 well I receive this error every time I try to signup while trying to implement your solution working only with
|
@MRANASSPRO That's curious, that doesn't happen to me. Can you post the code for the sign in page that generates the error? |
Pretty much the same code in the master branch, just got rid of the mock service, using only the
|
@MRANASSPRO sorry for the late reply. |
@bizz84 Hey Andrea, I am really sorry that was my mistake, I removed the SignInPageBuilder class, that contains a Provider of AuthService, now I fixed it and it worked perfectly :) |
Hello,
Thanks for the article.. I like the mock service but I don't want to use it now.. Do I still need the adapter class?
Thanks
The text was updated successfully, but these errors were encountered: