From fb25257fcb0376ae5423363df17684e45a3a27aa Mon Sep 17 00:00:00 2001 From: Ian Hickson Date: Thu, 20 Oct 2016 20:44:05 -0400 Subject: [PATCH] Point people to Block from some likely places. (#6444) This is loosely based on the experience of usability study participant P1. --- packages/flutter/lib/src/widgets/basic.dart | 5 +++++ packages/flutter/lib/src/widgets/scrollable.dart | 3 +++ 2 files changed, 8 insertions(+) diff --git a/packages/flutter/lib/src/widgets/basic.dart b/packages/flutter/lib/src/widgets/basic.dart index 98535cbc42..617a5f1d90 100644 --- a/packages/flutter/lib/src/widgets/basic.dart +++ b/packages/flutter/lib/src/widgets/basic.dart @@ -1979,6 +1979,11 @@ class Row extends Flex { /// /// For details about the flex layout algorithm, see [RenderFlex]. To control /// the flex of child widgets, see the [Flexible] widget. +/// +/// The Column widget does not scroll (and in general it is considered an error +/// to have more children in a Column than will fit in the available room). If +/// you have a list of widgets and want them to be able to scroll if there is +/// insufficient room, consider using a [Block]. class Column extends Flex { /// Creates a vertical array of children. /// diff --git a/packages/flutter/lib/src/widgets/scrollable.dart b/packages/flutter/lib/src/widgets/scrollable.dart index 75bddca716..97f0ea47aa 100644 --- a/packages/flutter/lib/src/widgets/scrollable.dart +++ b/packages/flutter/lib/src/widgets/scrollable.dart @@ -66,6 +66,9 @@ typedef double SnapOffsetCallback(double scrollOffset, Size containerSize); /// /// Widgets that subclass [Scrollable] typically use state objects that subclass /// [ScrollableState]. +/// +/// If you have a list of widgets and want them to be able to scroll if there is +/// insufficient room, consider using [Block]. class Scrollable extends StatefulWidget { /// Initializes fields for subclasses. ///