From d69ddc47f3b5b70e96790535719ae9f9c653571e Mon Sep 17 00:00:00 2001 From: Justin McCandless Date: Wed, 5 Aug 2020 19:31:03 -0700 Subject: [PATCH] Incomplete app widget error (#63005) --- packages/flutter/lib/src/widgets/app.dart | 2 ++ packages/flutter/test/widgets/app_test.dart | 2 ++ 2 files changed, 4 insertions(+) diff --git a/packages/flutter/lib/src/widgets/app.dart b/packages/flutter/lib/src/widgets/app.dart index ff0a166e92..5ab614a26e 100644 --- a/packages/flutter/lib/src/widgets/app.dart +++ b/packages/flutter/lib/src/widgets/app.dart @@ -1017,6 +1017,8 @@ class _WidgetsAppState extends State with WidgetsBindingObserver { if (widget.onUnknownRoute == null) { throw FlutterError( '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' ' 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 ' diff --git a/packages/flutter/test/widgets/app_test.dart b/packages/flutter/test/widgets/app_test.dart index 15cdd56f86..0d80588738 100644 --- a/packages/flutter/test/widgets/app_test.dart +++ b/packages/flutter/test/widgets/app_test.dart @@ -179,6 +179,8 @@ void main() { 'FlutterError\n' ' Could not find a generator for route RouteSettings("/path", null)\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' ' 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'