Skip to content

Commit 782c4eb

Browse files
committed
fix(app): pass feedDecoratorService through initialization
Updates `AppInitializationPage` to accept and pass the `FeedDecoratorService` to the main `App` widget, resolving a compilation error where the service was undefined.
1 parent d5a89be commit 782c4eb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/app/view/app_initialization_page.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import 'package:flutter_news_app_mobile_client_full_source_code/ads/inline_ad_ca
99
import 'package:flutter_news_app_mobile_client_full_source_code/app/bloc/app_initialization_bloc.dart';
1010
import 'package:flutter_news_app_mobile_client_full_source_code/app/config/app_environment.dart';
1111
import 'package:flutter_news_app_mobile_client_full_source_code/app/models/app_life_cycle_status.dart';
12+
import 'package:flutter_news_app_mobile_client_full_source_code/feed_decorators/services/feed_decorator_service.dart';
1213
import 'package:flutter_news_app_mobile_client_full_source_code/app/services/app_initializer.dart';
1314
import 'package:flutter_news_app_mobile_client_full_source_code/app/view/app.dart';
1415
import 'package:flutter_news_app_mobile_client_full_source_code/app/view/app_hot_restart_wrapper.dart';
@@ -50,6 +51,7 @@ class AppInitializationPage extends StatelessWidget {
5051
required this.userContentPreferencesRepository,
5152
required this.environment,
5253
required this.adService,
54+
required this.feedDecoratorService,
5355
required this.feedCacheService,
5456
required this.inlineAdCacheService,
5557
required this.localAdRepository,
@@ -68,6 +70,7 @@ class AppInitializationPage extends StatelessWidget {
6870
final DataRepository<UserContentPreferences> userContentPreferencesRepository;
6971
final AppEnvironment environment;
7072
final AdService adService;
73+
final FeedDecoratorService feedDecoratorService;
7174
final DataRepository<LocalAd> localAdRepository;
7275
final FeedCacheService feedCacheService;
7376
final GlobalKey<NavigatorState> navigatorKey;
@@ -108,6 +111,7 @@ class AppInitializationPage extends StatelessWidget {
108111
userContentPreferencesRepository,
109112
environment: environment,
110113
adService: adService,
114+
feedDecoratorService: feedDecoratorService,
111115
feedCacheService: feedCacheService,
112116
inlineAdCacheService: inlineAdCacheService,
113117
localAdRepository: localAdRepository,

0 commit comments

Comments
 (0)