补充提交

This commit is contained in:
Daisy 2024-02-28 15:32:31 +08:00
parent db6d3e3d1e
commit 872ae68c1c
2 changed files with 0 additions and 33 deletions

View File

@ -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),
),
);
}
}),
*/
);
}

View File

@ -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"];
}