补充提交
This commit is contained in:
parent
db6d3e3d1e
commit
872ae68c1c
@ -31,38 +31,6 @@ class _KeyOperationRecordPageState extends State<KeyOperationRecordPage> {
|
||||
body: Obx(() => state.dataList.value.isEmpty
|
||||
? NoData()
|
||||
: _buildMainUI(state.dataList.value)),
|
||||
/*
|
||||
FutureBuilder<List<KeyRecordDataItem>>(
|
||||
future: logic.mockNetworkDataRequest(),
|
||||
builder: (BuildContext context,
|
||||
AsyncSnapshot<List<KeyRecordDataItem>> snapshot) {
|
||||
//请求结束
|
||||
if (snapshot.connectionState == ConnectionState.done) {
|
||||
if (snapshot.hasError) {
|
||||
//请求失败
|
||||
return const Text('请求失败');
|
||||
} else {
|
||||
//请求成功
|
||||
final List<KeyRecordDataItem> itemDataList = snapshot.data!;
|
||||
|
||||
return Column(
|
||||
children: [
|
||||
Expanded(child: _buildMainUI(itemDataList)),
|
||||
],
|
||||
);
|
||||
}
|
||||
} else {
|
||||
//请求未结束 显示loading
|
||||
return Center(
|
||||
child: Text(
|
||||
'暂无数据',
|
||||
style:
|
||||
TextStyle(color: AppColors.blackColor, fontSize: 24.sp),
|
||||
),
|
||||
);
|
||||
}
|
||||
}),
|
||||
*/
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@ -11,7 +11,6 @@ class KeyOperationRecordState {
|
||||
|
||||
KeyOperationRecordState() {
|
||||
Map map = Get.arguments;
|
||||
// dynamic obj = ModalRoute.of(context)?.settings.arguments;
|
||||
if ((map["keyId"] != null)) {
|
||||
keyId.value = map["keyId"];
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user