Flutter & Dart · Component
LayoutBuilder
LayoutBuilder builds widgets from the size constraints given by the parent. Its builder runs during layout, so the child can adapt to available space.
Last updated
Syntax
LayoutBuilder({Key? key, required Widget Function(BuildContext context, BoxConstraints constraints) builder})In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
SliverLayoutBuilderBuilderStatefulBuilderCustomSingleChildLayoutSingleChildScrollViewOverflowBoxAlign