diff --git a/packages/flutter/flutter.iml b/packages/flutter/flutter.iml
index e50331f862..74f246fd06 100644
--- a/packages/flutter/flutter.iml
+++ b/packages/flutter/flutter.iml
@@ -20,7 +20,7 @@
-
+
diff --git a/packages/flutter/lib/src/rendering/custom_layout.dart b/packages/flutter/lib/src/rendering/custom_layout.dart
index d73403177a..38dac04b88 100644
--- a/packages/flutter/lib/src/rendering/custom_layout.dart
+++ b/packages/flutter/lib/src/rendering/custom_layout.dart
@@ -20,12 +20,62 @@ class MultiChildLayoutParentData extends ContainerBoxParentDataMixin
/// A delegate that controls the layout of multiple children.
///
+/// Delegates must be idempotent. Specifically, if two delegates are equal, then
+/// they must produce the same layout. To change the layout, replace the
+/// delegate with a different instance whose [shouldRelayout] returns true when
+/// given the previous instance.
+///
+/// Override [getSize] to control the overall size of the layout. The size of
+/// the layout cannot depend on layout properties of the children.
+///
+/// Override [performLayout] to size and position the children. An
+/// implementation of [performLayout] must call [layoutChild] exactly once for
+/// each child, but it may call [layoutChild] on children in an arbitrary order.
+/// Typically a delegate will use the size returned from [layoutChild] on one
+/// child to determine the constraints for [performLayout] on another child or
+/// to determine the offset for [positionChild] for that child or another child.
+///
+/// Override [shouldRelayout] to determine when the layout of the children needs
+/// to be recomputed when the delegate changes.
+///
/// Used with [MultiChildCustomLayout], the widget for the
/// [RenderCustomMultiChildLayoutBox] render object.
///
-/// Subclasses must override some or all of the methods
-/// marked "Override this method to..." to provide the constraints and
-/// positions of the children.
+/// ## Example
+///
+/// Below is an example implementation of [performLayout] that causes one widget
+/// to be the same size as another:
+///
+/// ```dart
+/// @override
+/// void performLayout(Size size) {
+/// Size followerSize = Size.zero;
+///
+/// if (hasChild(_Slots.leader) {
+/// followerSize = layoutChild(_Slots.leader, new BoxConstraints.loose(size));
+/// positionChild(_Slots.leader, Offset.zero);
+/// }
+///
+/// if (hasChild(_Slots.follower)) {
+/// layoutChild(_Slots.follower, new BoxConstraints.tight(followerSize));
+/// positionChild(_Slots.follower, new Offset(size.width - followerSize.width,
+/// size.height - followerSize.height));
+/// }
+/// }
+/// ```
+///
+/// The delegate gives the leader widget loose constraints, which means the
+/// child determines what size to be (subject to fitting within the given size).
+/// The delegate then remembers the size of that child and places it in the
+/// upper left corner.
+///
+/// The delegate then gives the follower widget tight constraints, forcing it to
+/// match the size of the leader widget. The delegate then places the follower
+/// widget in the bottom right corner.
+///
+/// The leader and follower widget will paint in the order they appear in the
+/// child list, regardless of the order in which [layoutChild] is called on
+/// them.
abstract class MultiChildLayoutDelegate {
Map