I want to use Multi_Image_Picker in Flutter to select two photos and then mark them as "Selected" so that when I open the Photo Library again to select another photo, I can see the previously selected photo. is. What kind of code do you need?
Thank you for your guidance.
My code is below.
resultList= await MultiImagePicker.pickImages (
maxImages: 2,
selectedAssets: images,
enableCamera: true,
cupertinoOptions: CupertinoOptions (
selectionFillColor: "# ff11ab",
selectionTextColor: "# ffffff",
);
-
Answer # 1
-
Answer # 2
Can you tell me the version of Multi_Image_Picker, now from the official page, Multi_Image_Picker is no longer supported.
The following packages were recommended on its official page:I don't think it will be difficult to realize the function you are asking.
I won't give you specific code, but just the idea-
Store information on your device using the
- shared_preferences package. (For example, photo filenames and IDs)
- Save information on device when closing page
- When you open the page again, read the information from the device and select the photo
and above
I am using 4.7.15 of multi_image_picker. It was the same even if I used 5.0.2 of multi_image_picker2 below. pub.dev/packages/multi_image_picker2 Wechat_assets_picker pointed out and get device information. Thank you very much.
Kaz2021-12-16 18:32:00
- python - you may need to restart the kernel to use updated packages error
- dart - flutter: the instance member'stars' can't be accessed in an initializer error
- php - coincheck api authentication doesn't work
- php - i would like to introduce the coincheck api so that i can make payments with bitcoin on my ec site
- [php] i want to get account information using coincheck api
- the emulator process for avd pixel_2_api_29 was killed occurred when the android studio emulator was started, so i would like to
- javascript - how to check if an element exists in puppeteer
- sh - 'apt-get' is not recognized as an internal or external command, operable program or batch file
- i want to check the type of a shell script variable
- i want to call a child component method from a parent in vuejs
Can you tell me the version of Multi_Image_Picker, now from the official page, Multi_Image_Picker is no longer supported.
The following packages were recommended on its official page:
I don't think it will be difficult to realize the function you are asking.
I won't give you specific code, but just the idea
Store information on your device using the- shared_preferences package. (For example, photo filenames and IDs)
- Save information on device when closing page
- When you open the page again, read the information from the device and select the photo
and above
I am using 4.7.15 of multi_image_picker. It was the same even if I used 5.0.2 of multi_image_picker2 below. pub.dev/packages/multi_image_picker2 Wechat_assets_picker pointed out and get device information. Thank you very much.
Kaz2021-12-16 18:31:59