Minor fixes found while working on blankcanvas (#125751)

This PR contains a series of minor changes to address issues that I happened to run into:

 - Pretty-print errors triggered when handling events that are pending because of having locked event handling. Previously these were just dumped to the console.
 - Add more documentation for `debugPaintPadding`.
 - Add documentation to `Tween` saying how to implement it.
 - Slight formatting changes in the scrollbar code to align some expressions.
 - Since we convert ScrollMetricsNotifications to ScrollNotifications in various places, provide an explicit API to do this. This will make the behaviour consistent throughout, and makes the code easier to understand. Added a test for this.
 - Clarifications to some of the BindingBase and SchedulerBinding documentation.
 - Clarified some documentation in `flutter_test`'s `Finder` class.
This commit is contained in:
Ian Hickson
2023-05-04 17:34:04 -07:00
committed by GitHub
parent f22dd30c96
commit a11da307bf
9 changed files with 94 additions and 45 deletions

View File

@@ -489,6 +489,9 @@ abstract class Finder {
/// Returns all the [Element]s that will be considered by this finder.
///
/// This is the internal API for the [Finder]. To obtain the elements from
/// a [Finder] in a test, consider [WidgetTester.elementList].
///
/// See [collectAllElementsFrom].
@protected
Iterable<Element> get allCandidates {