Skip to content

Commit 311bd36

Browse files
committed
feat(ads): add interstitial ad trigger when selecting a country
- Import InterstitialAdManager in followed_countries_list_page.dart - Add onPotentialAdTrigger call in the onTap event of country list items
1 parent 591bb94 commit 311bd36

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/account/view/manage_followed_items/countries/followed_countries_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';
@@ -96,6 +97,9 @@ class FollowedCountriesListPage extends StatelessWidget {
9697
},
9798
),
9899
onTap: () {
100+
context
101+
.read<InterstitialAdManager>()
102+
.onPotentialAdTrigger(context: context);
99103
context.pushNamed(
100104
Routes.entityDetailsName,
101105
pathParameters: {

0 commit comments

Comments
 (0)