web_image_picker 0.0.2 web_image_picker: ^0.0.2 copied to clipboard
A dart package to select image from local device and get it as file or uint8List for uploading as multipart or converting in base64 and uploading.
Features #
This package is for flutter web where sometimes image picker do not work properly. With this package you can get the image as uint8List or file and use it for multipart upload.
Getting started #
This package uses GetXController, so in order to show any change in your ui after picking image please use GetX.
Usage #
//create an instance
final WebImagePickerController _picker = Get.put(WebImagePickerController());
//use the _picker with tap detectors
GestureDetector(
onTap: (){
_picker.getImage();
}
child: Text("Pick Image");
)