Questions tagged [flutter-file]
42 questions
6
votes
1 answer
What's the use of pubspec.lock file in Flutter Project
Every project this file is auto-generated, also if I am added any library to pubspec.yaml file, this file also updates and, added and shows there URL, name path, and source.
but what's the main purpose of these files in the project.

Shirsh Shukla
- 5,491
- 3
- 31
- 44
4
votes
0 answers
Flutter: Is the file an image or not?
I want to load all the images that are in a given directory and exclude all files that are not images.
I don't want to simply check for extensions because different conventions exist like ".jpg" and "jpeg" and because I don't want to manually add…

Rednaxelus
- 111
- 2
- 10
3
votes
1 answer
Flutter Web: Show Progress while Uploading Video using Dio
I have tried to upload video on AWS s3 from Flutter Web and video getting uploaded successfully. But it's not showing me progress like how many percentage uploaded.
uploadFile(String url, Uint8List imageBytes) async {
BaseOptions options = new…

Pratik Butani
- 60,504
- 58
- 273
- 437
3
votes
0 answers
flutter_webview_plugin: Choose File not working in Flutter WebView (working in Google Chrome)
I am working with flutter_webview_plugin: ^0.4.0 and its working successfully but there is one issue that File Chooser is not opening.
I have to choose one file from WebView but its showing "No apps can perform this action."
I am using following…

Ketan Vishwakarma
- 231
- 3
- 8
2
votes
0 answers
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 details below
[Postman response]
The…

Endeavor
- 21
- 1
2
votes
1 answer
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';
and doing...
await…

Ashish
- 35
- 5
2
votes
1 answer
How to update the Existing File (Path_Provider) in Flutter
I have a question about path_provider package, i'm fetching the api data and once i received the data i cache the json data in File. How can i update the existing file, Because whenever i got any changes or updates in api data then it doesn't make…

Mohammed Nabil
- 662
- 1
- 8
- 36
2
votes
0 answers
How to convert Recorded Audio Uri/Url into a File of .Mp3 extension in Flutter web
using package Flutter Sound
i am able to record an audio and can play the audio by the audio URL/Uri but after playing audio what i need is to convert that audio into a file with extension of mp3 and upload it to the firebase storage.
or is there…

Sharyer Ilyas khan
- 31
- 4
2
votes
3 answers
Flutter Image gallery saver - how to access path
I'm using Image gallery saver plugin for saving images. Method
await ImageGallerySaver.saveImage(pngBytes)
returns an object
{filePath: file:///storage/emulated/0/wallpapers/1608205629471.jpg, errorMessage: null, isSuccess: true}
I'd like to get the…

Coding Glass
- 137
- 1
- 7
1
vote
0 answers
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 display it on the screen when the user select…

Ata Berk Çinetçi
- 25
- 5
1
vote
0 answers
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 but I think I have logical errors. Since I don't…

byraychen
- 43
- 7
1
vote
3 answers
How to convert an Image instance to File instance in Flutter?
I am using VideoThumbanil class to fetch an Uint8List image of a video like this:
final uint8List = await VideoThumbnail.thumbnailData(video: videoFile.path,);
After doing so, i am converting the Uint8LIST to an Image using the following…

Abdul Ahad Akram
- 455
- 3
- 12
1
vote
2 answers
How do I change flutter_ling version in flutter project?
Here I trying to add dependency
geoflutterfire: ^3.0.3
After adding this line in pubspec.yml I presses pub get to get all package which I listed in it.
But I got an error something about flutter_lint version
Running "flutter pub get" in…

tailor
- 373
- 4
- 19
1
vote
0 answers
how to convert a file from file.path to base64 in flutter
I have used filepicker to choose file from internal storage:
Fresult = await FilePicker.platform.pickFiles(
type: FileType.custom,
allowedExtensions: ['pdf', 'jpg'],
PlatformFile file = Fresult.files.first;
…

Ananthakrishna
- 517
- 5
- 24
1
vote
1 answer
The argument type 'File?' can't be assigned to the parameter type 'File'
After I do pub upgrade,
The error says "The argument type 'File?' can't be assigned to the parameter type 'File'."
Maybe it is because
element.id == id) .first .getFile()> is type 'File?'
But I'm not sure how…

marchive7
- 55
- 6