Fix add review route and photo previews
Build and deploy Flutter Web / build (push) Successful in 2m21s
Build and deploy Flutter Web / build (push) Successful in 2m21s
This commit is contained in:
@@ -22,41 +22,39 @@ GoRouter createAppRouter() {
|
||||
GoRoute(
|
||||
path: '/',
|
||||
builder: (context, state) => const MapflowShell(),
|
||||
routes: [
|
||||
GoRoute(
|
||||
path: 'experience/new',
|
||||
pageBuilder: (context, state) {
|
||||
final extra = state.extra;
|
||||
final args = extra is AddExperienceArgs
|
||||
? extra
|
||||
: const AddExperienceArgs(
|
||||
coordinate: null,
|
||||
hasTelegramAuth: true,
|
||||
);
|
||||
return CustomTransitionPage<void>(
|
||||
fullscreenDialog: true,
|
||||
key: state.pageKey,
|
||||
child: AddExperienceFlow(
|
||||
coordinate: args.coordinate,
|
||||
hasTelegramAuth: args.hasTelegramAuth,
|
||||
),
|
||||
transitionsBuilder: (context, animation, _, child) {
|
||||
return SlideTransition(
|
||||
position: Tween<Offset>(
|
||||
begin: const Offset(0, 1),
|
||||
end: Offset.zero,
|
||||
).animate(animation),
|
||||
child: child,
|
||||
);
|
||||
},
|
||||
),
|
||||
GoRoute(
|
||||
path: '/experience/new',
|
||||
pageBuilder: (context, state) {
|
||||
final extra = state.extra;
|
||||
final args = extra is AddExperienceArgs
|
||||
? extra
|
||||
: const AddExperienceArgs(
|
||||
coordinate: null,
|
||||
hasTelegramAuth: true,
|
||||
);
|
||||
return CustomTransitionPage<void>(
|
||||
fullscreenDialog: true,
|
||||
key: state.pageKey,
|
||||
child: AddExperienceFlow(
|
||||
coordinate: args.coordinate,
|
||||
hasTelegramAuth: args.hasTelegramAuth,
|
||||
),
|
||||
transitionsBuilder: (context, animation, _, child) {
|
||||
return SlideTransition(
|
||||
position: Tween<Offset>(
|
||||
begin: const Offset(0, 1),
|
||||
end: Offset.zero,
|
||||
).animate(animation),
|
||||
child: child,
|
||||
);
|
||||
},
|
||||
),
|
||||
GoRoute(
|
||||
path: 'admin/reviews',
|
||||
builder: (context, state) => const AdminVoiceExperiencesScreen(),
|
||||
),
|
||||
],
|
||||
);
|
||||
},
|
||||
),
|
||||
GoRoute(
|
||||
path: '/admin/reviews',
|
||||
builder: (context, state) => const AdminVoiceExperiencesScreen(),
|
||||
),
|
||||
],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user