车辆图片动态
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user