组件
----
Expanded 组件 : 该组件可以自动识别父容器的方向 , 在垂直或水平方向上填充剩余空间 ;
class Expanded extends Flexible {
/// Creates...: flex, fit: FlexFit.tight, child: child);
}
Expanded 组件 在 Row 组件 中会自动填充水平方向上的剩余空间 ;
Expanded 组件 在 Column...width: 10,
height: 100,
),
],
),
// 刷新时回调的方法...: 三目运算符
),
);
}
/// RefreshIndicator 发生下拉操作时, 回调该方法
/// 该方啊是一个异步方法 , 在方法体前添加 async 关键字...// 500 ms 之后 , 列表变为非刷新状态
await Future.delayed(Duration(milliseconds: 500));
return null;