import 'package:go_router/go_router.dart'; import 'package:shuffle/core/routing/app_routes.dart'; import 'package:shuffle/features/catalog/presentation/catalog_query_params.dart'; import 'package:shuffle/features/catalog/presentation/search/catalog_search_screen.dart'; /// Routes of the catalog (Spec #3 ยง 5.5). `/catalog` is public. /// /// These are sub-routes of the start page (path `catalog` below `/`), so the /// URL stays `/catalog`, but a deep link builds the stack [home, catalog] and /// the system back button (Android) returns to the start page instead of /// closing the app. final List catalogRoutes = [ GoRoute( path: AppRoutes.catalogSegment, builder: (context, state) => CatalogSearchScreen( initialQuery: parseCatalogQuery(state.uri.queryParameters), ), ), ];