Skip to content

Commit

Permalink
Fix onboard redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
TomBursch committed Nov 23, 2024
1 parent d64b8ae commit b2c3b85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kitchenowl/lib/pages/onboarding_page.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:go_router/go_router.dart';
import 'package:kitchenowl/cubits/auth_cubit.dart';
import 'package:kitchenowl/kitchenowl.dart';
import 'package:kitchenowl/router.dart';
import 'package:kitchenowl/widgets/create_user_form_fields.dart';

class OnboardingPage extends StatefulWidget {
Expand Down Expand Up @@ -74,7 +74,7 @@ class _OnboardingPageState extends State<OnboardingPage> {
username: usernameController.text,
name: nameController.text,
password: passwordController.text,
correctCredentialsCallback: () => context.push("/tutorial"),
correctCredentialsCallback: () => router.push("/tutorial"),
);
}
}
Expand Down

0 comments on commit b2c3b85

Please sign in to comment.