Skip to content

Commit f6f2e14

Browse files
committed
fix(router): update EntityDetailsBloc instantiation
Corrects the instantiation of `EntityDetailsBloc` in `router.dart` by: - Removing the `feedDecoratorService` argument, as it is no longer a dependency of `EntityDetailsBloc`. - Adding the required `adService` argument, ensuring proper dependency injection. This resolves the `missing_required_argument` and `undefined_named_parameter` compilation errors for `EntityDetailsBloc`.
1 parent ef0f884 commit f6f2e14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/router/router.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ GoRouter createRouter({
427427
countryRepository: context
428428
.read<DataRepository<Country>>(),
429429
appBloc: context.read<AppBloc>(),
430-
feedDecoratorService: FeedDecoratorService(),
430+
adService: context.read<AdService>(),
431431
inlineAdCacheService: context
432432
.read<InlineAdCacheService>(),
433433
)..add(

0 commit comments

Comments
 (0)