无数据修改

This commit is contained in:
machuanyu 2024-07-03 14:50:17 +08:00
parent b92dca04c0
commit bb7dcfb0ef
1 changed files with 2 additions and 2 deletions

View File

@ -115,7 +115,7 @@ class _HomePageState extends State<HomePage> with AutomaticKeepAliveClientMixin
Obx(() { Obx(() {
return Container( return Container(
padding: EdgeInsets.symmetric(horizontal: 12.w), padding: EdgeInsets.symmetric(horizontal: 12.w),
child: Column( child: state.workList.isNotEmpty?Column(
children: List.generate(state.workList.length, (index) { children: List.generate(state.workList.length, (index) {
Items item = state.workList[index]; Items item = state.workList[index];
return InkWell( return InkWell(
@ -242,7 +242,7 @@ class _HomePageState extends State<HomePage> with AutomaticKeepAliveClientMixin
), ),
); );
}), }),
), ):const MyEmptyWidget(),
); );
}), }),
], ],