We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 946d840 commit 721f8b8Copy full SHA for 721f8b8
lib/headlines-search/widgets/topic_item_widget.dart
@@ -1,5 +1,7 @@
1
import 'package:core/core.dart';
2
import 'package:flutter/material.dart';
3
+import 'package:flutter_bloc/flutter_bloc.dart';
4
+import 'package:flutter_news_app_mobile_client_full_source_code/ads/interstitial_ad_manager.dart';
5
import 'package:flutter_news_app_mobile_client_full_source_code/router/routes.dart';
6
import 'package:go_router/go_router.dart';
7
@@ -21,6 +23,9 @@ class TopicItemWidget extends StatelessWidget {
21
23
)
22
24
: null,
25
onTap: () {
26
+ context
27
+ .read<InterstitialAdManager>()
28
+ .onPotentialAdTrigger(context: context);
29
context.pushNamed(
30
Routes.entityDetailsName,
31
pathParameters: {'type': ContentType.topic.name, 'id': topic.id},
0 commit comments