Skip to content

Commit 95e68bd

Browse files
committed
refactor(router): reorganize saved filters route definition
- Move the saved filters route definition outside of the nested routes list - Simplify the builder function syntax using a fat arrow
1 parent d899176 commit 95e68bd

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

lib/router/router.dart

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -775,16 +775,14 @@ GoRouter createRouter({
775775
);
776776
},
777777
),
778-
// Route for managing saved filters.
779-
GoRoute(
780-
path: Routes.accountSavedFilters,
781-
name: Routes.accountSavedFiltersName,
782-
builder: (context, state) {
783-
return const SavedFiltersPage();
784-
},
785-
),
786778
],
787779
),
780+
// Route for managing saved filters.
781+
GoRoute(
782+
path: Routes.accountSavedFilters,
783+
name: Routes.accountSavedFiltersName,
784+
builder: (context, state) => const SavedFiltersPage(),
785+
),
788786
],
789787
),
790788
],

0 commit comments

Comments
 (0)