Compare commits

..

No commits in common. "3bc27f6e888d148fb096c74821d04551124df4b2" and "e8bb886e93e150d06564e7f9fa2207dc48b3f339" have entirely different histories.

2 changed files with 3 additions and 14 deletions

View File

@ -282,11 +282,7 @@ class _HazardRegistrationPageState extends State<HazardRegistrationPage> {
mediaType: MediaType.video, mediaType: MediaType.video,
initialMediaPaths: _yinHuanVido.map((item) => item.path).toList(), initialMediaPaths: _yinHuanVido.map((item) => item.path).toList(),
onMediaAdded: (value) { onMediaAdded: (value) {
try{
_yinHuanVido.add(ImgData(path: value, id: '')); _yinHuanVido.add(ImgData(path: value, id: ''));
}catch(e){
print("获取视频错误:${e.toString()}");
}
}, },
onMediaRemoved: (value){ onMediaRemoved: (value){
_yinHuanVido.remove(value); _yinHuanVido.remove(value);

View File

@ -162,15 +162,8 @@ class _QuickReportPageState extends State<QuickReportPage> {
maxCount: 1, maxCount: 1,
mediaType: MediaType.video, mediaType: MediaType.video,
onChanged: (List<File> files) { onChanged: (List<File> files) {
// _yinHuanVido=files[0].path;
},
onMediaAdded:(value) {
// files // files
try{ _yinHuanVido=files[0].path;
_yinHuanVido=value;
}catch(e){
print("获取视频失败:${e.toString()}");
}
}, },
onAiIdentify: () { onAiIdentify: () {
// AI // AI