Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用图像选择器插件进行颤动。每当我从图库中选择图像时,插件都会为其分配一个随机名称,以“image_picker”开头。如何获取图像文件的原始名称?
您可以使用下面提到的方法。它对我有用
var video = (await _picker.getVideo(source: ImageSource.gallery))!; var videoName = video.path.split('/').last;