This commit is contained in:
@@ -17,6 +17,7 @@ class AddExperienceArgs {
|
|||||||
|
|
||||||
GoRouter createAppRouter() {
|
GoRouter createAppRouter() {
|
||||||
return GoRouter(
|
return GoRouter(
|
||||||
|
errorBuilder: (context, state) => const MapflowShell(),
|
||||||
routes: [
|
routes: [
|
||||||
GoRoute(
|
GoRoute(
|
||||||
path: '/',
|
path: '/',
|
||||||
@@ -25,7 +26,13 @@ GoRouter createAppRouter() {
|
|||||||
GoRoute(
|
GoRoute(
|
||||||
path: 'experience/new',
|
path: 'experience/new',
|
||||||
pageBuilder: (context, state) {
|
pageBuilder: (context, state) {
|
||||||
final args = state.extra as AddExperienceArgs;
|
final extra = state.extra;
|
||||||
|
final args = extra is AddExperienceArgs
|
||||||
|
? extra
|
||||||
|
: const AddExperienceArgs(
|
||||||
|
coordinate: null,
|
||||||
|
hasTelegramAuth: true,
|
||||||
|
);
|
||||||
return CustomTransitionPage<void>(
|
return CustomTransitionPage<void>(
|
||||||
fullscreenDialog: true,
|
fullscreenDialog: true,
|
||||||
key: state.pageKey,
|
key: state.pageKey,
|
||||||
|
|||||||
Reference in New Issue
Block a user