Skip to content

Analyze routing and navigation (@explore subagent)

Field Value
Source opencode CLI/web
Session ses_fa8944819ffeDCXf5ZXxPDfr8C
Started 2026-08-31 10:44
Messages 11
Parts 81 (text+patch+tool) · 7 reasoning · 43 tool calls
Model opencode:big-pickle
Directory /home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App

In the Flutter app at /home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App, thoroughly analyze:

  1. The routing/navigation system - how are routes defined and managed?
  2. All route definitions and named routes
  3. The navigation patterns used (Navigator 1.0, 2.0, go_router, etc.)
  4. How deep linking is handled (if at all)
  5. Auth guards / route protection

Search in lib/ for files related to routes, navigation, auth guards. Read the relevant files and provide complete details about the routing architecture.

I’ll conduct a thorough analysis of the routing/navigation system. Let me start with broad searches across multiple dimensions simultaneously.

glob — {"pattern": "lib/**/*route*", "path": "/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App"}

/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/utils/route_constants.dart
/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/data_model/app_route_arguments.dart
/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/screens/home_page/utils/route_argument_helper.dart

glob — {"pattern": "lib/**/*nav*", "path": "/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App"}

/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/utils/app_navigation.dart

glob — {"pattern": "lib/**/*guard*", "path": "/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App"}

No files found

glob — {"pattern": "lib/**/*auth*", "path": "/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App"}

No files found

glob — {"pattern": "lib/**/*deep_link*", "path": "/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App"}

No files found

grep — `{“pattern”: “MaterialPageRoute|CupertinoPageRoute|Navigator\.push|Navigator\.pushNamed|onGenerateRoute|routes:”, “include”: “*.dart”, “path”: “/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCom

…[truncated]`

Found 100 matches (more matches available)
/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/widgets/common_app_bar.dart:
Line 41: Navigator.pushNamed(context, searchScreen);
Line 51: Navigator.pushNamed(context, compareScreen);
Line 70: Navigator.pushNamed(context, cartScreen);
/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/screens/wishList/view/wishlist_screen.dart:
Line 107: Navigator.pushNamed(context, cartScreen);
/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/screens/wishList/view/widget/wishlist_Item_list.dart:
Line 50: Navigator.pushNamed(
Line 185: Navigator.pushNamed(
/home/sambase
…[truncated]

grep — {"pattern": "GoRouter|go_router|AutoRoute|auto_route|GetMaterialApp|GetPage", "include": "*.dart", "path": "/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib"}

No files found

read — {"filePath": "/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib"}

<path>/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib</path>
<type>directory</type>
<entries>
data_model/
main.dart
screens/
services/
utils/
widgets/
(6 entries)
</entries>

Now let me read all the core routing files and the main entry point:

read — {"filePath": "/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/utils/route_constants.dart"}

<path>/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/utils/route_constants.dart</path>
<type>file</type>
<content>
1: /*
2: * Webkul Software.
3: * @package Mobikul Application Code.
4: * @Category Mobikul
5: * @author Webkul <support@webkul.com>
6: * @Copyright (c) Webkul Software Private Limited (https://webkul.com)
7: * @license https://store.webkul.com/license.html
8: * @link https://store.webkul.com/license.html
9: */
10:
11: const String splash = 'splashScreen';
12: const String home = 'homeScreen';
13: const String categoryScreen = 'categoryScreen';
14: const String signUp = 'signUp';
15: const String signIn = 'signIn';
16: const String forgotPassword =
…[truncated]

read — {"filePath": "/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/utils/app_navigation.dart"}

<path>/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/utils/app_navigation.dart</path>
<type>file</type>
<content>
1: /*
2: * Webkul Software.
3: * @package Mobikul Application Code.
4: * @Category Mobikul
5: * @author Webkul <support@webkul.com>
6: * @Copyright (c) Webkul Software Private Limited (https://webkul.com)
7: * @license https://store.webkul.com/license.html
8: * @link https://store.webkul.com/license.html
9: */
10:
11: import 'package:bagisto_app_demo/data_model/app_route_arguments.dart';
12: import 'package:bagisto_app_demo/data_model/order_model/order_detail_model.dart';
13: import 'package:bagisto_app_demo/screens/account/bloc/account_info_bloc.da
…[truncated]

read — {"filePath": "/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/data_model/app_route_arguments.dart"}

<path>/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/data_model/app_route_arguments.dart</path>
<type>file</type>
<content>
1: /*
2: * Webkul Software.
3: * @package Mobikul Application Code.
4: * @Category Mobikul
5: * @author Webkul <support@webkul.com>
6: * @Copyright (c) Webkul Software Private Limited (https://webkul.com)
7: * @license https://store.webkul.com/license.html
8: * @link https://store.webkul.com/license.html
9: */
10:
11: import '../screens/address_list/data_model/address_model.dart';
12: import '../screens/cart_screen/bloc/cart_screen_bloc.dart';
13: import '../screens/cart_screen/cart_model/cart_data_model.dart';
14:
15: class CategoriesArg
…[truncated]

read — {"filePath": "/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/main.dart"}

<path>/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/main.dart</path>
<type>file</type>
<content>
1: /*
2: * Webkul Software.
3: * @package Mobikul Application Code.
4: * @Category Mobikul
5: * @author Webkul <support@webkul.com>
6: * @Copyright (c) Webkul Software Private Limited (https://webkul.com)
7: * @license https://store.webkul.com/license.html
8: * @link https://store.webkul.com/license.html
9: */
10:
11: // must_be_immutable, void_checks
12:
13: import 'dart:io';
14:
15: import 'package:bagisto_app_demo/screens/home_page/data_model/get_categories_drawer_data_model.dart';
16: import 'package:bagisto_app_demo/screens/product_screen/utils/index.dart';
…[truncated]

read — {"filePath": "/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/screens/home_page/utils/route_argument_helper.dart"}

<path>/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/screens/home_page/utils/route_argument_helper.dart</path>
<type>file</type>
<content>
1: /*
2: * Webkul Software.
3: * @package Mobikul Application Code.
4: * @Category Mobikul
5: * @author Webkul <support@webkul.com>
6: * @Copyright (c) Webkul Software Private Limited (https://webkul.com)
7: * @license https://store.webkul.com/license.html
8: * @link https://store.webkul.com/license.html
9: */
10:
11: import '../data_model/get_categories_drawer_data_model.dart';
12:
13: ///class used to pass data on subcategories screen
14: class DrawerSubCategories {
15: DrawerSubCategories({this.category, this.title});
16
…[truncated]

Now let me search for auth-related patterns, splash screen logic, storage preferences, and any deep linking or additional navigation mechanisms:

read — {"filePath": "/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/screens/splash_screen/view/splash_screen.dart"}

<path>/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/screens/splash_screen/view/splash_screen.dart</path>
<type>file</type>
<content>
1: /*
2: * Webkul Software.
3: * @package Mobikul Application Code.
4: * @Category Mobikul
5: * @author Webkul <support@webkul.com>
6: * @Copyright (c) Webkul Software Private Limited (https://webkul.com)
7: * @license https://store.webkul.com/license.html
8: * @link https://store.webkul.com/license.html
9: */
10:
11:
12:
13: import 'package:bagisto_app_demo/screens/splash_screen/utils/index.dart';
14:
15: import '../../../utils/prefetching_helper.dart';
16: class SplashScreen extends StatefulWidget {
17: const SplashScreen({K
…[truncated]

grep — `{“include”: “*.dart”, “path”: “/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib”, “pattern”: “Navigator\.push\(|Navigator\.pushNamed\(|Navigator\.pushReplacement|Navig

…[truncated]`

Found 100 matches (more matches available)
/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/widgets/common_app_bar.dart:
Line 41: Navigator.pushNamed(context, searchScreen);
Line 51: Navigator.pushNamed(context, compareScreen);
Line 70: Navigator.pushNamed(context, cartScreen);
/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/screens/account/widget/profile_image_view.dart:
Line 174: Navigator.pop(context);
Line 195: Navigator.pop(context);
/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/screens/account/view/account_screen.dart:
Line 110: Navigator.pop(context, true);
Line 120: Navigator.pop(co
…[truncated]

grep — {"include": "*.dart", "path": "/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib", "pattern": "token|isLoggedIn|isGuest|authenticated|checkAuth|guard"}

Found 77 matches
/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/utils/shared_preference_helper.dart:
Line 134: setCustomerLoggedIn(bool isLoggedIn) {
Line 135: configurationStorage.write(customerLoggedIn, isLoggedIn);
/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/utils/push_notifications_manager.dart:
Line 100: String token = await _firebaseMessaging.getToken() ?? "";
Line 101: GlobalData.fcmToken = token;
Line 102: return token;
/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/services/mutation_query.dart:
Line 862: tokenType
Line 878: token
Line 908: tokenType
Line 945: tokenType
L
…[truncated]

glob — {"path": "/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib", "pattern": "**/*storage*"}

No files found

glob — {"path": "/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib", "pattern": "**/*pref*"}

/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/utils/shared_preference_keys.dart
/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/utils/shared_preference_helper.dart
/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/utils/prefetching_helper.dart

read — {"filePath": "/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/utils"}

<path>/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/utils</path>
<type>directory</type>
<entries>
app_constants.dart
app_global_data.dart
app_navigation.dart
application_localization.dart
assets_constants.dart
badge_helper.dart
check_box_group.dart
check_internet_connection.dart
circular_progress_indicator.dart
dialog_helper.dart
extension.dart
icomoon_code_map.dart
index.dart
input_field_validators.dart
mobikul_theme.dart
no_data_found_widget.dart
prefetching_helper.dart
push_notifications_manager.dart
radio_button_group.dart
route_constants.dart
server_configuration.dart
shared_preference_helper.dart
shared_preference_keys.dart
status_color_helper.dart
string
…[truncated]

Let me now read the shared preference helper, the app constants, the push notifications manager, and some key screens:

read — {"filePath": "/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/utils/shared_preference_helper.dart"}

<path>/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/utils/shared_preference_helper.dart</path>
<type>file</type>
<content>
1: /*
2: * Webkul Software.
3: * @package Mobikul Application Code.
4: * @Category Mobikul
5: * @author Webkul <support@webkul.com>
6: * @Copyright (c) Webkul Software Private Limited (https://webkul.com)
7: * @license https://store.webkul.com/license.html
8: * @link https://store.webkul.com/license.html
9: */
10:
11: import 'package:bagisto_app_demo/utils/server_configuration.dart';
12: import 'package:bagisto_app_demo/utils/shared_preference_keys.dart';
13: import 'package:bagisto_app_demo/utils/string_constants.dart';
14: import 'packag
…[truncated]

read — {"filePath": "/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/utils/shared_preference_keys.dart"}

<path>/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/utils/shared_preference_keys.dart</path>
<type>file</type>
<content>
1: /*
2: * Webkul Software.
3: * @package Mobikul Application Code.
4: * @Category Mobikul
5: * @author Webkul <support@webkul.com>
6: * @Copyright (c) Webkul Software Private Limited (https://webkul.com)
7: * @license https://store.webkul.com/license.html
8: * @link https://store.webkul.com/license.html
9: */
10:
11: /**
12: * this file contains the keys of shared preferences
13: */
14:
15: /// Configuration Shared Preference Keys
16: const String configCurrencyCode = "configCurrencyCode";
17: const String configCurrencySymbol = "configCur
…[truncated]

read — {"filePath": "/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/utils/app_constants.dart"}

<path>/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/utils/app_constants.dart</path>
<type>file</type>
<content>
1: /*
2: * Webkul Software.
3: * @package Mobikul Application Code.
4: * @Category Mobikul
5: * @author Webkul <support@webkul.com>
6: * @Copyright (c) Webkul Software Private Limited (https://webkul.com)
7: * @license https://store.webkul.com/license.html
8: * @link https://store.webkul.com/license.html
9: */
10:
11: import 'package:flutter/material.dart';
12:
13: class AppSizes {
14: static const double spacingSmall = 4.0;
15: static const double spacingNormal = 8.0;
16: static const double spacingMedium = 12.0;
17: static const double spacingLarg
…[truncated]

read — {"filePath": "/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/utils/push_notifications_manager.dart"}

<path>/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/utils/push_notifications_manager.dart</path>
<type>file</type>
<content>
1: /*
2: * Webkul Software.
3: * @package Mobikul Application Code.
4: * @Category Mobikul
5: * @author Webkul <support@webkul.com>
6: * @Copyright (c) Webkul Software Private Limited (https://webkul.com)
7: * @license https://store.webkul.com/license.html
8: * @link https://store.webkul.com/license.html
9: */
10:
11: import 'dart:convert';
12: import 'dart:io';
13: import 'dart:math';
14:
15: import 'package:bagisto_app_demo/screens/cart_screen/utils/cart_index.dart';
16: import 'package:bagisto_app_demo/utils/server_configuration.dart
…[truncated]

read — {"filePath": "/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/screens/dashboard/view/dashboard.dart"}

<path>/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/screens/dashboard/view/dashboard.dart</path>
<type>file</type>
<content>
1: /*
2: * Webkul Software.
3: * @package Mobikul Application Code.
4: * @Category Mobikul
5: * @author Webkul <support@webkul.com>
6: * @Copyright (c) Webkul Software Private Limited (https://webkul.com)
7: * @license https://store.webkul.com/license.html
8: * @link https://store.webkul.com/license.html
9: */
10:
11: import 'package:bagisto_app_demo/screens/dashboard/utils/index.dart';
12:
13: class DashboardScreen extends StatefulWidget {
14: const DashboardScreen({Key? key}) : super(key: key);
15:
16: @override
17: State<DashboardSc
…[truncated]

read — {"filePath": "/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/screens/drawer/widget/log_out_button.dart"}

<path>/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/screens/drawer/widget/log_out_button.dart</path>
<type>file</type>
<content>
1: /*
2: * Webkul Software.
3: * @package Mobikul Application Code.
4: * @Category Mobikul
5: * @author Webkul <support@webkul.com>
6: * @Copyright (c) Webkul Software Private Limited (https://webkul.com)
7: * @license https://store.webkul.com/license.html
8: * @link https://store.webkul.com/license.html
9: */
10:
11:
12: import 'package:bagisto_app_demo/data_model/account_models/account_info_details.dart';
13: import 'package:bagisto_app_demo/screens/drawer/utils/index.dart';
14:
15:
16: // ignore: must_be_immutable
17: class Log
…[truncated]

Let me check the drawer list view (which conditionally shows menu items based on auth state) and the home page:

read — {"filePath": "/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/screens/drawer/drawer_list_view.dart"}

<path>/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/screens/drawer/drawer_list_view.dart</path>
<type>file</type>
<content>
1: /*
2: * Webkul Software.
3: * @package Mobikul Application Code.
4: * @Category Mobikul
5: * @author Webkul <support@webkul.com>
6: * @Copyright (c) Webkul Software Private Limited (https://webkul.com)
7: * @license https://store.webkul.com/license.html
8: * @link https://store.webkul.com/license.html
9: */
10:
11: import 'package:bagisto_app_demo/data_model/account_models/account_info_details.dart';
12: import 'package:bagisto_app_demo/screens/drawer/utils/index.dart';
13: import '../../utils/server_configuration.dart';
14: import '..
…[truncated]

read — {"filePath": "/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/screens/home_page/home_page.dart"}

<path>/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/screens/home_page/home_page.dart</path>
<type>file</type>
<content>
1: /*
2: * Webkul Software.
3: * @package Mobikul Application Code.
4: * @Category Mobikul
5: * @author Webkul <support@webkul.com>
6: * @Copyright (c) Webkul Software Private Limited (https://webkul.com)
7: * @license https://store.webkul.com/license.html
8: * @link https://store.webkul.com/license.html
9: */
10:
11: import 'dart:async';
12: import 'dart:io';
13: import 'package:bagisto_app_demo/screens/home_page/utils/index.dart';
14: import 'data_model/theme_customization.dart';
15:
16: class HomeScreen extends StatefulWidget {
17: const
…[truncated]

read — {"filePath": "/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/screens/sign_in/view/sign_in_screen.dart"}

<path>/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/screens/sign_in/view/sign_in_screen.dart</path>
<type>file</type>
<content>
1: /*
2: * Webkul Software.
3: * @package Mobikul Application Code.
4: * @Category Mobikul
5: * @author Webkul <support@webkul.com>
6: * @Copyright (c) Webkul Software Private Limited (https://webkul.com)
7: * @license https://store.webkul.com/license.html
8: * @link https://store.webkul.com/license.html
9: */
10:
11:
12: import 'package:bagisto_app_demo/screens/sign_in/utils/index.dart';
13:
14: import '../../../utils/server_configuration.dart';
15:
16: class SignInScreen extends StatefulWidget {
17: const SignInScreen({Key? key})
…[truncated]

Let me check for deep linking setup in the native configurations and the checkout screen for any auth-related navigation:

glob — {"path": "/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App", "pattern": "android/**/AndroidManifest.xml"}

/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/android/app/src/profile/AndroidManifest.xml
/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/android/app/src/debug/AndroidManifest.xml
/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/android/app/src/main/AndroidManifest.xml

glob — {"path": "/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App", "pattern": "ios/**/Info.plist"}

/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/ios/Runner/Info.plist

read — {"filePath": "/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/screens/checkout/view/checkout_screen.dart", "offset": 460, "limit": 130}

<path>/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/screens/checkout/view/checkout_screen.dart</path>
<type>file</type>
<content>
460: ShowMessage.warningNotification(
461: StringConstants.pleaseFillBillingAddress
462: .localized(),
463: context);
464: } else if (shippingAddress == null) {
465: ShowMessage.warningNotification(
466: StringConstants
467: .pleaseFillShippingAddress
468: .localized(),
469: context);
470: }
471: } else {
472: setState(() {
473: currentIndex = currentIndex + 1;
474: });
475: }
476: }
477: if (currentIndex == 5) {
478: Navigator.pushReplacementNamed(
479: context, orderPlacedScreen,
480: arguments: cartModel);
481: }
482: },
483: chil
…[truncated]

read — {"filePath": "/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/utils/app_global_data.dart"}

<path>/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/utils/app_global_data.dart</path>
<type>file</type>
<content>
1: /*
2: * Webkul Software.
3: * @package Mobikul Application Code.
4: * @Category Mobikul
5: * @author Webkul <support@webkul.com>
6: * @Copyright (c) Webkul Software Private Limited (https://webkul.com)
7: * @license https://store.webkul.com/license.html
8: * @link https://store.webkul.com/license.html
9: */
10:
11: import 'dart:async';
12:
13: import '../data_model/core_configs_model.dart';
14: import '../data_model/currency_language_model.dart';
15: import '../screens/cms_screen/data_model/cms_model.dart';
16: import '../screens/home_page/data
…[truncated]

read — {"filePath": "/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/screens/account/view/account_screen.dart"}

<path>/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/screens/account/view/account_screen.dart</path>
<type>file</type>
<content>
1: /*
2: * Webkul Software.
3: * @package Mobikul Application Code.
4: * @Category Mobikul
5: * @author Webkul <support@webkul.com>
6: * @Copyright (c) Webkul Software Private Limited (https://webkul.com)
7: * @license https://store.webkul.com/license.html
8: * @link https://store.webkul.com/license.html
9: */
10:
11: import 'package:bagisto_app_demo/data_model/account_models/account_update_model.dart';
12: import 'package:bagisto_app_demo/screens/account/utils/index.dart';
13:
14: class AccountScreen extends StatefulWidget {
15: con
…[truncated]

read — {"filePath": "/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/screens/language/language_view.dart"}

<path>/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/screens/language/language_view.dart</path>
<type>file</type>
<content>
1: import 'package:bagisto_app_demo/screens/account/utils/index.dart';
2: import 'package:hive/hive.dart';
3: import '../../data_model/currency_language_model.dart';
4: import '../../main.dart';
5:
6: class Language extends StatefulWidget {
7: const Language({Key? key}) : super(key: key);
8:
9: @override
10: State<Language> createState() => _LanguageState();
11: }
12:
13: class _LanguageState extends State<Language> {
14: String selectedCode = '';
15: List<Locales>? languages;
16:
17: @override
18: void initState() {
19: languages = Glo
…[truncated]

Let me check the Android manifest for deep linking, pubspec for routing packages, and the currency view for its restart pattern:

read — {"filePath": "/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/android/app/src/main/AndroidManifest.xml"}

<path>/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/android/app/src/main/AndroidManifest.xml</path>
<type>file</type>
<content>
1: <!--
2: ~ Webkul Software.
3: ~ @package Mobikul Application Code.
4: ~ @Category Mobikul
5: ~ @author Webkul <support@webkul.com>
6: ~ @Copyright (c) Webkul Software Private Limited (https://webkul.com)
7: ~ @license https://store.webkul.com/license.html
8: ~ @link https://store.webkul.com/license.html
9: -->
10:
11: <manifest xmlns:android="http://schemas.android.com/apk/res/android"
12: xmlns:tools="http://schemas.android.com/tools"
13: >
14:
15: <uses-feature
16: android:name="android.hardware.camera"
17: android:required="false"
…[truncated]

read — {"filePath": "/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/ios/Runner/Info.plist"}

<path>/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/ios/Runner/Info.plist</path>
<type>file</type>
<content>
1: <?xml version="1.0" encoding="UTF-8"?>
2: <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3: <plist version="1.0">
4: <dict>
5: <key>CADisableMinimumFrameDurationOnPhone</key>
6: <true/>
7: <key>CFBundleDevelopmentRegion</key>
8: <string>$(DEVELOPMENT_LANGUAGE)</string>
9: <key>CFBundleDisplayName</key>
10: <string>Bagisto Laravel App</string>
11: <key>CFBundleExecutable</key>
12: <string>$(EXECUTABLE_NAME)</string>
13: <key>CFBundleIdentifier</key>
14: <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
15
…[truncated]

grep — {"include": "pubspec.yaml", "path": "/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App", "pattern": "route|router|navigation|go_router|auto_route|get_x|get\\.route"}

No files found

read — {"filePath": "/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/screens/currency/curency_view.dart"}

<path>/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/screens/currency/curency_view.dart</path>
<type>file</type>
<content>
1: /*
2: * Webkul Software.
3: * @package Mobikul Application Code.
4: * @Category Mobikul
5: * @author Webkul <support@webkul.com>
6: * @Copyright (c) Webkul Software Private Limited (https://webkul.com)
7: * @license https://store.webkul.com/license.html
8: * @link https://store.webkul.com/license.html
9: */
10:
11:
12: import 'package:bagisto_app_demo/screens/account/utils/index.dart';
13: import 'package:hive/hive.dart';
14: import '../../data_model/currency_language_model.dart';
15: import '../../main.dart';
16:
17: class CurrencyScr
…[truncated]

read — {"filePath": "/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/utils/server_configuration.dart"}

<path>/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/utils/server_configuration.dart</path>
<type>file</type>
<content>
1: /*
2: * Webkul Software.
3: * @package Mobikul Application Code.
4: * @Category Mobikul
5: * @author Webkul <support@webkul.com>
6: * @Copyright (c) Webkul Software Private Limited (https://webkul.com)
7: * @license https://store.webkul.com/license.html
8: * @link https://store.webkul.com/license.html
9: */
10:
11: // Application Specific Constants
12: import 'dart:ui';
13:
14: const int defaultSplashDelay = 3;
15:
16: const String baseDomain = "";
17:
18: ///base url for the application
19: const String baseUrl = "$baseDomain/graphql";
…[truncated]

Let me check the pubspec.yaml for the routing/dependency packages and check the common_app_bar and guest_checkout for auth-gating patterns:

read — {"filePath": "/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/pubspec.yaml"}

<path>/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/pubspec.yaml</path>
<type>file</type>
<content>
1: name: bagisto_app_demo
2: description: A new Flutter project.
3: # The following line prevents the package from being accidentally published to
4: # pub.dev using `flutter pub publish`. This is preferred for private packages.
5: publish_to: 'none' # Remove this line if you wish to publish to pub.dev
6:
7: # The following defines the version and build number for your application.
8: # A version number is three numbers separated by dots, like 1.2.43
9: # followed by an optional build number separated by a +.
10: # Both the version and the builder number may be over
…[truncated]

read — {"filePath": "/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/widgets/common_app_bar.dart"}

<path>/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/widgets/common_app_bar.dart</path>
<type>file</type>
<content>
1: /*
2: * Webkul Software.
3: * @package Mobikul Application Code.
4: * @Category Mobikul
5: * @author Webkul <support@webkul.com>
6: * @Copyright (c) Webkul Software Private Limited (https://webkul.com)
7: * @license https://store.webkul.com/license.html
8: * @link https://store.webkul.com/license.html
9: */
10:
11: import 'package:bagisto_app_demo/utils/route_constants.dart';
12: import 'package:flutter/material.dart';
13: import '../utils/app_constants.dart';
14: import '../utils/app_global_data.dart';
15: import '../utils/badge_helper.dart';
…[truncated]

read — {"filePath": "/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/screens/cart_screen/widget/guest_checkout_view.dart"}

<path>/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/screens/cart_screen/widget/guest_checkout_view.dart</path>
<type>file</type>
<content>
1: /*
2: * Webkul Software.
3: * @package Mobikul Application Code.
4: * @Category Mobikul
5: * @author Webkul <support@webkul.com>
6: * @Copyright (c) Webkul Software Private Limited (https://webkul.com)
7: * @license https://store.webkul.com/license.html
8: * @link https://store.webkul.com/license.html
9: */
10:
11: import '../utils/cart_index.dart';
12:
13: class GuestCheckoutView extends StatelessWidget {
14: final CartModel cartDetailsModel;
15: final CartScreenBloc? cartScreenBloc;
16:
17: const GuestCheckoutView(
1
…[truncated]

I now have a comprehensive understanding of the routing architecture. Let me verify there’s no handling of deep link URI data anywhere in the code (the manifest declares intent filters but I should check if the app actually processes them). Let me also confirm there are no other route-management mechanisms:

grep — `{“include”: “*.dart”, “path”: “/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib”, “pattern”: “onGenerateInitialRoutes|onUnknownRoute|initialRoute|Navigator\(|deep|deeplink

…[truncated]`

Found 26 matches
/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/widgets/gdpr_webview.dart:
Line 42: final url = Uri.parse(widget.redirectUrl ?? '');
Line 48: await cookieManager.deleteCookies(url: WebUri(url.toString()));
Line 53: url: WebUri(url.toString()),
Line 68: url: WebUri(url.toString()),
Line 82: url: WebUri(url.toString()),
Line 109: url: WebUri(Uri.parse(widget.redirectUrl ?? '').toString()),
/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App/lib/main.dart:
Line 201: initialRoute: appRoot,
Line 230: HttpClient createHttpClient(SecurityContext? context) {
/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommer
…[truncated]

I now have a complete picture. Deep linking intent filters exist in native manifests, but there is no code processing the incoming URI — no uni_links, app_links, getInitialLink, getLinksStream, or handling of onGenerateInitialRoutes/onUnknownRoute. Let me verify the iOS deep linking config doesn’t map to any Flutter code, which I’ve already confirmed from the grep — there is no deep link processing logic anywhere in lib/.

Let me compile my complete analysis.


App: Bagisto (eCommerce Flutter App) — bagisto_app_demo

Section titled “App: Bagisto (eCommerce Flutter App) — bagisto_app_demo”

The app uses Flutter Navigator 1.0 — the classic imperative Navigator.pushNamed() / Navigator.pushReplacementNamed() API on a single root Navigator. There is no go_router, auto_route, GetX, or any declarative routing package in pubspec.yaml. Route resolution is centralized through a single onGenerateRoute callback (generateRoute) in main.dart that maps named-route strings to widget builders. There are no dedicated route-guard classes; auth protection is done inline via runtime isLoggedIn checks at the point of navigation.


Defines all named route string constants (45 routes). These plain string constants are used as the keys passed to Navigator.pushNamed(). The full list:

  • splash = 'splashScreen' (initial route)
  • home = 'homeScreen'
  • categoryScreen, signUp, signIn, forgotPassword
  • accountInfo, addressList, orderDetailPage, reviewList
  • dashboardScreen, productScreen, searchScreen, cartScreen
  • cmsScreen, wishlistScreen, addressListScreen
  • addAddressScreen, checkOutAddressList, orderPlacedScreen
  • checkoutScreen, orderListScreen, addReviewScreen, compareScreen
  • downloadableProductScreen, drawerSubCategoryScreen
  • invoiceDetails, shipmentDetails, refundDetails
  • currencyScreen, languageScreen, contactUsScreen
  • commonWebView, gdpr, gdprWebView

The central route table. Contains generateRoute(RouteSettings settings) — the single onGenerateRoute handler. It:

  • Intercepts routes containing 'paypal-sdk' and returns null (lets the PayPal SDK handle its own navigation).
  • Uses a switch(settings.name) over all named-route constants.
  • Returns a MaterialPageRoute for each case.
  • Critical pattern: For routes that need state management, it wraps the screen widget in a BlocProvider (e.g. HomePageBloc, CategoryBloc, ProductScreenBLoc, SignInBloc, etc.) directly inside the route builder.
  • Reads settings.arguments (cast to typed argument classes) to pass data into screens.
  • Provides a default fallback that shows a Scaffold with 'No route defined for ${settings.name}'.

File: lib/data_model/app_route_arguments.dart

Section titled “File: lib/data_model/app_route_arguments.dart”

Defines the typed argument classes used with route navigation:

  • CategoriesArguments — title, image, categorySlug, id, metaDescription, parentId, filters (for category/subcategory screens)
  • CmsDataContent — title, id, index (for CMS pages)
  • AddressNavigationData — isEdit, addressModel, isCheckout (for add/edit address)
  • CartNavigationData — total, cartDetailsModel, cartScreenBloc, isDownloadable (for checkout)
  • AddReviewDetail — imageUrl, productId, productName

File: lib/screens/home_page/utils/route_argument_helper.dart

Section titled “File: lib/screens/home_page/utils/route_argument_helper.dart”

Contains two more argument carrier classes:

  • DrawerSubCategories — title + HomeCategories
  • PassProductData — urlKey, productId, title (used by the productScreen route)

3. Main Entry & App Wiring — lib/main.dart

Section titled “3. Main Entry & App Wiring — lib/main.dart”
  • main() initializes GetStorage, Firebase, Hive (registers adapters), then runs RestartWidget(child: BagistoApp(...)).
  • _BagistoAppState stores String appRoot = splash; as the initialRoute.
  • The MaterialApp (BagistoApp.build) is configured with:
  • `initialRoute: a

…[truncated]

7 internal reasoning block(s) omitted — raw thinking is not exported (see archive index).