ishaquehassan/document_scanner_flutter — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a Flutter plugin that lets an app scan documents on Android and iOS.

I want the user to be able to open a scanner from a Flutter screen, choose either camera or gallery, automatically detect the document edges, crop it, rotate it, apply an original or black and white filter, and save the result as an image file. It should also support scanning multiple pages and returning a PDF file.

Please include a simple example app that shows buttons for scanning from camera, picking from gallery, creating a PDF, and re editing an existing image. If the user cancels, return nothing safely. Add support for recovering the last scan if the app crashes or gets killed while scanning.

Make the button labels customizable so apps can translate things like Next, Save, Rotate Left, Rotate Right, Camera, Gallery, and Cancel. It should work with modern Flutter, Android 5 and up, and iOS 12 and up. Look up current Flutter plugin docs if needed.

Want more depth? Deep Reverse