nacasha / flutter-things-todo

An example Todo App using Flutter with advanced features
MIT License
206 stars 53 forks source link

Notification icon button sends onUnknownRoute exception #2

Open senpl opened 5 years ago

senpl commented 5 years ago

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 commented 5 years ago

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

liangshangyu commented 5 years ago

hi did you fix this bug?