Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add Unknown view to Web template #8

Merged
merged 4 commits into from
Apr 10, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Redirect to UnknownView when route was not find
  • Loading branch information
ferrarafer committed Apr 5, 2023
commit a26281484f96cf8a75573c08b08f7d2ccc78fa70
2 changes: 2 additions & 0 deletions lib/src/templates/app/web/lib/app/app.dart.stk
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import 'package:stacked_services/stacked_services.dart';

CustomRoute(page: UnknownView, path: '/404'),

/// When none of the above routes match, redirect to UnknownView
RedirectRoute(path: '*', redirectTo: '/404'),
],
dependencies: [
LazySingleton(classType: BottomSheetService),
Expand Down