Skip to content

Commit 15c5f03

Browse files
committed
feat(ads): potential ad trigger on source item tap
- Import InterstitialAdManager in followed_sources_list_page.dart - Add InterstitialAdManager instance call on source item tap
1 parent 311bd36 commit 15c5f03

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/account/view/manage_followed_items/sources/followed_sources_list_page.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import 'package:core/core.dart';
22
import 'package:flutter/material.dart';
33
import 'package:flutter_bloc/flutter_bloc.dart';
44
import 'package:flutter_news_app_mobile_client_full_source_code/account/bloc/account_bloc.dart';
5+
import 'package:flutter_news_app_mobile_client_full_source_code/ads/interstitial_ad_manager.dart';
56
import 'package:flutter_news_app_mobile_client_full_source_code/l10n/l10n.dart';
67
import 'package:flutter_news_app_mobile_client_full_source_code/router/routes.dart';
78
import 'package:go_router/go_router.dart';
@@ -93,6 +94,9 @@ class FollowedSourcesListPage extends StatelessWidget {
9394
},
9495
),
9596
onTap: () {
97+
context
98+
.read<InterstitialAdManager>()
99+
.onPotentialAdTrigger(context: context);
96100
context.pushNamed(
97101
Routes.entityDetailsName,
98102
pathParameters: {

0 commit comments

Comments
 (0)