This commit is contained in:
@@ -12,14 +12,10 @@ class MapflowRoutes {
|
||||
static const addExperience = '/experience/new';
|
||||
static const adminReviews = '/admin/reviews';
|
||||
|
||||
static String addExperienceLocation({
|
||||
required LatLng? coordinate,
|
||||
required bool hasTelegramAuth,
|
||||
}) {
|
||||
static String addExperienceLocation({required LatLng? coordinate}) {
|
||||
return Uri(
|
||||
path: addExperience,
|
||||
queryParameters: {
|
||||
'telegramAuth': hasTelegramAuth ? '1' : '0',
|
||||
if (coordinate != null) ...{
|
||||
'lat': coordinate.latitude.toString(),
|
||||
'lng': coordinate.longitude.toString(),
|
||||
@@ -46,7 +42,6 @@ GoRouter createAppRouter() {
|
||||
key: state.pageKey,
|
||||
child: AddExperienceFlow(
|
||||
coordinate: _coordinateFromQuery(queryParameters),
|
||||
hasTelegramAuth: queryParameters['telegramAuth'] != '0',
|
||||
),
|
||||
transitionsBuilder: (context, animation, _, child) {
|
||||
return SlideTransition(
|
||||
|
||||
Reference in New Issue
Block a user