flutter_photo
flutter_photo copied to clipboard
android 弹出之后,一直转圈圈??
android 弹出之后,一直转圈圈?? iOS是好的
bug
0.4.5
加载中,点击预览还是爆红
这是一个bug.希望尽快修复. 现阶段只能降级处理 photo: ^0.3.4+1 这个版本是好的 https://github.com/CaiJingLong/flutter_photo/blob/master/CHANGELOG.md
environment ?
use flutter doctor -v
I need your flutter version , android os version, compileSdkVersion
and targetSdkVersion
.
I think you should use the PhotoPicker.pickAsset
to use the api.
Of course I also fixed this usage in #89 .
Update version to 0.4.5+1.
您好.我测试了.还是一样啊 0.45.1 测试机:HIsense L1343.6.01.02.00
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.
flutter version:
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(() {});
} `
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.
这个么?
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.
the same problem happens in example project. please check, thanks!
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 .
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.
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 In fact, my own iPhone / Android is currently normal.
@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