From 48b7a5a38fb911f4cc132786aa188f6e4b238b76 Mon Sep 17 00:00:00 2001 From: PurplePolyhedron <120297255+PurplePolyhedron@users.noreply.github.com> Date: Fri, 30 Aug 2024 03:14:11 +1000 Subject: [PATCH] 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`. --- packages/flutter/lib/src/widgets/scrollable.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/flutter/lib/src/widgets/scrollable.dart b/packages/flutter/lib/src/widgets/scrollable.dart index 87f2a8fa06..27bf6ee2fc 100644 --- a/packages/flutter/lib/src/widgets/scrollable.dart +++ b/packages/flutter/lib/src/widgets/scrollable.dart @@ -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 ensureVisible(