车辆图片动态

This commit is contained in:
2026-02-05 13:54:10 +08:00
parent 7d9b4d99e8
commit 211d0225e4
3 changed files with 20 additions and 2 deletions

View File

@@ -148,9 +148,11 @@ class ReservationPage extends GetView<C_ReservationController> {
),
IconButton(
onPressed: () async {
controller.stopAutoRefresh();
var scanResult = await Get.to(() => const MessagePage());
if (scanResult == null) {
controller.msgNotice();
controller.startAutoRefresh();
}
},
icon: Badge(
@@ -237,7 +239,20 @@ class ReservationPage extends GetView<C_ReservationController> {
padding: const EdgeInsets.all(16.0),
child: Row(
children: [
Expanded(flex: 4, child: LoginUtil.getAssImg('ic_car_bg@2x')),
Expanded(
flex: 4,
child: Image.network(
controller.modeImage,
fit: BoxFit.cover,
loadingBuilder: (context, child, loadingProgress) {
if (loadingProgress == null) return child;
return Center(child: CircularProgressIndicator());
},
errorBuilder: (context, error, stackTrace) {
return Center(child: LoginUtil.getAssImg('ic_car_select@2x'));
},
),
),
const SizedBox(width: 16),
Expanded(
flex: 6,