Results for “Layout and constraints”
Full-text search across Boring Doc explanations, official documentation pages, the Flutter API index and every indexed version change.
Concepts
- Layout and constraints3.47.7layout
tight parent. Center and Align loosen constraints so a child can be smaller. The two most common layout errors, 'RenderFlex overflowed' and 'Vertical viewport was given
- Common Flutter errors and how to fix them3.47.7widgets
first error in the console, give the widget a constraint, and the rest usually disappears. Layout is a negotiation: parents pass constraints down, children pick
Guides
- Performance best practicesdoc
How to ensure that your Flutter app is performant. Generally, Flutter applications
- Common Flutter errorsdoc
How to recognize and resolve common Flutter framework errors. Introduction This page
- Layouts in Flutterdoc
Learn how Flutter's layout mechanism works and how to build
- Advanced scrolling and sliversdoc
widget tree. Slivers are specialized widgets designed specifically for scrollable layouts and have some constraints: Slivers can only be direct children of scroll views, such
- DevToolsdoc
Learn to use the Dart DevTools when developing Flutter apps. Learn to
- LayoutBuilder and adaptive layoutsdoc
Learn how to use the LayoutBuilder widget. Learn how to create layouts
- How Flutter worksdoc
Dive deeper into how Flutter works through a six-part video series
- Understanding constraintsdoc
layout can't really be understood without knowing this rule, so Flutter developers should learn it early on. In more detail: A widget gets its own constraints
API reference
- SliverConstraintsclass
Immutable layout constraints for RenderSliver layout. rendering.SliverConstraints SliverConstraints Sliver Constraints class rendering
- BoxConstraintsclass
Immutable layout constraints for RenderBox layout. rendering.BoxConstraints BoxConstraints Box Constraints class rendering
- Constraintsclass
abstract set of layout constraints. rendering.Constraints Constraints Constraints class rendering
- ViewConfigurationclass
layout constraints for the root render object. rendering.ViewConfiguration ViewConfiguration View Configuration class rendering
- ConstrainedLayoutBuilderclass
whose widget subtree depends on the incoming ConstraintType that will be imposed on the widget. widgets.ConstrainedLayoutBuilder ConstrainedLayoutBuilder Constrained Layout Builder class widgets
- material.ButtonBarLayoutBehaviorenum
button bar should size itself with either constraints or internal padding. material.ButtonBarLayoutBehavior ButtonBarLayoutBehavior Button Bar Layout Behavior enum material