flutter_photo icon indicating copy to clipboard operation
flutter_photo copied to clipboard

android 弹出之后,一直转圈圈??

Open shaoting0730 opened this issue 4 years ago • 19 comments

android 弹出之后,一直转圈圈?? iOS是好的

bug

shaoting0730 avatar Dec 24 '19 08:12 shaoting0730

0.4.5 image

shaoting0730 avatar Dec 25 '19 01:12 shaoting0730

加载中,点击预览还是爆红

shaoting0730 avatar Dec 25 '19 03:12 shaoting0730

这是一个bug.希望尽快修复. 现阶段只能降级处理 photo: ^0.3.4+1 这个版本是好的 https://github.com/CaiJingLong/flutter_photo/blob/master/CHANGELOG.md

shaoting0730 avatar Dec 25 '19 04:12 shaoting0730

environment ?

use flutter doctor -v

I need your flutter version , android os version, compileSdkVersion and targetSdkVersion.

CaiJingLong avatar Dec 26 '19 05:12 CaiJingLong

image

shaoting0730 avatar Dec 26 '19 05:12 shaoting0730

I think you should use the PhotoPicker.pickAsset to use the api. Of course I also fixed this usage in #89 .

CaiJingLong avatar Dec 26 '19 06:12 CaiJingLong

Update version to 0.4.5+1.

CaiJingLong avatar Dec 26 '19 06:12 CaiJingLong

您好.我测试了.还是一样啊 0.45.1 测试机:HIsense L1343.6.01.02.00 image

shaoting0730 avatar Dec 26 '19 07:12 shaoting0730

Look like same of #67 .

If this doesn't work out in the end, can you give me a reproducible Example? It can be a repository or a zip archive. And indicate flutter version.

CaiJingLong avatar Dec 26 '19 13:12 CaiJingLong

flutter version:

image

version: 1.0.0+1 environment: sdk: ">=2.1.0 <3.0.0" photo: 0.4.5 + 1

code:
GestureDetector( child: Text('从相册选择'), onTap: () async { var assetPathList = await PhotoManager.getImageAsset(); _pickAsset(PickType.onlyImage, pathList: assetPathList); }, ), `

void _pickAsset(PickType type, {List<AssetPathEntity> pathList}) async { Navigator.of(context).pop();

List<AssetEntity> imgList = await PhotoPicker.pickAsset(
  // BuildContext required
  context: context,

  /// The following are optional parameters.
  themeColor: Colors.black,
  // the title color and bottom color

  textColor: Colors.white,
  // text color
  padding: 1.0,
  // item padding
  dividerColor: Colors.grey,
  // divider color
  disableColor: Colors.grey.shade300,
  // the check box disable color
  itemRadio: 0.88,
  // the content item radio
  maxSelected: 9 - _imgControList.length,
  // max picker image count
  // provider: I18nProvider.english,
  provider: I18nProvider.chinese,
  // i18n provider ,default is chinese. , you can custom I18nProvider or use ENProvider()
  rowCount: 3,
  // item row count

  thumbSize: 150,
  // preview thumb size , default is 64
  sortDelegate: SortDelegate.common,
  // default is common ,or you make custom delegate to sort your gallery
  checkBoxBuilderDelegate: DefaultCheckBoxBuilderDelegate(
    activeColor: Colors.white,
    unselectedColor: Colors.white,

// checkColor: Colors.green, ), // default is DefaultCheckBoxBuilderDelegate ,or you make custom delegate to create checkbox

  // if you want to build custom loading widget,extends LoadingDelegate, [see example/lib/main.dart]

  badgeDelegate: const DurationBadgeDelegate(),
  // badgeDelegate to show badge widget

  pickType: type,

  photoPathList: pathList,
);

if (imgList == null) {
  currentSelected = "not select item";
} else {
  List<String> r = []; // img 真实路径数组

  for (var e in imgList) {
    setState(() {
      _showLoadingTag = true;
    });
    var file = await e.file;
    _uploadImg(EditableActivityItem(thumbnail: file.absolute.path));
  }
}

setState(() {});

} `

shaoting0730 avatar Dec 26 '19 13:12 shaoting0730

Not just code. The problem come from your gradle config and environment or android manifest. I need runnable project to reproduce and try to fix it.

CaiJingLong avatar Dec 27 '19 01:12 CaiJingLong

这个么? image image

shaoting0730 avatar Dec 27 '19 07:12 shaoting0730

I need a project, I can't reproduce you problem, so you need commit a whole example to help me locate problem. A gist can't reproduce your problem.

CaiJingLong avatar Dec 30 '19 00:12 CaiJingLong

the same problem happens in example project. please check, thanks!

wys619 avatar Dec 30 '19 10:12 wys619

I need a project, I can't reproduce you problem, so you need commit a whole example to help me locate problem. A gist can't reproduce your problem.

please run ios example project on your device and go to select photo(s) page, then press home button, then go back to example app again, you will find there is no photo showing anymore, just a loading item .

wys619 avatar Dec 30 '19 11:12 wys619

I need a project, I can't reproduce you problem, so you need commit a whole example to help me locate problem. A gist can't reproduce your problem.

please run ios example project on your device and go to select photo(s) page, then press home button, then go back to example app again, you will find there is no photo showing anymore, just a loading item .

The reporter's problem is not the same. It seems that the problem is glide on android. And your problem is from ios, although it may look the same,but its should not be the same problem.

CaiJingLong avatar Dec 31 '19 01:12 CaiJingLong

I need a project, I can't reproduce you problem, so you need commit a whole example to help me locate problem. A gist can't reproduce your problem.

please run ios example project on your device and go to select photo(s) page, then press home button, then go back to example app again, you will find there is no photo showing anymore, just a loading item .

The reporter's problem is not the same. It seems that the problem is glide on android. And your problem is from ios, although it may look the same,but its should not be the same problem.

thanks for reply, this project is amazing and i hope problems from both android and ios will be fixed as soon as possible, thank you very much for your kindness ! 😁

wys619 avatar Dec 31 '19 03:12 wys619

@wys619 In fact, my own iPhone / Android is currently normal.

CaiJingLong avatar Dec 31 '19 03:12 CaiJingLong

@wys619 In fact, my own iPhone / Android is currently normal.

problem happens on my devices: iPhone8 plus running iOS13.3 and an android 8.0 device

wys619 avatar Dec 31 '19 03:12 wys619