Skip to content

Commit

Permalink
[#72] refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
nkhanh44 committed Aug 31, 2023
1 parent cd3aff0 commit e1bd60b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class App extends StatelessWidget {
),
GoRoute(
path: AppRoute.questions.path,
builder: (_, state) => SurveyScreen(),
builder: (_, __) => SurveyScreen(),
),
],
);
Expand Down
8 changes: 7 additions & 1 deletion lib/screens/app_route.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
enum AppRoute { splash, login, home, survey, questions }
enum AppRoute {
splash,
login,
home,
survey,
questions,
}

extension AppRoutePath on AppRoute {
String get path {
Expand Down

0 comments on commit e1bd60b

Please sign in to comment.