Row 组件 中会自动填充水平方向上的剩余空间 ;
Expanded 组件 在 Column 组件 中会自动填充垂直方向上的剩余空间 ;
代码示例 :
// 普通样式的 Row
Row(
children...style: TextStyle(color: Colors.yellow),
),
),
),
],
),
// 空行
执行效果 :
第一个组件是 Row 中没有使用...currentIndex: _currentSelectedIndex,
// 设置点击底部导航栏的回调事件 , index 参数是点击的索引值...: 三目运算符
),
);
}
/// RefreshIndicator 发生下拉操作时, 回调该方法
/// 该方啊是一个异步方法 , 在方法体前添加 async 关键字...FutureNull> _refreshIndicatorOnRefresh() async{
// 暂停 500 ms , 使用 await 关键字实现
// 在这 500 ms