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

Notification icon button sends onUnknownRoute exception #2

Open
senpl opened this issue Feb 14, 2019 · 2 comments
Open

Notification icon button sends onUnknownRoute exception #2

senpl opened this issue Feb 14, 2019 · 2 comments
Labels
bug Something isn't working

Comments

@senpl
Copy link

senpl commented Feb 14, 2019

From home screen.
App not crash still no action is performed. Probably something in routing is not set as expected. I do not know what should happen after button click.
From other screens Another exception was thrown: Could not find a generator for route "/task-form" in the _WidgetsAppState.

══╡
EXCEPTION CAUGHT BY GESTURE ╞═══════════════════════════════════════════════════════════════════
I/flutter (17082): The following assertion was thrown while handling a gesture:
I/flutter (17082): Could not find a generator for route "/task-form" in the _WidgetsAppState.
I/flutter (17082): Generators for routes are searched for in the following order:
I/flutter (17082): 1. For the "/" route, the "home" property, if non-null, is used.
I/flutter (17082): 2. Otherwise, the "routes" table is used, if it has an entry for the route.
I/flutter (17082): 3. Otherwise, onGenerateRoute is called. It should return a non-null value for any valid route not
I/flutter (17082): handled by "home" and "routes".
I/flutter (17082): 4. Finally if all else fails onUnknownRoute is called.
I/flutter (17082): Unfortunately, onUnknownRoute was not set.
I/flutter (17082): When the exception was thrown, this was the stack:
I/flutter (17082): #0 _WidgetsAppState._onUnknownRoute.
package:flutter/…/widgets/app.dart:774
I/flutter (17082): #1 _WidgetsAppState._onUnknownRoute
package:flutter/…/widgets/app.dart:787
I/flutter (17082): #2 NavigatorState._routeNamed
package:flutter/…/widgets/navigator.dart:1440
I/flutter (17082): #3 NavigatorState.pushNamed
package:flutter/…/widgets/navigator.dart:1473
I/flutter (17082): #4 BaseAppBar.actions.
package:thingstodo/…/app_bar/base_app_bar.dart:27
I/flutter (17082): #5 _InkResponseState._handleTap
package:flutter/…/material/ink_well.dart:507

@nacasha
Copy link
Owner

nacasha commented Feb 14, 2019

Thank you for submiting the issue, I will check it in the near future

@nacasha nacasha added the bug Something isn't working label Feb 14, 2019
@liangshangyu
Copy link

hi did you fix this bug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants