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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user