multi_image_picker_view icon indicating copy to clipboard operation
multi_image_picker_view copied to clipboard

Additional parameter for picker

Open philitell opened this issue 1 year ago • 0 comments

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;
  }

philitell avatar Jul 18 '24 11:07 philitell