布局组件
Flutter 布局组件目录。排列其他组件为列、行、网格以及许多其他布局。
排列其他组件为列、行、网格以及许多其他布局。
单子布局组件
A widget that aligns its child within itself and optionally sizes itself based on the child's size.
A widget that attempts to size the child to a specific aspect ratio.
Container that positions its child according to the child's baseline.
Alignment block that centers its child within itself.
A widget that imposes additional constraints on its child.
A convenience widget that combines common painting, positioning, and sizing widgets.
A widget that defers the layout of its single child to a delegate.
A widget that expands a child of a Row, Column, or Flex.
Scales and positions its child within itself according to fit.
A widget that sizes its child to a fraction of the total available space. For more details about the layout algorithm, see RenderFractionallySizedOverflowBox.
A widget that sizes its child to the child's intrinsic height.
A widget that sizes its child to the child's intrinsic width.
A box that limits its size only when it's unconstrained.
A widget that lays the child out as if it was in the tree, but without painting anything, without making the child available for hit...
A widget that imposes different constraints on its child than it gets from its parent, possibly allowing the child to overflow the parent.
A widget that insets its child by the given padding.
A box with a specified size. If given a child, this widget forces its child to have a specific width and/or height (assuming values are...
A widget that is a specific size but passes its original constraints through to its child, which will probably overflow.
A widget that applies a transformation before painting its child.
多子布局组件
在垂直方向上排列子组件列表。
一个使用委托来调整大小和定位多个子组件的组件。
一个 Material 轮播组件,它呈现一个可滚动的项目列表,每个项目的大小可以根据所选布局动态变化。
一个实现流式布局算法的组件。
网格列表由垂直和水平布局中重复排列的单元格模式组成。GridView 组件实现了此组件。
一个堆栈,它从子组件列表中显示单个子组件。
构建一个可以依赖于父组件大小的组件树。
一个组件,它沿着给定的轴顺序排列其子组件,强制它们在另一个轴上具有父组件的尺寸。
一个可滚动的线性组件列表。ListView 是最常用的滚动组件。它按滚动方向一个接一个地显示其子组件....
在水平方向上排列子组件列表。
如果你想以简单的方式重叠几个子组件,例如在文本和图像上叠加一些内容,那么这个类很有用。
以行和列显示子组件。
一个组件,它以多个水平或垂直运行方式显示其子组件。
Sliver 组件
使用 sliver 的带有 iOS-11 风格大标题的导航栏。
一个实现 iOS 风格下拉刷新内容控制的 sliver 组件。
一个 ScrollView,它使用 sliver 创建自定义滚动效果。
一个与 CustomScrollView 集成的 Material Design 应用栏。
一个使用构建器回调提供 sliver 子组件的委托。
一个使用显式列表提供 sliver 子组件的委托。
一个 sliver,它包含一个填充视口剩余空间的单个框子组件。
一个 sliver,它以线性数组的方式放置具有相同主轴范围的多个框子组件。
一个 sliver,它以二维排列的方式放置多个框子组件。
一个 sliver,它以线性数组的方式沿着主轴放置多个框子组件。
一个 sliver,它在另一个 sliver 的每一侧应用填充。
一个 sliver,当 sliver 滚动到视口与 sliver 的 GrowthDirection 相反的边缘时,其大小会发生变化。
一个包含单个框组件的 sliver。
在组件目录中查找更多组件。
除非另有说明,此网站上的文档反映了 Flutter 3.38.6。 报告问题。