图像选择器:^ 0.6.7 + 4 在通道plugins.flutter.io/image_picker
上找不到方法pickImage的实现。答案 0 :(得分:0)
sobhan ghosh此软件包已更新pickImage
,并且pickVideo
API现在是getImage
和getVideo
。
有关更多信息,请访问软件包image_picker链接
答案 1 :(得分:0)
尝试一下:
Future getImage() async{
var photo = await ImagePicker.pickImage(source: ImageSource.camera);//".gallery" if you want to take image from gallery
setState(() {
_image = photo;//_image is the image file where your image is going to store
});
}
这可能对您有帮助