diff --git a/packages/flutter/lib/src/widgets/layout_builder.dart b/packages/flutter/lib/src/widgets/layout_builder.dart index 3dbb6be075..f5751e62be 100644 --- a/packages/flutter/lib/src/widgets/layout_builder.dart +++ b/packages/flutter/lib/src/widgets/layout_builder.dart @@ -247,6 +247,59 @@ mixin RenderConstrainedLayoutBuilder 600) { +/// return _buildWideContainers(); +/// } else { +/// return _buildNormalContainer(); +/// } +/// }, +/// ), +/// ); +/// } +/// +/// Widget _buildNormalContainer() { +/// return Center( +/// child: Container( +/// height: 100.0, +/// width: 100.0, +/// color: Colors.red, +/// ), +/// ); +/// } +/// +/// Widget _buildWideContainers() { +/// return Center( +/// child: Row( +/// mainAxisAlignment: MainAxisAlignment.spaceEvenly, +/// children: [ +/// Container( +/// height: 100.0, +/// width: 100.0, +/// color: Colors.red, +/// ), +/// Container( +/// height: 100.0, +/// width: 100.0, +/// color: Colors.yellow, +/// ), +/// ], +/// ), +/// ); +/// } +/// ``` +/// {@end-tool} +/// /// See also: /// /// * [SliverLayoutBuilder], the sliver counterpart of this widget.