From 3c70fb2667d3cad73b1c3bc7ad82c1f5396f5934 Mon Sep 17 00:00:00 2001 From: James Lee Date: Wed, 1 Mar 2023 09:25:55 +0900 Subject: [PATCH] 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 --- packages/flutter/lib/src/widgets/layout_builder.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/flutter/lib/src/widgets/layout_builder.dart b/packages/flutter/lib/src/widgets/layout_builder.dart index c1cb20913e..b2c8638a19 100644 --- a/packages/flutter/lib/src/widgets/layout_builder.dart +++ b/packages/flutter/lib/src/widgets/layout_builder.dart @@ -48,7 +48,7 @@ abstract class ConstrainedLayoutBuilder exte /// Called at layout time to construct the widget tree. /// /// The builder must not return null. - final Widget Function(BuildContext, ConstraintType) builder; + final Widget Function(BuildContext context, ConstraintType constraints) builder; // updateRenderObject is redundant with the logic in the LayoutBuilderElement below. }