Code Monkey home page Code Monkey logo

Comments (8)

crazecoder avatar crazecoder commented on May 9, 2024

The problem has been solved in 2.0.1+1, Which version do you use

from open_file.

paqio avatar paqio commented on May 9, 2024

Still having the issue

from open_file.

crazecoder avatar crazecoder commented on May 9, 2024

@paqio Thank you for your feedback. I have tried the issue of regression test, but it did not appear again. So what is your usage scenario and what is the problem

from open_file.

paqio avatar paqio commented on May 9, 2024

i was using camera_utils, which had same FileProvider, for some reason if i set the authority/resources to the one in readme, camra utils would look for its provider hardcoded in the code not fileProvider but flutter.fileprovder and crash. i did use the replace. I ended up using other plugin image_picker which had custom file provider

from open_file.

crazecoder avatar crazecoder commented on May 9, 2024

@paqio

import android.support.v4.content.FileProvider;

camera_utils is support, open_file is androidx.
You can use the support version of open_file, which hasn't been updated for a long time, or tell the developer of camera_utils to migrate to androidx

from open_file.

paqio avatar paqio commented on May 9, 2024

yeah i did that, both(manually converted), so no issuess on build. yet when the camera_utils was looking for getApplicationName() + 'flutter.provider' . it was not in the map, only 'fileProvider' was in the map.

from open_file.

crazecoder avatar crazecoder commented on May 9, 2024
Future getImage() async {
    var image = await ImagePicker.pickImage(source: ImageSource.camera);
    openFile(image.path);
 }

I tried it with image_picker: ^0.6.0+10, and it worked
This is image_picker

activity.getPackageName() + ".flutter.image_provider";

So I think it's a question of camera_utils, You can try getApplicationName() instead of getPackageName()

from open_file.

paqio avatar paqio commented on May 9, 2024

image picker works out of the box, not the camera_utils. But i think its more popular replacement so its good enough solution

from open_file.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.