Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom cropper screen #36

Closed
UlanNurmatov opened this issue Jan 27, 2021 · 4 comments
Closed

Custom cropper screen #36

UlanNurmatov opened this issue Jan 27, 2021 · 4 comments
Labels
documentation Improvements or additions to documentation question Further information is requested

Comments

@UlanNurmatov
Copy link

How can I remove 'Original' 'Magic Color' and other buttons from cropping screen?
I've downloaded the Flutter scanner plugin and tried to modify -> scanner_core -> scanlibrary -> src -> main -> res -> layout -> result_layout.xml
but the buttons are still there.

@veejayts
Copy link
Member

The repo present at flutter-scanner-croppper is just the API for dart to interact with the java code. The pub package manager unfortunately doesn't automatically fetch the local library dependencies in flutter. The scanner_core/ is present for testing and reference purposes should anyone want to change the plugin API.

If you want to make any changes to the scanner, all the code lives at OpenScan/android/scanlibrary/.

To remove the buttons, I suppose you would have to make changes in these files:

@veejayts veejayts added documentation Improvements or additions to documentation question Further information is requested labels Jan 27, 2021
@UlanNurmatov
Copy link
Author

Thanks, I removed the buttons. But when I click the the empty button areas, I get this printed:
V/Scanning(18090): Scaning getPoints
V/Scanning(18090): Scaning size() 2

Does it mean that button functions still run when clicked?

@veejayts
Copy link
Member

Those logs have to do with the perspective cropping.

@veejayts
Copy link
Member

Closing this issue. Ping here if you run into any problems regarding this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants