Skip to content

Commit 7dc7ed9

Browse files
committed
refactor(ad): remove unused AdService from headline details page
- Remove AdService import and usage in headline_details_page.dart - Remove adService parameter from InArticleAdLoaderWidget
1 parent 4aef397 commit 7dc7ed9

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lib/headline-details/view/headline_details_page.dart

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import 'package:flutter/foundation.dart' show kIsWeb;
77
import 'package:flutter/material.dart';
88
import 'package:flutter_bloc/flutter_bloc.dart';
99
import 'package:flutter_news_app_mobile_client_full_source_code/account/bloc/account_bloc.dart';
10-
import 'package:flutter_news_app_mobile_client_full_source_code/ads/ad_service.dart';
1110
import 'package:flutter_news_app_mobile_client_full_source_code/ads/interstitial_ad_manager.dart';
1211
import 'package:flutter_news_app_mobile_client_full_source_code/ads/models/ad_theme_style.dart';
1312
import 'package:flutter_news_app_mobile_client_full_source_code/ads/widgets/in_article_ad_loader_widget.dart';
@@ -243,7 +242,6 @@ class _HeadlineDetailsPageState extends State<HeadlineDetailsPage> {
243242

244243
final appBlocState = context.watch<AppBloc>().state;
245244
final adConfig = appBlocState.remoteConfig?.adConfig;
246-
final adService = context.read<AdService>();
247245
final adThemeStyle = AdThemeStyle.fromTheme(Theme.of(context));
248246

249247
Future<void> onEntityChipTap(ContentType type, String id) async {
@@ -376,7 +374,6 @@ class _HeadlineDetailsPageState extends State<HeadlineDetailsPage> {
376374
padding: horizontalPadding,
377375
child: InArticleAdLoaderWidget(
378376
slotConfiguration: aboveContinueReadingSlot,
379-
adService: adService,
380377
adThemeStyle: adThemeStyle,
381378
adConfig: adConfig,
382379
),
@@ -444,7 +441,6 @@ class _HeadlineDetailsPageState extends State<HeadlineDetailsPage> {
444441
padding: horizontalPadding,
445442
child: InArticleAdLoaderWidget(
446443
slotConfiguration: belowContinueReadingSlot,
447-
adService: adService,
448444
adThemeStyle: adThemeStyle,
449445
adConfig: adConfig,
450446
),

0 commit comments

Comments
 (0)