image_gallery_saver | flutter中用于保存图片到相册的Plugin | Computer Vision library
kandi X-RAY | image_gallery_saver Summary
kandi X-RAY | image_gallery_saver Summary
We use the image_picker plugin to select images from the Android and iOS image library, but it can't save images to the gallery. This plugin can provide this feature.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of image_gallery_saver
image_gallery_saver Key Features
image_gallery_saver Examples and Code Snippets
Community Discussions
Trending Discussions on image_gallery_saver
QUESTION
I wanted to test the app for iOS and I installed Xcode.
The problem is that I have a few buildtime warnings and 2 bugs only on iOS. First, the camera is not opening and I'm receiving this error without any stack trace as you see in the picture below. And the second problem is that images added in shared preferences are not displaying when I rebuild the project.
I see that some functions are not compatible with the deployment target, 12.0 in my case. I don't know Swift at all. I added in ios/Runner/Info.plist these settings:
...ANSWER
Answered 2022-Mar-09 at 03:55Warnings:
These are just warnings, you can ignore them. Project will run.
( You can work on those warnings)
Camera issue:
is because simulator doesn't have camera.
QUESTION
I'm facing an error that all the plugins that I implemented after a certain date won't work. I tried all the methods(reinstall, flutter clean, rebuild...) on the internet but none of them work, so maybe I'm in a very bizarre situation.
This is my yaml file:
...ANSWER
Answered 2021-Dec-07 at 16:11Well, finally I figured out this problem, I'm not sure if I'm in a very particular situation, but anyway here is the solution:
each time I build the application, even though the plugins will be installed properly, but the path of the plugins are not imported properly in GeneratedPluginRegistrant.m
. So after importing them manually, it works!
ps: the path of the plugins: /your_project_folder/ios/Pods/Target Support Files
an example on how to add plugins manually in GeneratedPluginRegistrant.m
:
QUESTION
Just about any mobile app framework seems to have the ability to download files to the "Downloads" directory, except for Flutter. Or is it just me?
Since Android SDK 29 it appears Flutter (Android) has taken the direction of only allowing files to be downloaded to the scoped application directory or the application's temporary cache directory. I could be totally wrong on this, which is why I am posting on SO, in the hopes I am.
You can download on Android, but the problem is you would have to write a tutorial for a user to try to find anything you downloaded because of where you can download files in Flutter. Either to the inaccessible except by app applications directory or the impossible to find application temp cache directory.
- First question, why is there not a simple way to gain permission and download files on Android to the Downloads or media directory? Or better yet a dialog where the user can pick where they want to download files. I get security but Slack app does it somehow.
On Slack's app I can download a file and it will save to Downloads. Not a big deal.
There is lots of advice on SO about flutter packages that are outdated:
- ext_storage is outdated and even if you could get the downloads directory path you couldn't write to it just using Flutter/Dart.
- image_gallery_saver appears to have found a work around to this limitation, but it only works for certain file types. E.g. it won't work with audio files for some reason.
- downloads_path_provider same issue as bullet 1 and it is no longer maintained anyway.
- path_provider has a
getExternalStorageDirectory()
function. You'd assume it would return external storage options on Android, but all it currently returns are the application document directory (not accessible to users outside the app) and the temp application cache directory, which is impossible for a user to find without a tutorial. - Just reference the path to emulated storage
/storage/emulated/0/Download
does not work Oct. 30, 2021. No permission to write even if you have been grantedstorage
permission.
Flutter needs to be able to download files on Android to the Downloads or media directories. There are plenty of legit reasons that you might download a file from a Flutter app that needs to be accessible in external storage that is public and can easily be found through Android's Files app.
Anyway, what options does a Flutter dev have here Oct. 2021 to save files on Android to the Downloads directory??? Btw, just a default on iOS.
Right now, it appears on Android the best option for Flutter devs is to use a something like url_launcher and craft a url that forces a download, which will in turn access the browser's download manager. Is the best scenario for Android right now?
Finally, I love Flutter, but this particular area seems to be needing some love so Flutter devs don't fall behind other frameworks out there.
...ANSWER
Answered 2021-Oct-30 at 19:52For Oct 2021 Flutter it turns out there is a great solution for this for Android. The missing package I needed was the flutter_file_dialog package, which is using Kotlin to add the needed programming to save files wherever the Flutter app user wants to on their Android device, including Downloads.
Packages I used:
- path_provider
- flutter_file_dialog
- dio
- permission_handler
- flash (alerting library for when device storage permission is blocked)
For android the flow is:
- Make sure you have storage permission first.
- I'm using GCS and Firebase so I create short lived secure url to private content. Code not included.
- Using path_provider
getTemporaryDirectory()
get the application's scoped cache directory path. - With Dio save the short lived url to temp cache
- Then finally, using flutter_file_dialog open a save to dialog and allow the user where they would like to save their downloaded file to.
Code snippets to see flow:
QUESTION
After saving the image in gallery using image_gallery_saver and permission_handler This is the result
...ANSWER
Answered 2021-Sep-30 at 05:45If you want the user to pick it from gallery, you can use image_picker but if you want to open it yourself from the path use:
QUESTION
error showing : I/flutter (24734): {filePath: null, errorMessage: java.io.FileNotFoundException: /storage/emulated/0/Pictures/1622347717438.jpg: open failed: EACCES (Permission denied), isSuccess: false}
problem : not saving screenshot of widget in gallery.
here is full code :
...ANSWER
Answered 2021-May-30 at 04:58If you are running it on Android, add WRITE_EXTERNAL_STORAGE permission in \android\app\src\main\AndroidManifest.xml
Example:
QUESTION
During the submission to Apple of the application I was notified of the following ITMS-90683: Missing Purpose String in Info.plist.
...ANSWER
Answered 2021-Mar-19 at 05:41Try
QUESTION
I want to upload my flutter app build to app store connect and test it through testflight.
But the App Store Connect sent me a mail that my app has problem.
The Two Problem:
...ANSWER
Answered 2021-Apr-01 at 05:28QUESTION
I recently moved my projects to my M1 MacBook Pro. But I get the following error when running flutter run
on iPhone 12 Pro Max Simulator.
ANSWER
Answered 2021-Jan-19 at 05:11You need to install ffi
dependency manually. Here is the same issue on GitHub: https://github.com/flutter/flutter/issues/70796. Also, if you have troubles with build or run you app on M1, visit to Wiki page on GitHub with usage guide and this issue for tracking current support phase for new macs.
QUESTION
I've been dealing with many problems for a few days. I updated the places I need to update in the pod file. I tried too mant methods to fix my errors. I try to delete my podfile update my podfile, i tried to pod update Firebase/Firestore.
Then i tried to this method to run my app : Run this commands
...ANSWER
Answered 2021-Feb-05 at 11:15I faced the same issue, except my iOS deployment target was set to 9.
Navigate to the folder when you have your Runner XCode project.
Run this command
QUESTION
My save image method:
...ANSWER
Answered 2021-Jan-25 at 07:03Try using FileImage
Example:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install image_gallery_saver
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page