Add assert that the root widget has been attached. (#32437)
This commit is contained in:
@@ -175,6 +175,8 @@ class FlutterDriverExtension {
|
||||
/// the result into a subclass of [Result], but that's not strictly required.
|
||||
@visibleForTesting
|
||||
Future<Map<String, dynamic>> call(Map<String, String> params) async {
|
||||
assert(WidgetsBinding.instance.isRootWidgetAttached,
|
||||
'No root widget is attached; have you remembered to call runApp()?');
|
||||
final String commandKind = params['command'];
|
||||
try {
|
||||
final CommandHandlerCallback commandHandler = _commandHandlers[commandKind];
|
||||
|
||||
Reference in New Issue
Block a user