|
|
|
|
@ -1,3 +1,4 @@
|
|
|
|
|
import 'package:easy_refresh/easy_refresh.dart'; |
|
|
|
|
import 'package:flutter/material.dart'; |
|
|
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart'; |
|
|
|
|
import 'package:get/get.dart'; |
|
|
|
|
@ -181,7 +182,7 @@ class EnterpriseListPage extends GetView<EnterpriseListController> {
|
|
|
|
|
/// 构建企业列表 |
|
|
|
|
Widget _buildEnterpriseList() { |
|
|
|
|
// 使用下拉刷新包裹列表 |
|
|
|
|
return RefreshIndicator( |
|
|
|
|
return EasyRefresh( |
|
|
|
|
onRefresh: () async => controller.loadAndSyncEnterprises(), |
|
|
|
|
child: Obx(() { |
|
|
|
|
// 3. 在加载中状态,直接显示加载动画(此时不可滚动是合理的) |
|
|
|
|
@ -205,16 +206,31 @@ class EnterpriseListPage extends GetView<EnterpriseListController> {
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
|
children: [ |
|
|
|
|
Icon( |
|
|
|
|
Icons.folder_off_outlined, |
|
|
|
|
Icons.search_off, |
|
|
|
|
size: 60.sp, |
|
|
|
|
color: Colors.grey[400], |
|
|
|
|
), |
|
|
|
|
SizedBox(height: 16.h), |
|
|
|
|
Text( |
|
|
|
|
'没有找到相关企业', |
|
|
|
|
'未找到相关企业', |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 16.sp, |
|
|
|
|
color: Colors.grey[600], |
|
|
|
|
fontSize: 20.sp, |
|
|
|
|
color: Colors.black87, |
|
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
|
), |
|
|
|
|
maxLines: 3, |
|
|
|
|
textAlign: TextAlign.center, |
|
|
|
|
), |
|
|
|
|
Padding( |
|
|
|
|
padding: EdgeInsetsGeometry.all(16.w), |
|
|
|
|
child: Text( |
|
|
|
|
'尝试调整您的筛选条件,或下拉页面以同步最新数据', |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 18.sp, |
|
|
|
|
color: Colors.grey[600], |
|
|
|
|
), |
|
|
|
|
maxLines: 3, |
|
|
|
|
textAlign: TextAlign.center, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
|