Skip to content

Commit bcf64be

Browse files
committed
feat(router): update router to include AdService
- Add import statement for AdService - Update createRouter function to require AdService as a parameter
1 parent 2c45baf commit bcf64be

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/router/router.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import 'package:flutter_news_app_mobile_client_full_source_code/account/view/man
1111
import 'package:flutter_news_app_mobile_client_full_source_code/account/view/manage_followed_items/topics/add_topic_to_follow_page.dart';
1212
import 'package:flutter_news_app_mobile_client_full_source_code/account/view/manage_followed_items/topics/followed_topics_list_page.dart';
1313
import 'package:flutter_news_app_mobile_client_full_source_code/account/view/saved_headlines_page.dart';
14+
import 'package:flutter_news_app_mobile_client_full_source_code/ads/ad_service.dart';
1415
import 'package:flutter_news_app_mobile_client_full_source_code/app/bloc/app_bloc.dart';
1516
import 'package:flutter_news_app_mobile_client_full_source_code/app/config/config.dart'
1617
as local_config;
@@ -64,6 +65,7 @@ GoRouter createRouter({
6465
required DataRepository<RemoteConfig> remoteConfigRepository,
6566
required DataRepository<User> userRepository,
6667
required local_config.AppEnvironment environment,
68+
required AdService adService,
6769
}) {
6870
// Instantiate AccountBloc once to be shared
6971
final accountBloc = AccountBloc(

0 commit comments

Comments
 (0)