forked from eatvio/eatvio_app
go router full
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import 'package:go_router/go_router.dart';
|
||||
|
||||
import 'bloc/additional_information_bloc.dart';
|
||||
import 'models/additional_information_model.dart';
|
||||
import 'package:eatvio_app/core/app_export.dart';
|
||||
@@ -91,10 +93,7 @@ class AdditionalInformationScreen extends StatelessWidget {
|
||||
final box = await Hive.openBox('token');
|
||||
final token = res['token'];
|
||||
box.put('token', token);
|
||||
Navigator.pushNamed(
|
||||
context,
|
||||
AppRoutes.myProfile,
|
||||
);
|
||||
GoRouter.of(context).goNamed('myProfileScreen');
|
||||
} else {
|
||||
showErrorMessage(context, res['message']);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user