45 questions
0
votes
0
answers
39
views
Open custom MIME type/file format with Flutter app
I want to open a file format that I made up, let say .myformat that has a MIME type I made up as well - application/mytype. I've read that I must specify intent-fliter section in AndroidManifext.xml, ...
1
vote
1
answer
208
views
Why can't I copy/delete a file which I created using flutter?
Using a flutter app, I created a db file in 'storage/emulated/0/Documents/Keep/cs.db' path. I deleted the app. I again installed the app and want to delete/copy the file I created. But now I can't do ...
1
vote
0
answers
94
views
flutter not showing files, only folders
I am trying to build a flutter app for Android, to show all the directories and files inside a device directory, for example the '/storage/emulated/0'.
The app is able to show all the directories, but ...
0
votes
2
answers
48
views
JSON File not being found even when being being declared properly
I"m trying to create a calendar api that grabs the events from a week ahead and displays them in advance. The googleCalendarAPi.json contains the data for the service account that grabs the data ...
0
votes
1
answer
116
views
Flutter package: Not able to read file from assets
I have few resources in my flutter package 'packme' which is used by multiple apps.
There are some resources(contains images and PDF files) which are required to be loaded within my packages and ...
0
votes
1
answer
185
views
Flutter won't return boolean in async await method
I need to check my file reading was successful and return true or false. I need to use async and await function because it needs to return true otherwise no point continuing.
I get a run time error ...
0
votes
1
answer
707
views
E/flutter (21267): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Instance of 'CompressError'
I'm trying to compress a picture with Flutter and know the original and compressed sizes. But I am getting an error. Kindly look at the compressImage() function:
Future<void> _compressImage() ...
1
vote
2
answers
3k
views
Flutter - OS Error: No such file or directory, errno = 2
In my Flutter Application, I have some data to use. Initially, I created a variable and stored this data in it, but but it became too large and hindered the code's readability. Then, I thought about ...
2
votes
0
answers
1k
views
Flutter - how to download excel file from a post http response
I'm new to flutter programming and i need to be able to download an excel file from http post request. I have two issues:
The response in flutter is null whereas in postman it displays something. The ...
1
vote
0
answers
103
views
Flutter I can not update the profile picture
I am trying to built a profile picture and also using a firestore. I can not update the selected profile picture on the screen I need to hot refresh for it. The question is how can I update it and ...
3
votes
1
answer
2k
views
How to save create a folder and save an image in Flutter?
I am trying to capture some images and save them in offline storage. I am not storing the images in app directory but instead in ...
String myNewBarcodeFolder = '/storage/emulated/0/MyApp/images';
...
1
vote
0
answers
52
views
audioPlayers and file-picker issues with flutter
hello. I'm trying this audioPlayers package but I didn't succeed to work it. I was following a youtube tutorial about it but half of the methods are changed. Flutter says there's no error in my code ...
-1
votes
1
answer
112
views
How to write code in flutter which reads input from a file dynamically(continuosly) and displays?
I am making a text translation application using Flutter which is supposed to read the text from an input text file and then translate it into a selected language and displaly it.
My code works but I ...
0
votes
0
answers
426
views
File picked by file_picker package does not exist in flutter
I want to pick an audio file in Flutter. I use file_picker package to pick an audio file. After picking it, I want to upload the file to AWS Storage, but the file in the path of the picked file does ...
0
votes
1
answer
737
views
How to save a flutter page and state in memory
If you have been on Facebook, Messenger, Twitter, or telegram, once you open a chat and it loads for the first time it takes some time, close that chat and open it sometime later, it won't load it ...