File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import 'package:kitchenowl/cubits/auth_cubit.dart';
8
8
import 'package:kitchenowl/cubits/server_info_cubit.dart' ;
9
9
import 'package:kitchenowl/helpers/url_launcher.dart' ;
10
10
import 'package:kitchenowl/kitchenowl.dart' ;
11
+ import 'package:kitchenowl/router.dart' ;
11
12
import 'package:kitchenowl/styles/color_mapper.dart' ;
12
13
import 'package:kitchenowl/widgets/create_user_form_fields.dart' ;
13
14
import 'package:responsive_builder/responsive_builder.dart' ;
@@ -186,13 +187,17 @@ class _SignupPageState extends State<SignupPage> {
186
187
name: nameController.text,
187
188
email: emailController.text,
188
189
password: passwordController.text,
189
- wrongCredentialsCallback: (msg) => showSnackbar (
190
- context: context,
191
- content: Text (
192
- _extractErrorMessage (context, msg),
193
- ),
194
- width: null ,
195
- ),
190
+ wrongCredentialsCallback: (msg) {
191
+ showSnackbar (
192
+ context: context,
193
+ content: Text (
194
+ _extractErrorMessage (context, msg),
195
+ ),
196
+ width: null ,
197
+ );
198
+ Future .delayed (
199
+ Duration (milliseconds: 1 ), () => router.go ("/register" ));
200
+ },
196
201
);
197
202
}
198
203
}
You can’t perform that action at this time.
0 commit comments