ui调整
This commit is contained in:
@@ -78,12 +78,12 @@ class SitePage extends GetView<SiteController> {
|
||||
Column(
|
||||
children: [
|
||||
_buildSearchView(),
|
||||
SizedBox(height: 15.h),
|
||||
controller.hasReservationData
|
||||
? _buildReservationListView()
|
||||
: _buildEmptyReservationView(),
|
||||
],
|
||||
),
|
||||
|
||||
SizedBox(height: 35.h),
|
||||
//第三部分
|
||||
Container(
|
||||
@@ -136,7 +136,7 @@ class SitePage extends GetView<SiteController> {
|
||||
],
|
||||
),
|
||||
),
|
||||
SizedBox(height: 75.h),
|
||||
SizedBox(height: 105.h),
|
||||
],
|
||||
);
|
||||
}
|
||||
@@ -391,8 +391,9 @@ class SitePage extends GetView<SiteController> {
|
||||
|
||||
/// 构建“有预约数据”的列表视图
|
||||
Widget _buildReservationListView() {
|
||||
return ListView.separated(
|
||||
return ListView.builder(
|
||||
shrinkWrap: true,
|
||||
padding: EdgeInsets.zero,
|
||||
physics: const NeverScrollableScrollPhysics(),
|
||||
// 因为外层已有滚动,这里禁用内部滚动
|
||||
itemCount: controller.reservationList.length,
|
||||
@@ -401,7 +402,6 @@ class SitePage extends GetView<SiteController> {
|
||||
// 调用新的方法来构建每一项
|
||||
return _buildReservationItem(index, item);
|
||||
},
|
||||
separatorBuilder: (context, index) => const SizedBox(height: 0), // 列表项之间的间距
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user