|
|
@@ -255,6 +255,9 @@ class AnalysisController extends BaseController {
|
|
|
// 开启图库
|
|
|
Future<void> openGallery() async {
|
|
|
var status = await Permission.photos.status;
|
|
|
+ if(Platform.isAndroid){
|
|
|
+ status = await Permission.storage.request();
|
|
|
+ }
|
|
|
if (status == PermissionStatus.granted) {
|
|
|
List<AssetEntity> assets = <AssetEntity>[];
|
|
|
for (var asset in imageList) {
|