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
This commit is contained in:
James Lee
2023-03-01 09:25:55 +09:00
committed by GitHub
parent 2b788c9314
commit 3c70fb2667

View File

@@ -48,7 +48,7 @@ abstract class ConstrainedLayoutBuilder<ConstraintType extends Constraints> 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.
}