This commit is contained in:
2026-02-10 16:35:02 +08:00
parent 5364612a6f
commit 4491aa9b91
6 changed files with 252 additions and 407 deletions

View File

@@ -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), // 列表项之间的间距
);
}