Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/firebase_ui_auth/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class MyApp extends StatelessWidget {
Widget build(BuildContext context) {
final providers = [EmailAuthProvider()];

void onSignedIn() {
void onSignedIn(BuildContext context) {
Navigator.pushReplacementNamed(context, '/profile');
}

Expand All @@ -57,10 +57,10 @@ class MyApp extends StatelessWidget {
actions: [
AuthStateChangeAction<UserCreated>((context, state) {
// Put any new user logic here
onSignedIn();
onSignedIn(context);
}),
AuthStateChangeAction<SignedIn>((context, state) {
onSignedIn();
onSignedIn(context);
}),
],
);
Expand Down