= null),
super(key: key, child: child);
}
Opacity 组件用法 :
设置透明度 : 在 opacity 字段设置透明度值 , 取值范围 0 ~...设置
// items 可以设置多个 BottomNavigationBarItem
bottomNavigationBar: BottomNavigationBar(...],
),
),
],
),
// 刷新时回调的方法...// 列表发生下拉操作时, 回调该方法
// 该回调是 Future 类型的
onRefresh: _refreshIndicatorOnRefresh...: 三目运算符
),
);
}
/// RefreshIndicator 发生下拉操作时, 回调该方法
/// 该方啊是一个异步方法 , 在方法体前添加 async 关键字