Skip to main content
0 votes
0 answers
91 views

Try-catch didn't work in java.lang.Error: java.io.FileNotFoundException: open failed: EFAULT (Bad address) in Flutter. App suddenly crashed

I and my friends want to make a media player app in Android TV using Flutter for showing audio, video, and image. When we want to show picture preview using XFile from cross_file package and ...
Pup In The Tree's user avatar
0 votes
1 answer
206 views

Flutter: Trying to compress image and save the file to Cloud Storage through Firebase

import 'package:flutter_image_compress/flutter_image_compress.dart'; import 'dart:io'; Future<String> saveImageFileToFirestore({required String url}) async { final response = await http....
Ramen's user avatar
  • 3
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() ...
CodeSagePath's user avatar
2 votes
1 answer
456 views

Flutter Image Picked from Gallery has Reduced Size - How to Maintain Original Size?

I am facing an issue where the size of the picked image in the app is significantly smaller than the original image in the phone's gallery. Original image 14.5 MB but after picking it, its 324 KB ...
actuallynoneed's user avatar