You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
328 B
13 lines
328 B
part of ansu_ui;
|
|
|
|
///获取相机文件
|
|
Future<File> camFile({double maxHeight = 3000,double maxWidth = 3000}) async {
|
|
var pickedFile = await ImagePicker().getImage(
|
|
source: ImageSource.camera,
|
|
maxHeight: maxHeight,
|
|
maxWidth: maxWidth,
|
|
);
|
|
if (pickedFile == null) return null;
|
|
return File(pickedFile.path);
|
|
}
|