summaryrefslogtreecommitdiff
path: root/player-android/lib/app_routes.dart
blob: be3ff7c2720b61949e94f0da69c0d24a4561c63c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/// Centralised route path constants for go_router.
///
/// Keeping these in a standalone file lets screen widgets reference route
/// paths without importing router.dart, which would create circular imports
/// (router.dart imports screen files; screens should not import the router).
abstract final class AppRoutes {
  static const login = '/login';
  static const home = '/home';
  static const mediaDetail = '/media/:id';
  static const share = '/share';

  /// Returns the concrete path for a media-detail page given a numeric [id].
  static String mediaDetailPath(int id) => '/media/$id';
}