Questions tagged [flutter-file]

42 questions
1
vote
1 answer

How to get base64 of a file in Flutter

I have an file path string like path = /data/user/0/com.digitalpathshalabd.school/cache/Shaiful_Islam.docx now I want to convert the file into base64 How could I achieve this ?
Saiful Islam
  • 1,151
  • 13
  • 22
1
vote
0 answers

How do you download an image from the internet onto a file in Flutter?

I'm making a Flutter project where an image is displayed in listview and the user can share, favourite or download the image. I'm stuck on the downloading part. Is it possible to save an image file onto the phone's storage for offline use? What I…
0
votes
1 answer

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 _compressImage() async { if (_image == null) { return; } …
0
votes
2 answers

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 creating a .json file and putting this JSON data…
0
votes
0 answers

Flutter return error on text selection.dart file on debug

when debugging the app it returns an error on text selection.dart file, and i dont found the aswer in the internet here is the error details: Error: Expected an identifier, but got '4133'. text_selection.dart:716 Try inserting an identifier before…
0
votes
0 answers

How to deal with Flutter Local Storage gives a File Exception "an async operation is currently pending"?

I have the function below where i call another async function "getAnimeById( )". Whenever I hot restart my app, i get the file exception and the set that is loaded has duplicates. Future fetchRecommendations() async { //grab data from…
0
votes
0 answers

Is there any way to download file converted by webcontent_converter package?

I have some pdf content which i retrieved from the API and i converted it using webcontent_converter package. But when i try to download it, it is throwing error or not downloading. here is the code: var dir = await…
0
votes
0 answers

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 not exist. I check it by the following code…
sm_sayedi
  • 326
  • 2
  • 17
0
votes
1 answer

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 will open from where you left it as if that page was…
0
votes
1 answer

How to Write or save Large files in memory in flutter

I'm currently facing an issue, where I'm trying to Save a large video file (586 Mb). I'm able to download the entire file but, when I try to write this file to memory, I get an Error of “Out of memory”. It works for smaller video files like (80mb,…
0
votes
1 answer

How does FlutterFire Cloud FireStore handle Dart DateTime and enum?

I can't find any data type reference guide that explains how Flutter (Dart) 'DateTime' and 'enum' data types should be represented in the Map structure passed to a FlutterFire FireStore add/update document call. Any suggestions?
user2868835
  • 1,250
  • 3
  • 19
  • 33
0
votes
4 answers

FlutterFire | How can you check if a field exists in a document/documentSnapshot or not?

I want to check if a field exists in a document in firebase firestore or not.
0
votes
4 answers

Make Flutter files colored in Visual Studio Code

This is the view of my files in Visual Studio Code. And his how I'd like my files to be displayed. How can I colorize my files in this way for easy reading?
0
votes
1 answer

What is difference between path and absolute.path

What is difference between path and absolute.path? Can you open it with an example where we need to use absolute path? can we do the same thing with just path without using absolute path?
0
votes
1 answer

Flutter Audio file to text

How can I get the sound I recorded in a file in flutter as a string(text) every word of it? as an example, he will say hello world in the audio file.How can I get this as a string String getText = "hello world"; i know about google's speech-to-text…