Incomplete app widget error (#63005)
This commit is contained in:
parent
f534d6e669
commit
d69ddc47f3
@ -1017,6 +1017,8 @@ class _WidgetsAppState extends State<WidgetsApp> with WidgetsBindingObserver {
|
|||||||
if (widget.onUnknownRoute == null) {
|
if (widget.onUnknownRoute == null) {
|
||||||
throw FlutterError(
|
throw FlutterError(
|
||||||
'Could not find a generator for route $settings in the $runtimeType.\n'
|
'Could not find a generator for route $settings in the $runtimeType.\n'
|
||||||
|
'Make sure your root app widget has provided a way to generate \n'
|
||||||
|
'this route.\n'
|
||||||
'Generators for routes are searched for in the following order:\n'
|
'Generators for routes are searched for in the following order:\n'
|
||||||
' 1. For the "/" route, the "home" property, if non-null, is used.\n'
|
' 1. For the "/" route, the "home" property, if non-null, is used.\n'
|
||||||
' 2. Otherwise, the "routes" table is used, if it has an entry for '
|
' 2. Otherwise, the "routes" table is used, if it has an entry for '
|
||||||
|
@ -179,6 +179,8 @@ void main() {
|
|||||||
'FlutterError\n'
|
'FlutterError\n'
|
||||||
' Could not find a generator for route RouteSettings("/path", null)\n'
|
' Could not find a generator for route RouteSettings("/path", null)\n'
|
||||||
' in the _WidgetsAppState.\n'
|
' in the _WidgetsAppState.\n'
|
||||||
|
' Make sure your root app widget has provided a way to generate\n'
|
||||||
|
' this route.\n'
|
||||||
' Generators for routes are searched for in the following order:\n'
|
' Generators for routes are searched for in the following order:\n'
|
||||||
' 1. For the "/" route, the "home" property, if non-null, is used.\n'
|
' 1. For the "/" route, the "home" property, if non-null, is used.\n'
|
||||||
' 2. Otherwise, the "routes" table is used, if it has an entry for\n'
|
' 2. Otherwise, the "routes" table is used, if it has an entry for\n'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user