You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using latest version wechat_assets_picker: ^9.0.0
when I select the ' check button ' in photo grid picker every things working as expected , but when I press on the photo item without ' check icon ' I got other photo rather than I actually pressed
note : i'm using change profile photo logic , so when user pick only one image I pass this first index photo to other class to crop it.
flutter doctor:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.19.2, on macOS 14.3.1 23D60 darwin-x64, locale en-EG)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.3)
[✓] VS Code (version 1.86.2)
[✓] Connected device (4 available)
[✓] Network resources
• No issues found!
code :
Future<dynamic> pickMultipleImage(context) async {
// List<XFile>? pickedFile;try {
finalList<AssetEntity>? result =awaitAssetPicker.pickAssets(
context,
pickerConfig:constAssetPickerConfig(
maxAssets:1,
// gridThumbSize: 200,
requestType:RequestType.image,
specialPickerType:SpecialPickerType.noPreview,
// selectedAssets: _images,
),
);
if ((result ?? []).isNotEmpty) {
// here the result list has only one image selected is different from I saw in preview when I didn't hit check button . CroppedFile? file =awaitImageCropper().cropImage(
cropStyle:CropStyle.circle,
uiSettings: [
AndroidUiSettings(
showCropGrid:false,
hideBottomControls:false,
toolbarTitle:"crop_image".tr,
toolbarColor:Colors.white,
toolbarWidgetColor:Colors.black,
cropFrameColor:Colors.white,
cropGridColor:Colors.white,
statusBarColor:Colors.black,
initAspectRatio:CropAspectRatioPreset.original,
lockAspectRatio:false,
),
IOSUiSettings(aspectRatioLockEnabled:true)
],
sourcePath: (await (result!.first.file))!.path);
if (file !=null) {
selectedProfileImagePath.value = file.path;
isProfilePhotoChosen.value =true;
}
}
// return;
} catch (e) {
print(e);
}
}
The text was updated successfully, but these errors were encountered:
Hi ,
using latest version wechat_assets_picker: ^9.0.0
when I select the ' check button ' in photo grid picker every things working as expected , but when I press on the photo item without ' check icon ' I got other photo rather than I actually pressed
see this screencast video : https://drive.google.com/file/d/1cl7a28hXgcCD3StAIvpHlwux7b-4oUKb/view?usp=sharing
note : i'm using change profile photo logic , so when user pick only one image I pass this first index photo to other class to crop it.
flutter doctor:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.19.2, on macOS 14.3.1 23D60 darwin-x64, locale en-EG)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.3)
[✓] VS Code (version 1.86.2)
[✓] Connected device (4 available)
[✓] Network resources
• No issues found!
code :
The text was updated successfully, but these errors were encountered: