目录
- SingleChildScrollView(可滑动 View)
- ListView(列表 View)
- GridView(网格 View)
- CustomScrollView(自定义滑动 View)
- ScrollController(控制器)
SingleChildScrollView(可滑动 View)
SingleChildScrollView 类似 Android 中的 scrollview ,且同样的只可包含有一个子元素
const SingleChildScrollView({
Key key,
this.scrollDirection = Axis.vertical,
this.reverse = false,
this.padding,
bool primary,
this.physics,
this.controller,
this.child,
this.dragStartBehavior = DragStartBehavior.down,
}) : assert(scrollDirection != null),
assert(dragStartBehavior != null),
assert(!(controller != nul