Questions tagged [imagepicker]
462 questions
2
votes
1 answer
flutter - Image picker - need to convert 'List' to 'List?'
I'm using image_picker package to get images and show them in a carousel.
postNotifier(true).selectedPostImages != null
? Container(
height: 400,
width: 400,
child: CarouselSlider.builder(
…

rawm
- 251
- 5
- 24
2
votes
2 answers
Functions by file extension in Flutter
I’m using image picker package.
“https://pub.dev/packages/image_picker”
// Get from gallery
void ImgFromGallery() async {
final pickedFile = await picker.pickImage(source: ImageSource.gallery);
setState(() {
if (pickedFile != null)…

Enes UTKU
- 21
- 5
2
votes
2 answers
PickedImage getting null
I want to save an image locally on Device after Picking the Image From Gallery By using Path provider package . but _image file variable gets null after Selecting an Image From Gallery . Thats Why the Screen keeps Stuck on CircularProgressIndicator…

Rex
- 250
- 1
- 3
- 18
2
votes
0 answers
error image_picker: compressing is not supported for type (null). Returning the image with original quality
I want to get picture by image_picker, but my project apper error.
Please tell me the solution.
error↓
image_picker: compressing is not supported for type (null). Returning the image with original quality
flutter:…

24k
- 27
- 5
2
votes
4 answers
Image picker scanned to null flutter
File _image;
final picker = ImagePicker();
Future getImage() async {
final pickedFile = await picker.getImage(source: ImageSource.camera);
setState(() {
if (pickedFile != null) {
_image = File(pickedFile.path);
} else {
…

Aniekan-abasi Akpakpan
- 49
- 1
- 10
2
votes
0 answers
Flutter: How to pick image and mark the image as "picked" with a check mark in the gallery?
I am building a social app using flutter. I am using image_picker package to pick image and videos from gallery but I also want to mark all the images in the gallery which are already picked with a "check mark", so that user knows while picking more…

Pani
- 31
- 1
2
votes
1 answer
Expo-image-picker crashes app after using launchCameraAsync() on Android
I'm using expo-image-picker to allow the user to pick and take pictures. Choosing an image from the library works as expected but when using the camera, after taking the picture the app crashes.
Here is my code:
const take = async () => {
let…

Ariadni Mak
- 41
- 5
2
votes
2 answers
Flutter display image picked from gallery
I am simply trying to pick an image and display it inside my app. For that I am using Flutter Image Picker. I added all the dependencies and I can select an image but I can not display it...
This is what I tried:
class _AddMemoryPageState extends…

Chris
- 1,828
- 6
- 40
- 108
2
votes
2 answers
Error: Unsupported operation: _Namespace when using image_picker flutter web
when im using image_picker in flutter web
getting issue 'Error: Unsupported operation: Namespace
at Object.throw [as throw] (http://localhost:56308/dart_sdk.js:5334:11)
at Function.get _namespace [as _namespace]…

RahulZx
- 107
- 2
- 11
2
votes
1 answer
Maximum Duration of picked video using image picker plugin in Flutter
I'm using image picker plugin to pick videos from gallery in my flutter app. I want to set the maximum duration of the picked video to 30 seconds. The below code doesn't work even after setting the max duration. Is there any way to display an error…

Prudhvi
- 116
- 3
- 15
2
votes
5 answers
image_picker: ^0.7.2+1 makes the app crash
i am using image_picker: ^0.7.2+1 here in my app
i am using this code for opening the camera
File _image;
final picker = ImagePicker();
Future getImage() async {
final pickedFile = await picker.getImage(source: ImageSource.camera);
…

Tarun Jain
- 411
- 5
- 17
2
votes
3 answers
Flutter imagepicker with getX
This is yet another my adventure learning getx dealing with image. I've taken this code from another source but it didn't solve my problem. I suited with my own example. How do I update my BoxDecoration widget with a selected image?
The following is…

Hanis
- 309
- 1
- 6
- 15
2
votes
0 answers
Flutter: i want to save the image from camera or gallery to next page after cropping it here is my code
I want to save the image to the next page but after cropping the image it opens the next page but the image is not saved, here is my code it opens the camera take the pic or open gallery but after cropping it only take to the next page what should I…

maaz haq
- 21
- 1
2
votes
1 answer
Take multiple images in Flutter with Camera
I'm programming an App in flutter that basicly takes photos and stores them away in some way. At the moment I am using image_picker: ^0.6.7+4. That allows me to click a button 'open camera' which opens the camera I take a photo I press 'ok', the…

aedolfi
- 65
- 1
- 10
2
votes
1 answer
iOS 14 green dot notification light always visible after accessing camera in flutter multi_image_picker 4.7.14
with multi_image_picker flutter first, I select to choose a picture. Then my camera is starting the green dot is showing it's fine. But after choosing an image it should be invisible. It is still visible then the entire application. How I can…

Noban Hasan
- 593
- 1
- 7
- 21