Adds SemanticsNode Finders for searching the semantics tree (#127137)

* Pulled `FinderBase` out of `Finder`
  * `FinderBase` can be used for any object, not just elements
  * Terminology was updated to be more "find" related
* Re-implemented `Finder` using `FinderBase<Element>`
  * Backwards compatibility maintained with `_LegacyFinderMixin`
* Introduced base classes for SemanticsNode finders
* Introduced basic SemanticsNode finders through `find.semantics`
* Updated some relevant matchers to make use of the more generic `FinderBase`

Closes #123634
Closes #115874
This commit is contained in:
pdblasi-google
2023-08-10 14:31:06 -07:00
committed by GitHub
parent 73e0dbf5f4
commit 5df1c996ad
14 changed files with 2046 additions and 718 deletions

View File

@@ -56,7 +56,7 @@ Future<void> main() async {
do {
await controller.drag(list, const Offset(0.0, -30.0));
await Future<void>.delayed(const Duration(milliseconds: 20));
} while (!lastItem.precache());
} while (!lastItem.tryEvaluate());
debugPrint('==== MEMORY BENCHMARK ==== DONE ====');
}

View File

@@ -60,7 +60,7 @@ Future<void> main() async {
do {
await controller.drag(demoList, const Offset(0.0, -300.0));
await Future<void>.delayed(const Duration(milliseconds: 20));
} while (!demoItem.precache());
} while (!demoItem.tryEvaluate());
// Ensure that the center of the "Text fields" item is visible
// because that's where we're going to tap