How to load files from internal storage Local Directories in Flutter? - flutter

I need help retrieving local image and video directories from internal storage for a gallery module in my Flutter app. I have an 'abc' folder in internal storage containing subfolders for images and videos, which I want to display in separate tabs with their file information (size and date) and thumbnails. Additionally, I require a video trimmer feature.
Is it possible to accomplish this in Flutter? Thank you for any assistance, devs. I have attempted to find a solution or package, but with no success.

This is can be achieved with photo_manager, then you can style and group with gridview as you may prefer.
Yes, you trim videos in flutter, you can use video_trimmer for that too.

Related

Unity UniWebView how to show images from my Resources (Assets)

i have a few quick questions:
background:
i want to display a in-code generated html with UniWebView in my game. Mostly works nicely until i try to display local images (from my unity-resources)
the images are in my "Resources" folder (and used elsewhere in the project also)
my goal to support Android/iOS/Windows environments with the game
Q1: can i display images from "Resources"? this would be the best if i could
Q2: do i need to move all my assets into the "StreamingAssets" folder and access from there? if so, can "StreamingAssets" folder be under "Resources" folder? like this: "Resources/StreamingAssets"? If so please confirm that i can use them as unity resource for unity components AND also streamable assets for UniWebView in the same time?
thanks!
daniel

How to pass a files data from outside of application to a variable flutter

Thanks already. I stuck in this example for weeks.
in other examples mostly use apps own assets folder
I dont want to add file to asset folder.
I just want to get data from outside the app
and I want to assign this data to a variable
Filepicker package will solve the problem here is the link
You can access file name , path with this package

Dart (Flutter) iterate assets folder file content [duplicate]

I want to know if there is a way (with or without pubspec.yaml asset list) to read a directory where images will be stored, and create an array with all the paths to each image, so I can go through the array (say, with a FOR ) and create a gallery of photos. This with the purpose of being able to change, remove or add images from the directory without worrying about the paths being coded in assets.
I've read that I can use AssetBundle or RootBundle for this but I cant find any example doing so. Any help on this, even pointing me in a different approach, would be greatly appreciated.
Thanks!
EDIT: This got marked as a duplicate, but the question referenced as a duplicate is different in the sense that I need to scan a directory automatically , So I dont need to know any of the names of the files on the directory, I just want a way to read the directory (who's name I can know) and retrieve an array populated with the assets inside the directory.
There is (or at least used to be - beware, it's an implementation detail) an asset called AssetManifest.json. You can load that asset first, and it contains details of the actual assets.

Load a folder of files defined by the user at runtime? Custom radio

I am trying to create custom radio tracks in my Unity game, and I want the user to be able to place audio files in a directory like My Documents/My Games/Unity Game/Custom Sounds/ . Then I want Unity to put all audio clips from this folder into an array for me to use in my code. I have searched but cannot find anything about loading a file you don't know the exact path of, or how many there will be
From #Eddge:
Yes, use the WWW class. docs.unity3d.com/ScriptReference/WWW-audioClip.html for the URL use file:// then the path of the file, it is important to note that unity only supports some music file formats, depending on the platform. So for example .mp3 will not work if building for windows desktop

How to get all the files from Internal and External Storage Programatically?

I want to show device files in a list view and also want to delete files from list view. For this i am trying to get Images, Music and Video files from External and Internal both storage. But it's returning systems file also. I don't need to show system's file.
Please help.....