- Fixed _addModifiersRecursively to track OrderLineItemID through recursion - Changed from hardcoded parentOrderLineItemId: 0 to actual parent IDs - Added logic to find root item's OrderLineItemID before starting recursion - Added logic to find each modifier's OrderLineItemID for its children - Fixed API_BASE_URL to AALISTS_API_BASE_URL for environment consistency - Added comprehensive debug logging for troubleshooting This fix ensures nested modifiers (e.g., Customize Spread > Extra) are properly saved to the database with correct parent-child relationships. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
29 lines
1.1 KiB
Dart
29 lines
1.1 KiB
Dart
import "package:flutter/material.dart";
|
|
|
|
import "../screens/beacon_scan_screen.dart";
|
|
import "../screens/cart_view_screen.dart";
|
|
import "../screens/login_screen.dart";
|
|
import "../screens/menu_browse_screen.dart";
|
|
import "../screens/restaurant_select_screen.dart";
|
|
import "../screens/service_point_select_screen.dart";
|
|
import "../screens/splash_screen.dart";
|
|
|
|
class AppRoutes {
|
|
static const String splash = "/";
|
|
static const String login = "/login";
|
|
static const String beaconScan = "/beacon-scan";
|
|
static const String restaurantSelect = "/restaurants";
|
|
static const String servicePointSelect = "/service-points";
|
|
static const String menuBrowse = "/menu";
|
|
static const String cartView = "/cart";
|
|
|
|
static Map<String, WidgetBuilder> get routes => {
|
|
splash: (_) => const SplashScreen(),
|
|
login: (_) => const LoginScreen(),
|
|
beaconScan: (_) => const BeaconScanScreen(),
|
|
restaurantSelect: (_) => const RestaurantSelectScreen(),
|
|
servicePointSelect: (_) => const ServicePointSelectScreen(),
|
|
menuBrowse: (_) => const MenuBrowseScreen(),
|
|
cartView: (_) => const CartViewScreen(),
|
|
};
|
|
}
|