Questions tagged [imagepicker]
462 questions
-1
votes
1 answer
Exception while loading an image from gallery in flutter
I tried to load an image from gallery the code throw an Exception .
The Exception is :Unhandled Exception: type 'PickedFile' is not a subtype of type 'File' in type cast
This is my code:
_imgFromGallery() async {
PickedFile image = await…

sana khalid
- 1
- 1
-1
votes
1 answer
I want to upload an Image as a File type in Flutter web app
I am trying to upload the image in flutter web app but ImagePicker is not working for web app and i am using another plugin ImagePickerWeb but it is also doesn't seem to be working.
File image;
// image = await…

nihal srivastava
- 47
- 1
- 11
-1
votes
2 answers
Flutter - ImagePicker Issue
import 'package:flutter/material.dart';
import 'login_page.dart';
import 'sign_in.dart';
import 'package:image_picker/image_picker.dart';
import 'package:firebase_ml_vision/firebase_ml_vision.dart';
import…

App Development 101
- 11
- 2
-1
votes
1 answer
Problem with BSimagepicker showing only last image selected in paging scrollview Swift
My Bsimagepicker allows me to select 3 images and places them in a paging UIScrollView but the first two images are missing and the last image shows up. I had it working before something changed. so the image picker should select up to 3 images and…

Colangelo
- 43
- 9
-1
votes
1 answer
How can I include and call the BSImagePicker in SwiftUI
How can I include the BSImagePicker in this construct and save the images in an array?
import SwiftUI
import BSImagePicker
struct ContentView: View {
...
var body: some View {
...
Button(action: {
//Here the…
-1
votes
1 answer
Ios swift gallery library Performance issue, once loading image/Video list, the data is from ICloud
I am new in IOS, I am using a third party library to integrate my multiple image/video picker. library link https://github.com/hyperoslo/Gallery
Local images/video displaying fast enough but the problem is once I am using the iCloud contain more…

Ronak Amlani
- 654
- 7
- 15
-2
votes
0 answers
Cannot read property 'launchImageLibrary'
When I try to upload the image by clicking the button the following error appears:
Untreated promise rejection: TypeError: Unable to read the launchImageLibrary property of null
I've tried importing launchImageLibrary using import * as ImagePicker…

Michael Sales
- 1
- 1
-2
votes
1 answer
How to get path of images with IOS 16 image picker SwiftUI
Good day,
How do I get the path of images from the ios 16 Photos Picker(PhotosUI Library) as I am trying to store the path in a json file to retrieve later to display
I have a form with a image picker and I want to store the path in json file and…

Tyrel Smith
- 23
- 2
-2
votes
1 answer
How can I implement image_picker package with Getx?
I have tried to implement image_picker with Getx, but didn't succeed.
Getx Version is 4.3.8
Image Picker version is 0.8.4+4
Here is my [pubspec.yaml][1]
Here is my [home_view.dart][2]
Here is my [home_controller.dart][3]
issue: When I select image…

Sumit Kumar
- 678
- 4
- 19
-2
votes
1 answer
The method 'add' was called on null while getting image from image picker
I am getting the image by image picker and then adding the file to the list of file but it shows the error-The method 'add' was called on null..
My code:-
final picker=ImagePicker();
selectImageFromGallery() async
{
setState(() {
…

Deepak Lohmod
- 2,072
- 2
- 8
- 18
-2
votes
2 answers
Alert not showing in the ImagePicker
I want to offer the option to use either the photo library or the camera, but my alert to select either photos or use a camera doesn't show up when I add the present actionSheet. The compiled application goes straight to photo album without giving…
-4
votes
1 answer
The non-nullable variable 'size' must be initialized. Try adding an initializer expression
I try to develop a recipe collection application.
This is the UI of recipe adding, but there are errors :
"The non-nullable variable 'size' must be initialized.
Try adding an initializer expression." and
"The non-nullable variable 'image' must be…

user19402977
- 25
- 3