How to Scan documents in flutter - flutter

How to scan documents in a flutter with crop and editing?
I am working in an app which required documents scanning and creating a .PDF file. I have come across only paid solution that satisfy the requirements and in other solution we have to individually click image crop and store using different library.
Is there any single open source library using which we can achieve this.
Thanks in advance!

I created a Flutter plugin for iOS and Android.
Its based on VNDocumentCameraViewController and Intents and returns the cropped images. Feel free to contribute.
https://pub.dev/packages/cunning_document_scanner
If you want to create PDFs, you can use another plugin after cropping. e.g. https://pub.dev/packages/pdf

Related

How to edit pdf using flutter?

I have a requirement to upload a pdf file and edit the same pdf file in the flutter app how to achieve this we have any packages are there to edit existing pdf? please help me with this difficulty.
Thank You in advance.
Here is a package that has a great rating and appears that it can be used for what you are wanting.
The Flutter PDF is a library written natively in Dart for creating,
reading, editing, and securing PDF files in Android, iOS, and web
platforms.
The Flutter PDF
Another note is; if you are not familiar with https://pub.dev/ then it is the perfect place (and the proper place) to find and use packages to build Dart and Flutter apps.
Anytime you are looking for a package or thinking someone may have already done the work like: QR scanner, color spinners, splashsreens etc then just search the site.
Not directly answering your question, but if you just need to create pdf's from scratch, you could use pdf package from pub.dev.
This package has widgets for building pdfs that are similar in functionality to flutter widgets.
See how pw is used in the pub.dev examples.

Getting the original File/Image path after picking it using Flutter

I am developing a photo vault using Flutter. I need to list all the images in the mobile storage, and when the user picks one or more images. I need to move that image(s) into App Private. So that no other app can see it. So for moving the file, I need the location/path of the picked image(s). which no plugin on earth is providing.
Below is the list of plugins I tried. Each one of them provides the path of the image copied to the app private directory. No the original one
file_picker 2.1.6
image_picker 0.6.7+22
multi_image_picker 4.7.15
It would be a big help if you could suggestion some solution for it.
Thank You

How to add images in flutter via CDN

I am new to flutter development and I have some images in my flutter web app, and I want to put the images in some CDN network and fetch it from there. Is this possible in flutter?
I checked google but I could not find anything concrete. Need some guidance. Thanks!
Pseudo Code-
new NetworkImage(CDN LINK)
See the cookbook here. But if these images are only used in your flutter application, wouldn't it make more sense just to bundle them along with any other assets and use an AssetImage?

How to load theme from external file to application in iPhone (objective-c)?

I have some question about objective-c and theming.
I know there are many topics about themes but I didn't find answer for my question.
So I will (it is under construction :)) have an iPhone application and I would like to have possibility to make skins and share it in AppStore.
The problem is how to "join" new images to my application (from downloaded file). I don't want to keep it on "disk" in native format (for example .jpg).
I thought about dynamic library - but is it good idea to make library with images only? And how dynamically link library with application?
Note that it is not interesting for me how to switch themes in application (I know how to do this) but only how to link new theme images from other external file.
Thank you for reply.
The best way to do something with themes is to write a library that "draws" the images for you! Download an xml file with all the color codes in it and let the library fill in the images, colors, text settings and draw the gradients. That is the most dynamically efficient way to use theme's on a phone.
And if you don't want to store the images locally on the phone why don't you asynchronously download them during startup? It doesn't seem like a very good idea but it's an option. I'd prefer to have the images locally on my phone. So when I download a new theme the images are downloaded too and the old theme is removed.

Store and browse static web content on a tablet (iOs and Android)

I wonder what the best solution is to store and browse static html pages with javascript, images and movie clips on both iPad and Android tablets?
The content is a product catalog and is rather large, about 2GB in size, and the idea is to be able to browse it offline.
According to this Android SE question, it should be possible on android with the built-in browser, however, according to this SO question it seems like it's not doable on iOs.
I've also seen suggestions on making an application of html content using PhoneGap, but I'm not familiar with it so I can't tell if it actually is an alternative.
How would you do it?
Update: The package size is about 3,5GB (not 2 as mentioned above)
Try the jquery API I hope there is a option to do operations like this