flutter_imagekit 0.0.2 flutter_imagekit: ^0.0.2 copied to clipboard
To use ImageKit.io API for Flutter Projects.
Usage #
Lets take a look at how to use ImageKit.io
Flutter Package.
flutter_imagekit.dart #
ImageKit.io(
file,
privateKey: "PrivateKey", // (Keep Confidential)
onUploadProgress: (progressValue) {
if (kDebugMode) {
print(progressValue);
}
},
).then((value) {
// Get your uploaded Image file link from ImageKit.io
//then save it anywhere you want. For Example- Firebase, MongoDB etc.
if (kDebugMode) {
print(value);
}
});