From 00d49b20e07749d4ea9a4ea55b7c0435d058ca83 Mon Sep 17 00:00:00 2001 From: Sam Rawlins Date: Mon, 8 Jul 2024 09:55:55 -0700 Subject: [PATCH] Update doc-import to primary configured import, _goldens_io.dart (#151390) There is a... restriction in dartdoc, such that a library which is `@docImport`ed in one library, must be otherwise regularly imported in some other library. Without this case, dartdoc gets a bit lost about where the doc-imported library is. Combine this restriction with analyzer's restriction that it doesn't super duper handle configuration imports. Since `_goldens_io.dart` is the "primary" import in all other files, and `_goldens_web.dart` is the "configured" import, we must only doc-import `_goldens_io.dart`. --- packages/flutter_test/lib/src/goldens.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/flutter_test/lib/src/goldens.dart b/packages/flutter_test/lib/src/goldens.dart index 0ad3c691968..c27f50ce1c6 100644 --- a/packages/flutter_test/lib/src/goldens.dart +++ b/packages/flutter_test/lib/src/goldens.dart @@ -4,7 +4,7 @@ /// @docImport 'package:flutter/widgets.dart'; /// -/// @docImport '_goldens_web.dart'; +/// @docImport '_goldens_io.dart'; /// @docImport 'binding.dart'; /// @docImport 'matchers.dart'; /// @docImport 'widget_tester.dart';