Results for “SizedBox”
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
possible' there has no answer and throws in debug mode. SizedBox and ConstrainedBox only add constraints on top of what they received; they cannot override a tight
- Common Flutter errors and how to fix them3.47.7widgets
with nothing bounding the main axis. Give it a size with Expanded or SizedBox. 'Incorrect use of ParentDataWidget': Expanded/Flexible must be direct children of Row/Column/Flex, Positioned
Guides
- Layouts in Flutterdoc
Learn how Flutter's layout mechanism works and how to build your
- Create widgetsdoc
Learn about stateless widgets and how to build your own. Learn to
- Common Flutter errorsdoc
How to recognize and resolve common Flutter framework errors. Introduction This page
- Hero animationsdoc
How to animate a widget to fly between two screens. The hero
- Animations tutorialdoc
A tutorial showing how to build explicit animations in Flutter. How to
- Understanding constraintsdoc
Flutter's model for widget constraints, sizing, positioning, and how they interact
API reference
- SizedBoxclass
with a specified size. widgets.SizedBox SizedBox Sized Box class widgets
- SizedBox.fromSizeconstructor
Creates a box with the specified size. widgets.SizedBox.SizedBox.fromSize SizedBox fromSize Sized Box.from Size constructor widgets
- SizedBox.expandconstructor
Creates a box that will become as large as its parent allows. widgets.SizedBox.SizedBox.expand SizedBox expand Sized Box.expand constructor widgets
- SizedBox.squareconstructor
Creates a box whose width and height are equal. widgets.SizedBox.SizedBox.square SizedBox square Sized Box.square constructor widgets
- SizedBox.shrinkconstructor
Creates a box that will become as small as its parent allows. widgets.SizedBox.SizedBox.shrink SizedBox shrink Sized Box.shrink constructor widgets
- SizedBox.newconstructor
size of the box should not be constrained in the corresponding dimension. widgets.SizedBox.SizedBox.new SizedBox new Sized Box.new constructor widgets
Version changes
- - SliverList throws Exception when first item is SizedBox.shrink()1.20.2bugfix
SliverList throws Exception when first item is SizedBox.shrink
- Default PrimaryScrollController on Desktop3.3.0breaking
PrimaryScrollController. Scaffold( body: LayoutBuilder( builder: (context, constraints) { return Row( children: [ SizedBox( height: constraints.maxHeight, width: constraints.maxWidth / 2, child: ListView.builder( itemBuilder: (BuildContext context, int index) { return Text
- Clip behavior2.0.0breaking
Flutter now defaults to _not_ clip except for a few specialized widgets