Skip to content

Commit 3b4fadd

Browse files
committed
feat(ads): add potential ad trigger when tapping followed topic
- Import InterstitialAdManager in followed_topics_list_page.dart - Add onPotentialAdTrigger call in the onTap callback of the topic item
1 parent 15c5f03 commit 3b4fadd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/account/view/manage_followed_items/topics/followed_topics_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';
@@ -101,6 +102,9 @@ class FollowedTopicsListPage extends StatelessWidget {
101102
},
102103
),
103104
onTap: () {
105+
context
106+
.read<InterstitialAdManager>()
107+
.onPotentialAdTrigger(context: context);
104108
context.pushNamed(
105109
Routes.entityDetailsName,
106110
pathParameters: {

0 commit comments

Comments
 (0)