@@ -6,11 +6,11 @@ import 'package:flutter/material.dart';
66import 'package:flutter_bloc/flutter_bloc.dart' ;
77import 'package:flutter_news_app_mobile_client_full_source_code/account/bloc/account_bloc.dart' ;
88import 'package:flutter_news_app_mobile_client_full_source_code/ads/models/ad_feed_item.dart' ;
9+ import 'package:flutter_news_app_mobile_client_full_source_code/ads/widgets/widgets.dart' ;
910import 'package:flutter_news_app_mobile_client_full_source_code/app/bloc/app_bloc.dart' ;
1011import 'package:flutter_news_app_mobile_client_full_source_code/headlines-feed/bloc/headlines_feed_bloc.dart' ;
1112import 'package:flutter_news_app_mobile_client_full_source_code/l10n/l10n.dart' ;
1213import 'package:flutter_news_app_mobile_client_full_source_code/router/routes.dart' ;
13- import 'package:flutter_news_app_mobile_client_full_source_code/shared/widgets/ads/ad_feed_item_widget.dart' ;
1414import 'package:flutter_news_app_mobile_client_full_source_code/shared/widgets/feed_core/feed_core.dart' ;
1515import 'package:flutter_news_app_mobile_client_full_source_code/shared/widgets/feed_decorators/call_to_action_decorator_widget.dart' ;
1616import 'package:flutter_news_app_mobile_client_full_source_code/shared/widgets/feed_decorators/content_collection_decorator_widget.dart' ;
@@ -64,7 +64,7 @@ class _HeadlinesFeedPageState extends State<HeadlinesFeedPage> {
6464 state.hasMore &&
6565 state.status != HeadlinesFeedStatus .loadingMore) {
6666 context.read <HeadlinesFeedBloc >().add (
67- const HeadlinesFeedFetchRequested (),
67+ HeadlinesFeedFetchRequested (theme : Theme . of (context) ),
6868 );
6969 }
7070 }
@@ -184,7 +184,7 @@ class _HeadlinesFeedPageState extends State<HeadlinesFeedPage> {
184184 return FailureStateWidget (
185185 exception: state.error! ,
186186 onRetry: () => context.read <HeadlinesFeedBloc >().add (
187- HeadlinesFeedRefreshRequested (),
187+ HeadlinesFeedRefreshRequested (theme : Theme . of (context) ),
188188 ),
189189 );
190190 }
@@ -203,7 +203,7 @@ class _HeadlinesFeedPageState extends State<HeadlinesFeedPage> {
203203 const SizedBox (height: AppSpacing .lg),
204204 ElevatedButton (
205205 onPressed: () => context.read <HeadlinesFeedBloc >().add (
206- HeadlinesFeedFiltersCleared (),
206+ HeadlinesFeedFiltersCleared (theme : Theme . of (context) ),
207207 ),
208208 child: Text (l10n.headlinesFeedClearFiltersButton),
209209 ),
@@ -215,7 +215,7 @@ class _HeadlinesFeedPageState extends State<HeadlinesFeedPage> {
215215 return RefreshIndicator (
216216 onRefresh: () async {
217217 context.read <HeadlinesFeedBloc >().add (
218- HeadlinesFeedRefreshRequested (),
218+ HeadlinesFeedRefreshRequested (theme : Theme . of (context) ),
219219 );
220220 },
221221 child: ListView .separated (
0 commit comments