|
|
@ -286,6 +286,7 @@ class _ChatDetailsPage extends State<ChatDetailsPage> |
|
|
|
///图片/视频选择 |
|
|
|
///图片/视频选择 |
|
|
|
Future getImageOrVideo(GalleryMode galleryMode) async { |
|
|
|
Future getImageOrVideo(GalleryMode galleryMode) async { |
|
|
|
if (selectCount == 0) return; |
|
|
|
if (selectCount == 0) return; |
|
|
|
|
|
|
|
mediaPaths.clear(); |
|
|
|
List<Media> medias = await ImagePickers.pickerPaths( |
|
|
|
List<Media> medias = await ImagePickers.pickerPaths( |
|
|
|
galleryMode: galleryMode, |
|
|
|
galleryMode: galleryMode, |
|
|
|
selectCount: (galleryMode == GalleryMode.video) ? 1 : selectCount, |
|
|
|
selectCount: (galleryMode == GalleryMode.video) ? 1 : selectCount, |
|
|
|