Questions tagged [path-provider]

18 questions
0
votes
0 answers

i want to stream the rtsp video but it showing unhandled exception error how to solve it

Future _convert Frames To Video( Directory app Doc Dir, Flutter FFmpeg flutter FFmpeg, ) async { await flutter FFmpeg . execute( '-r 30 -i ${appDocDir.path}/output_%04d.jpg ${app Doc Dir. path}/output_video.mp4', …
0
votes
0 answers

Save file in device internal storage using path_provider : flutter

I want to save file in Device internal storage Android/Ios with path_provider. am saving file to storage with SharedPreferences if I am wring static path like /storage/emulated/0/Documents this will work on some device but not work higher version.…
Ravindra S. Patil
  • 11,757
  • 3
  • 13
  • 40
0
votes
0 answers

_platform.getApplicationDocumentsPath() causes error in Hive.initFlutter()

I'm using Hive for saving local data. To use hive, I'm suppose to run "Hive.initFlutter()" in main(). When I run the app, the screen stays in the black screen because await _platform.getApplicationDocumentsPath(); from path_provider package doesn't…
0
votes
3 answers

FileSystemException: Cannot copy file to 'storage/emulated/0/Download/', path = '/data/user/0/com.xx.x/f' (OS Error: Operation not permitted, errno

I'm trying to save my file into Downloads folder but in android path_provider package does not support getDownloadsDirectory so I decided to save manually in /storage/emulated/0/Download but it shows me this error message: Unhandled Exception:…
Unknown
  • 99
  • 8
0
votes
0 answers

Flutter .Statuses it's not working. (I use Path Provider)

Im working Flutter test path provider directory. But I can't access the .Statuses directory. I have been trying for a long time, but I have not been successful. Do you know what I should do? Androidmanifest.xml Permission
Hygge
  • 1
  • 1
0
votes
0 answers

How to copy a file to storage? Flutter

I want to copy an audio file to music folder in the storage. I have the path where the audio is, like '/data/user/0/app/audioFile' and I am passing to the function as 'audioPath'. I need help to finish this function, what can I do? void…
0
votes
0 answers

Is there any way to access any directory using path_provider

when I use this path getTemporaryDirectory().path; My app saves data in /storage/emulated/0/Android/data/com.example.app/files How can I access any other directory such as download directory I added
0
votes
0 answers

Flutter data.json keeps being overwritten

So I am working with Flutter but each time I Hot Restart the app it overwrites my data.json. // reference one of the data.json regulatorAsync(licenseText) async { Directory dir = await getApplicationDocumentsDirectory(); File file =…
koen1711
  • 3
  • 4
0
votes
2 answers

Flutter: What option is there to assign variable? to variable - null can't be assigned to non-null; path_provider getExternalStorageDirectory();

Testing for something that might not exist, is spawning risk of a null but what is the option to acknowledge that and assign good results to a non-null variable? For example [path_provider getExternalStorageDirectory();] might reasonably respond…
0
votes
0 answers

Build failed with an exception. A problem occurred configuring project ':path_provider_android'

I add the path_provider to the project and when I run the project I get this Error What went wrong: A problem occurred configuring project ':path_provider_android'. Could not resolve all files for configuration…
ali ma
  • 5
  • 2
0
votes
2 answers

Flutter - Unhandled Exception: PlatformException(channel-error, Unable to establish connection on channel., null,

I am trying to use Hive database in my flutter project. In order to use hive db I will have to use path_provider package. I installed that too. but when I run the app again or restart it is neither running nor restarting and getting this error. …
swapnil mane
  • 215
  • 5
  • 17
0
votes
0 answers

is it possible change asset docx file and reopen it in flutter

I used path-provider and open-file for open docx file from asset which worked fine without conflict in my project, then I needed to change some text in docx file. After changing it gave me an error like Unable to open the document, decoding…
0
votes
0 answers

Flutter Push Notification - Path Provider Not working when application is closed

I tried to download an image when push notification is coming. When application is opened this feature is work fine, but when application is closed I can't download the image and got this error : MissingPluginException(No implementation found for…
Yokaha
  • 31
  • 5
0
votes
0 answers

How to owerride created file with path provider in Flutter

final image = await screenshotController.capture(delay: const Duration(milliseconds: 10)); if (image == null) return; final tempDir = await getTemporaryDirectory(); fileImage = null; fileImage = await…
0
votes
1 answer

Unable to list image files in the ApplicationDocumentsDirectory even though I can load/display them

I'm trying to get a list of files in my app's documents directory using path_provider and getApplicationDocumentsDirectory() along with Directory(appFolder).listSync() from dart:io. While I can load the image files from this directory and view them…
bnnrs
  • 36
  • 6
1
2