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 |
Transcript
Section titled “Transcript”In the Flutter app at /home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App, thoroughly analyze:
- The routing/navigation system - how are routes defined and managed?
- All route definitions and named routes
- The navigation patterns used (Navigator 1.0, 2.0, go_router, etc.)
- How deep linking is handled (if at all)
- 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.dartglob — {"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.dartglob — {"pattern": "lib/**/*guard*", "path": "/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App"}
No files foundglob — {"pattern": "lib/**/*auth*", "path": "/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App"}
No files foundglob — {"pattern": "lib/**/*deep_link*", "path": "/home/sambasene/dev/Yonko Business/Bagisto Mobikul/eCommerce-Flutter-App"}
No files foundgrep — `{“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 foundread — {"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.dartscreens/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 Mobikul5: * @author Webkul <support@webkul.com>6: * @Copyright (c) Webkul Software Private Limited (https://webkul.com)7: * @license https://store.webkul.com/license.html8: * @link https://store.webkul.com/license.html9: */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 Mobikul5: * @author Webkul <support@webkul.com>6: * @Copyright (c) Webkul Software Private Limited (https://webkul.com)7: * @license https://store.webkul.com/license.html8: * @link https://store.webkul.com/license.html9: */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 Mobikul5: * @author Webkul <support@webkul.com>6: * @Copyright (c) Webkul Software Private Limited (https://webkul.com)7: * @license https://store.webkul.com/license.html8: * @link https://store.webkul.com/license.html9: */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 Mobikul5: * @author Webkul <support@webkul.com>6: * @Copyright (c) Webkul Software Private Limited (https://webkul.com)7: * @license https://store.webkul.com/license.html8: * @link https://store.webkul.com/license.html9: */10:11: // must_be_immutable, void_checks12: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 Mobikul5: * @author Webkul <support@webkul.com>6: * @Copyright (c) Webkul Software Private Limited (https://webkul.com)7: * @license https://store.webkul.com/license.html8: * @link https://store.webkul.com/license.html9: */10:11: import '../data_model/get_categories_drawer_data_model.dart';12:13: ///class used to pass data on subcategories screen14: 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 Mobikul5: * @author Webkul <support@webkul.com>6: * @Copyright (c) Webkul Software Private Limited (https://webkul.com)7: * @license https://store.webkul.com/license.html8: * @link https://store.webkul.com/license.html9: */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 foundglob — {"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.dartread — {"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.dartapp_global_data.dartapp_navigation.dartapplication_localization.dartassets_constants.dartbadge_helper.dartcheck_box_group.dartcheck_internet_connection.dartcircular_progress_indicator.dartdialog_helper.dartextension.darticomoon_code_map.dartindex.dartinput_field_validators.dartmobikul_theme.dartno_data_found_widget.dartprefetching_helper.dartpush_notifications_manager.dartradio_button_group.dartroute_constants.dartserver_configuration.dartshared_preference_helper.dartshared_preference_keys.dartstatus_color_helper.dartstring
…[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 Mobikul5: * @author Webkul <support@webkul.com>6: * @Copyright (c) Webkul Software Private Limited (https://webkul.com)7: * @license https://store.webkul.com/license.html8: * @link https://store.webkul.com/license.html9: */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 Mobikul5: * @author Webkul <support@webkul.com>6: * @Copyright (c) Webkul Software Private Limited (https://webkul.com)7: * @license https://store.webkul.com/license.html8: * @link https://store.webkul.com/license.html9: */10:11: /**12: * this file contains the keys of shared preferences13: */14:15: /// Configuration Shared Preference Keys16: 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 Mobikul5: * @author Webkul <support@webkul.com>6: * @Copyright (c) Webkul Software Private Limited (https://webkul.com)7: * @license https://store.webkul.com/license.html8: * @link https://store.webkul.com/license.html9: */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 Mobikul5: * @author Webkul <support@webkul.com>6: * @Copyright (c) Webkul Software Private Limited (https://webkul.com)7: * @license https://store.webkul.com/license.html8: * @link https://store.webkul.com/license.html9: */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 Mobikul5: * @author Webkul <support@webkul.com>6: * @Copyright (c) Webkul Software Private Limited (https://webkul.com)7: * @license https://store.webkul.com/license.html8: * @link https://store.webkul.com/license.html9: */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: @override17: 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 Mobikul5: * @author Webkul <support@webkul.com>6: * @Copyright (c) Webkul Software Private Limited (https://webkul.com)7: * @license https://store.webkul.com/license.html8: * @link https://store.webkul.com/license.html9: */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_immutable17: 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 Mobikul5: * @author Webkul <support@webkul.com>6: * @Copyright (c) Webkul Software Private Limited (https://webkul.com)7: * @license https://store.webkul.com/license.html8: * @link https://store.webkul.com/license.html9: */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 Mobikul5: * @author Webkul <support@webkul.com>6: * @Copyright (c) Webkul Software Private Limited (https://webkul.com)7: * @license https://store.webkul.com/license.html8: * @link https://store.webkul.com/license.html9: */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 Mobikul5: * @author Webkul <support@webkul.com>6: * @Copyright (c) Webkul Software Private Limited (https://webkul.com)7: * @license https://store.webkul.com/license.html8: * @link https://store.webkul.com/license.html9: */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.xmlglob — {"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.plistread — {"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.pleaseFillBillingAddress462: .localized(),463: context);464: } else if (shippingAddress == null) {465: ShowMessage.warningNotification(466: StringConstants467: .pleaseFillShippingAddress468: .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 Mobikul5: * @author Webkul <support@webkul.com>6: * @Copyright (c) Webkul Software Private Limited (https://webkul.com)7: * @license https://store.webkul.com/license.html8: * @link https://store.webkul.com/license.html9: */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 Mobikul5: * @author Webkul <support@webkul.com>6: * @Copyright (c) Webkul Software Private Limited (https://webkul.com)7: * @license https://store.webkul.com/license.html8: * @link https://store.webkul.com/license.html9: */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: @override10: State<Language> createState() => _LanguageState();11: }12:13: class _LanguageState extends State<Language> {14: String selectedCode = '';15: List<Locales>? languages;16:17: @override18: 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 Mobikul5: ~ @author Webkul <support@webkul.com>6: ~ @Copyright (c) Webkul Software Private Limited (https://webkul.com)7: ~ @license https://store.webkul.com/license.html8: ~ @link https://store.webkul.com/license.html9: -->10:11: <manifest xmlns:android="http://schemas.android.com/apk/res/android"12: xmlns:tools="http://schemas.android.com/tools"13: >14:15: <uses-feature16: 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 foundread — {"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 Mobikul5: * @author Webkul <support@webkul.com>6: * @Copyright (c) Webkul Software Private Limited (https://webkul.com)7: * @license https://store.webkul.com/license.html8: * @link https://store.webkul.com/license.html9: */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 Mobikul5: * @author Webkul <support@webkul.com>6: * @Copyright (c) Webkul Software Private Limited (https://webkul.com)7: * @license https://store.webkul.com/license.html8: * @link https://store.webkul.com/license.html9: */10:11: // Application Specific Constants12: import 'dart:ui';13:14: const int defaultSplashDelay = 3;15:16: const String baseDomain = "";17:18: ///base url for the application19: 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_demo2: description: A new Flutter project.3: # The following line prevents the package from being accidentally published to4: # 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.dev6: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.439: # 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 Mobikul5: * @author Webkul <support@webkul.com>6: * @Copyright (c) Webkul Software Private Limited (https://webkul.com)7: * @license https://store.webkul.com/license.html8: * @link https://store.webkul.com/license.html9: */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 Mobikul5: * @author Webkul <support@webkul.com>6: * @Copyright (c) Webkul Software Private Limited (https://webkul.com)7: * @license https://store.webkul.com/license.html8: * @link https://store.webkul.com/license.html9: */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.
Routing/Navigation Architecture Analysis
Section titled “Routing/Navigation Architecture Analysis”App: Bagisto (eCommerce Flutter App) — bagisto_app_demo
Section titled “App: Bagisto (eCommerce Flutter App) — bagisto_app_demo”1. High-Level Summary
Section titled “1. High-Level Summary”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.
2. Core Routing Files
Section titled “2. Core Routing Files”File: lib/utils/route_constants.dart
Section titled “File: lib/utils/route_constants.dart”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,forgotPasswordaccountInfo,addressList,orderDetailPage,reviewListdashboardScreen,productScreen,searchScreen,cartScreencmsScreen,wishlistScreen,addressListScreenaddAddressScreen,checkOutAddressList,orderPlacedScreencheckoutScreen,orderListScreen,addReviewScreen,compareScreendownloadableProductScreen,drawerSubCategoryScreeninvoiceDetails,shipmentDetails,refundDetailscurrencyScreen,languageScreen,contactUsScreencommonWebView,gdpr,gdprWebView
File: lib/utils/app_navigation.dart
Section titled “File: lib/utils/app_navigation.dart”The central route table. Contains generateRoute(RouteSettings settings) — the single onGenerateRoute handler. It:
- Intercepts routes containing
'paypal-sdk'and returnsnull(lets the PayPal SDK handle its own navigation). - Uses a
switch(settings.name)over all named-route constants. - Returns a
MaterialPageRoutefor 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
defaultfallback that shows aScaffoldwith'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 +HomeCategoriesPassProductData— urlKey, productId, title (used by theproductScreenroute)
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 runsRestartWidget(child: BagistoApp(...))._BagistoAppStatestoresString appRoot = splash;as theinitialRoute.- The
MaterialApp(BagistoApp.build) is configured with: - `initialRoute: a
…[truncated]
7 internal reasoning block(s) omitted — raw thinking is not exported (see archive index).