From e1dd322c8d9c4c18049ca7de6448e01d354902a7 Mon Sep 17 00:00:00 2001 From: Sam Rawlins Date: Thu, 10 Oct 2024 20:04:06 -0700 Subject: [PATCH] Add doc-import for references to CommonFinders (#156539) This adds back in the doc comment references for `CommonFinders` that caused CI issues when @gspencergoog was trying to land https://github.com/flutter/flutter/pull/149349. This essentially reverts https://github.com/flutter/flutter/pull/149349/commits/a7721fe4899c23d41fb38289a165437f00b57873. --- .../flutter/lib/src/widgets/standard_component_type.dart | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/flutter/lib/src/widgets/standard_component_type.dart b/packages/flutter/lib/src/widgets/standard_component_type.dart index a22713ecab..3d2bdbb7d5 100644 --- a/packages/flutter/lib/src/widgets/standard_component_type.dart +++ b/packages/flutter/lib/src/widgets/standard_component_type.dart @@ -2,6 +2,9 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +/// @docImport 'package:flutter_test/flutter_test.dart'; +library; + import 'package:flutter/foundation.dart'; /// An enum identifying standard UI components. @@ -28,8 +31,10 @@ import 'package:flutter/foundation.dart'; /// or fragile to create a reliable test matcher for. It is not (nor should it /// become) an exhaustive list of standard UI components. /// -/// These are typically used in tests via `find.backButton()` or -/// `find.closeButton()`. +/// See also: +/// +/// - [CommonFinders.backButton], which in tests is used as `find.backButton()`. +/// - [CommonFinders.closeButton], which in tests is used as `find.closeButton()`. enum StandardComponentType { /// Indicates the associated widget is a standard back button, typically used /// to navigate back to the previous screen.