多语言后端数据

This commit is contained in:
czz
2025-08-01 22:25:47 +08:00
parent 12a53ac36c
commit a199606f80
52 changed files with 1736 additions and 1142 deletions

View File

@@ -98,7 +98,7 @@ class RepairHistoryListPage extends GetView<RepairInfoController> {
),
child: Padding(
padding: EdgeInsetsDirectional.fromSTEB(
34.rpx, 10, 0, 0),
34.rpx, 10, 0, 35.rpx),
child: Container(
decoration: const BoxDecoration(),
child: Column(
@@ -230,23 +230,23 @@ class RepairHistoryListPage extends GetView<RepairInfoController> {
Padding(
padding:
const EdgeInsetsDirectional
.fromSTEB(0, 10, 0, 24),
.fromSTEB(0, 10, 0, 0),
child: Container(
width:
MediaQuery.sizeOf(context)
.width,
height:
MediaQuery.sizeOf(context)
.height *
0.15,
// height:
// MediaQuery.sizeOf(context)
// .height *
// 0.15,
constraints:
const BoxConstraints(
// minHeight: 140,
),
child: Container(
width: 100,
height: 100,
width: 90,
height: 90,
child: ListView(
shrinkWrap: true,
scrollDirection:
@@ -333,7 +333,8 @@ class RepairHistoryListPage extends GetView<RepairInfoController> {
thickness: 1, // 线条厚度
),
endChild: Padding(
padding: const EdgeInsets.all(8.0),
padding: EdgeInsets.only(
left: 10.rpx, top: 2.rpx),
child: RepairStatusWidget(
data: data['flow'][index]),
),
@@ -649,24 +650,36 @@ class RepairHistoryListPage extends GetView<RepairInfoController> {
});
}
// List<Widget> getImage(List<dynamic> imgurl) {
// List<Widget> images = [];
// ApplyRepairController controller = Get.find();
// imgurl!.forEach((element) async {
// images.add(
// Container(
// child: ImgPreviewWidget(
// imgUrl: element,
// index: imgurl!.indexOf(element),
// applyRepairController: controller,
// isDel: false,
// ),
// ),
// );
// });
// return images;
// }
List<Widget> getImage(List<dynamic> imgurl) {
List<Widget> images = [];
ApplyRepairController controller = Get.find();
imgurl!.forEach((element) async {
images.add(
Container(
// height: 10,
// width: 10,
child: ImgPreviewWidget(
imgUrl: element,
index: imgurl!.indexOf(element),
applyRepairController: controller,
isDel: false,
),
return imgurl.map<Widget>((element) {
return SizedBox(
width: 90,
height: 90,
child: ImgPreviewWidget(
imgUrl: element,
index: imgurl.indexOf(element),
applyRepairController: controller,
isDel: false,
),
);
});
return images;
}).toList();
}
}