File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import 'package:auth_repository/auth_repository.dart';
22import 'package:core/core.dart' hide AppStatus;
33import 'package:data_repository/data_repository.dart' ;
44import 'package:flutter/material.dart' ;
5+ import 'package:flutter_news_app_mobile_client_full_source_code/router/go_router_observer.dart' ;
56import 'package:flutter_bloc/flutter_bloc.dart' ;
67import 'package:flutter_news_app_mobile_client_full_source_code/account/view/account_page.dart' ;
78import 'package:flutter_news_app_mobile_client_full_source_code/account/view/manage_followed_items/countries/add_country_to_follow_page.dart' ;
@@ -93,9 +94,7 @@ GoRouter createRouter({
9394 initialLocation: '/' ,
9495 debugLogDiagnostics: true ,
9596 navigatorKey: navigatorKey,
96- observers: [
97- // Add any other necessary observers here. If none, this can be an empty list.
98- ],
97+ observers: [GoRouterObserver (logger: logger)],
9998 // --- Redirect Logic ---
10099 // This function is the single source of truth for route protection.
101100 // It's driven by the AppBloc's AppLifeCycleStatus.
You can’t perform that action at this time.
0 commit comments