Getting the original File/Image path after picking it using Flutter - flutter

I am developing a photo vault using Flutter. I need to list all the images in the mobile storage, and when the user picks one or more images. I need to move that image(s) into App Private. So that no other app can see it. So for moving the file, I need the location/path of the picked image(s). which no plugin on earth is providing.
Below is the list of plugins I tried. Each one of them provides the path of the image copied to the app private directory. No the original one
file_picker 2.1.6
image_picker 0.6.7+22
multi_image_picker 4.7.15
It would be a big help if you could suggestion some solution for it.
Thank You

Related

Flutter: non-asset local image

I'd like to include images in my Flutter application which are not asset images.
Let me clarify a bit. I am working with an embedded Unity application inside the Flutter app. I can communicate bidirectionally and part of the communication is sending a file location from Flutter to Unity, such that the Unity app can read that image and do something with it (e.g. a texture). But since assets are not directly accessible by location, I cannot give the path to the Unity part of the application.
So would there be a way to include images in the app and reference them by old school path?

How to upload image in flutter Integration Test?

I have one image file that I need to upload it in Integration Test Flutter. I am not getting any help from Flutter : Integration Test documentation
I have created one folder
test_upload_files and added .png file in it and wrote the object identification of Upload Feature
then I have fetched the path of the file and tried to upload it but there are no predefined methods to upload.
I got stuck here, how to automate this Upload Functionality ?
and there is one more catch, need to enable location or camera which is from Native app, is there any solution to enable these services by default, like how we do it in Web applications using Browser Desired Capabilities?
By using flutter code can we interact with Native apps of apk and ios ?
[1]: https://i.stack.imgur.com/wvBLr.png
See the Patrol project – it lets you interact with native permission dialogs, and basically everything, from within your Flutter integration test written in Dart.
This issue demonstrates how you'd upload a single file on Android.
Disclaimer: I'm the main developer of Patrol.

Camera plugin flutter web

hello I would like to know if there is a camera plugin for flutter web in order to take a photo and store it in a temporary path to then upload it to firestorage
If I understood correctly and i hope you already tried these packages image_picker & image_picker_web
Check these resources, it seems pretty same to your scenario;
https://github.com/flutter/photobooth
https://medium.com/flutter/how-its-made-i-o-photo-booth-3b8355d35883
Reply back if this is helpful to sort out the problem or share with us how did you solved it.

If I include asset images from my PC in my flutter app and publish it on the Play Store, will the images appear in the app?

I have included images from my PC instead of web images, do I need to use web images instead ?
You can include images from your PC too! But make sure you maintain a proper assets folder and update in pubspec.yaml such that you can use it in your app.
Refer: https://flutter.dev/docs/development/ui/assets-and-images

How can I delete assets specified in pubspec.yaml in flutter?

In my flutter app, I need an asset just for the first start of the app and want to delete it afterwards. Is that possible?
I'm primarily using flutter for Android, so a platform specific answer would also be appreciated, if it's not possible to do with Dart Code.
It's impossible currently.
The rootBundle contains the resources that were packaged with the
application when it was built. To add resources to the rootBundle for
your application, add them to the assets subsection of the flutter
section of your application's pubspec.yaml manifest.
It's packaged with the app on build time, and it can't be modified.
Why don't you enable to read your assets anytime and handle the possibility of displaying in your code by condition.