File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -151,6 +151,7 @@ class _SourceFilterViewState extends State<_SourceFilterView> {
151151 // When the filter page returns with new criteria, update the
152152 // bloc to re-render the list.
153153 if (result != null && mounted) {
154+ // ignore: use_build_context_synchronously
154155 context.read <HeadlinesFilterBloc >().add (
155156 FilterSourceCriteriaChanged (
156157 selectedCountries: result['countries' ] as Set <Country >,
Original file line number Diff line number Diff line change @@ -33,8 +33,8 @@ import 'package:flutter_news_app_mobile_client_full_source_code/headlines-feed/v
3333import 'package:flutter_news_app_mobile_client_full_source_code/headlines-feed/view/headlines_feed_page.dart' ;
3434import 'package:flutter_news_app_mobile_client_full_source_code/headlines-feed/view/headlines_filter_page.dart' ;
3535import 'package:flutter_news_app_mobile_client_full_source_code/headlines-feed/view/manage_saved_filters_page.dart' ;
36- import 'package:flutter_news_app_mobile_client_full_source_code/headlines-feed/view/source_list_filter_page.dart' ;
3736import 'package:flutter_news_app_mobile_client_full_source_code/headlines-feed/view/source_filter_page.dart' ;
37+ import 'package:flutter_news_app_mobile_client_full_source_code/headlines-feed/view/source_list_filter_page.dart' ;
3838import 'package:flutter_news_app_mobile_client_full_source_code/headlines-feed/view/topic_filter_page.dart' ;
3939import 'package:flutter_news_app_mobile_client_full_source_code/headlines-search/bloc/headlines_search_bloc.dart' ;
4040import 'package:flutter_news_app_mobile_client_full_source_code/headlines-search/view/headlines_search_page.dart' ;
@@ -366,6 +366,7 @@ GoRouter createRouter({
366366 title: title,
367367 allItems: allItems,
368368 initialSelectedItems: initialSelectedItems,
369+ // ignore: avoid_dynamic_calls
369370 itemBuilder: (dynamic item) => itemBuilder (item) as String ,
370371 );
371372 },
You can’t perform that action at this time.
0 commit comments