Skip to content

Commit 3c70fb2

Browse files
authored
Add typically used parameter name to the builder used in layout_builder (#119877)
Add typically used parameter name to the builder used in layout_builder
1 parent 2b788c9 commit 3c70fb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/flutter/lib/src/widgets/layout_builder.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ abstract class ConstrainedLayoutBuilder<ConstraintType extends Constraints> exte
4848
/// Called at layout time to construct the widget tree.
4949
///
5050
/// The builder must not return null.
51-
final Widget Function(BuildContext, ConstraintType) builder;
51+
final Widget Function(BuildContext context, ConstraintType constraints) builder;
5252

5353
// updateRenderObject is redundant with the logic in the LayoutBuilderElement below.
5454
}

0 commit comments

Comments
 (0)