Make Scrollable.ensureVisible document clearer that it would scroll all enclosing Scrollable (#154321)

Current documentation for `Scrollable.ensureVisible` could sometimes be misunderstood as if it only scroll the closest `Scrollable`.
This commit is contained in:
PurplePolyhedron
2024-08-30 03:14:11 +10:00
committed by GitHub
parent 9bf7d7bb35
commit 48b7a5a38f

View File

@@ -469,10 +469,10 @@ class Scrollable extends StatefulWidget {
return false;
}
/// Scrolls the scrollables that enclose the given context so as to make the
/// Scrolls all scrollables that enclose the given context so as to make the
/// given context visible.
///
/// If the [Scrollable] of the provided [BuildContext] is a
/// If a [Scrollable] enclosing the provided [BuildContext] is a
/// [TwoDimensionalScrollable], both vertical and horizontal axes will ensure
/// the target is made visible.
static Future<void> ensureVisible(