multi_image_picker_view
multi_image_picker_view copied to clipboard
Additional parameter for picker
It would be great to have the possibility to pass a custom dict (kwarg) to picker-method. Then we could implement an imageSource-selection-logic in onPressed-method of an addMoreButton and pass the argument to the picker-method to decide which picker to choose based on that argument.
Future<bool> pickImages(params) async { // additional params
final pickedImages = await picker(maxImages > 1 ? true : false, params); // pass params to picker
if (pickedImages.isNotEmpty) {
_addImages(pickedImages);
notifyListeners();
return true;
}
return false;
}