地址接口的视线
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import 'package:ef/ef.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:vbvs_app/controller/repair/repair_controller.dart';
|
||||
|
||||
import '../../controller/mh_controller/apply_repair_controller.dart';
|
||||
|
||||
@@ -7,12 +8,13 @@ class ImgPreviewDefaultWidget extends GetView {
|
||||
ApplyRepairController applyRepairController;
|
||||
|
||||
ImgPreviewDefaultWidget({required this.applyRepairController}) {}
|
||||
|
||||
RepairController repairController = Get.find();
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return InkWell(
|
||||
// onTap: applyRepairController.uploadImg,
|
||||
onTap: () async {},
|
||||
onTap: () async {
|
||||
await applyRepairController.uploadImg();
|
||||
},
|
||||
child: Container(
|
||||
width: MediaQuery.sizeOf(context).width * 0.25,
|
||||
height: MediaQuery.sizeOf(context).height * 0.15,
|
||||
|
||||
@@ -41,9 +41,9 @@ class ImgPreviewWidget extends GetView {
|
||||
child: ClipRRect(
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
child: Image.network(
|
||||
'https://picsum.photos/seed/73/600',
|
||||
// applyRepairController.getPublicUrl(imgUrl),
|
||||
imgUrl,
|
||||
|
||||
// applyRepairController.getPublicUrl(imgUrl),
|
||||
width: 300,
|
||||
height: 200,
|
||||
fit: BoxFit.cover,
|
||||
|
||||
Reference in New Issue
Block a user