Skip to content

Commit c480aa7

Browse files
committed
style: format
1 parent c45570b commit c480aa7

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

lib/headlines-feed/view/headlines_filter_page.dart

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,9 @@ Future<void> _createAndApplyFilter(BuildContext context) async {
217217
// We pop twice: once to close the filter page, and a second time to
218218
// close the "Saved Filters" page, returning the user directly to the feed.
219219
if (didSave == true && context.mounted) {
220-
// Pop HeadlinesFilterPage.
221-
context.pop();
222-
// Pop SavedHeadlinesFiltersPage.
223-
context.pop();
220+
context
221+
..pop() // Pop HeadlinesFilterPage.
222+
..pop(); // Pop SavedHeadlinesFiltersPage.
224223
}
225224
}
226225

@@ -272,8 +271,9 @@ Future<void> _updateAndApplyFilter(
272271
if (didSave == true && context.mounted) {
273272
// Pop twice: once to close the filter page, and a second time to
274273
// close the "Saved Filters" page, returning the user directly to the feed.
275-
context.pop();
276-
context.pop();
274+
context
275+
..pop()
276+
..pop();
277277
}
278278
}
279279

@@ -311,8 +311,9 @@ void _applyAndExit(BuildContext context) {
311311
_applyFilter(context);
312312
// Pop twice: once to close the filter page, and a second time to
313313
// close the "Saved Filters" page, returning the user directly to the feed.
314-
context.pop(); // Pop HeadlinesFilterPage
315-
context.pop(); // Pop SavedHeadlinesFiltersPage
314+
context
315+
..pop() // Pop HeadlinesFilterPage
316+
..pop(); // Pop SavedHeadlinesFiltersPage
316317
}
317318

318319
class _HeadlinesFilterView extends StatelessWidget {

lib/headlines-feed/view/saved_headlines_filters_page.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ class _SavedHeadlinesFiltersView extends StatelessWidget {
157157
onSelected: (value) async {
158158
if (value == 'edit') {
159159
// Navigate to the filter page in 'edit' mode.
160-
context.pushNamed(
160+
await context.pushNamed(
161161
Routes.feedFilterName,
162162
extra: {
163163
'initialFilter': filter.criteria,

lib/headlines-feed/view/source_filter_page.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ class _SourceFilterViewState extends State<_SourceFilterView> {
9696
final source = displayableSources[index];
9797
final isSelected = filterState.selectedSources.contains(source);
9898

99+
// ignore: avoid_positional_boolean_parameters
99100
void handleTap(bool? value) {
100101
if (value != null) {
101102
context.read<HeadlinesFilterBloc>().add(

0 commit comments

Comments
 (0)