Questions tagged [flutter-file]
42 questions
0
votes
2 answers
How to handle click on push-notification when application is in foreground?
I use the Firebase Cloud Messaging (FCM) in my Flutter project. The following packages:
firebase_messaging: ^8.0.0-dev.15
flutter_local_notifications: ^4.0.1+2
I know that I can handle click on push-notification when app is in background in the…

valerybodak
- 4,195
- 2
- 42
- 53
0
votes
1 answer
How to read file from a particular directory in flutter?
I am new to flutter. I wanted to read the files from a specific directory in file manager of the device and then use the data from those files in my app.
My files are in Internal storage->scan(a folder which i have…

velvetThunder
- 1
- 1
- 2
0
votes
1 answer
cannot display File? as image
I'm using imagepicker to capture an image, I've implemented sound null safety and I am passing it to a Second page but when trying to display image on 2nd page I'm getting error:
The argument type 'File?' can't be assigned to the parameter type…

nullSafety
- 65
- 6
0
votes
1 answer
How to show loader while loading image using file path in flutter?
How to show loader before loading complete image from file? Before loading image in Imageview it takes some time before image is visible to user.
Image.file(
File(selectedImagePath),
width: double.infinity,
height: double.infinity,
),

Aditya Patil
- 1,287
- 12
- 19
0
votes
3 answers
Error when using File writeAsBytes in flutter android 11 Is there any other way it could work?
I am currently using flutter to save a photo, but I am getting an error.
E/flutter (14379): [ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: FileSystemException: Cannot open file, path =…

hong4383
- 25
- 5
0
votes
1 answer
Debug [cloud_firestore/permission-denied] The caller does not have permission to execute the specified operation
I use Flutter, Timer and Firebase/Firestore.batch to do something like this sample code to save data periodically on Mac.
https://github.com/tomoyuki28jp/flutterfire_scheduled_batch_write_sample2
When I run my app for few days, I get this error…

Tom
- 478
- 1
- 6
- 17
0
votes
0 answers
Flutter file_picker package error while building app
I have created a flutter app and part of the requirements is selecting files from storage. I have settled on the file_picker 3.0.1 package for this due to several tutorials using it. However I encounter a problem while trying to run my app. I have…

Kevnlan
- 487
- 2
- 10
- 31
0
votes
1 answer
Image.file() load too slow
I have implemented a feature that allows users to upload files to the server.
The user selects a file on the device. if image, displays a preview on the screen. and uploads it to the server.
When showing a preview, use Image.file() to display…

haedong-jeon
- 15
- 4
0
votes
1 answer
How to convert file back to Asset
I am using the multiple file picker package on pub.dev, the link is below https://pub.dev/packages/multi_image_picker in conjunction with the image cropper package by Yalantis
https://pub.dev/packages/image_cropper
to let my user pick multiple…

Simeon
- 692
- 1
- 6
- 12
0
votes
1 answer
Handling null file from image_picker in image_cropper flutter?
I'm trying to get an image using image_picker package and then passing to image_cropper. I have taken a bit different approach to avoid getting back to the home screen after image selection before going to crop image screen.
Here is my code for…

ASAD HAMEED
- 2,296
- 1
- 20
- 36
0
votes
1 answer
Flutter: Access File from specified location
As question explains itself the problem,
Below code is used to access the file, but it's returning false, but the file exists on a particular location
Directory appDocDir = await getApplicationDocumentsDirectory();
String…

Jitesh Mohite
- 31,138
- 12
- 157
- 147
-1
votes
1 answer
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 am having to close and restart the application…