aiglance/flutter_live_motion ? reverse-engineered prompt

Reverse engineered prompt

Build me a Flutter plugin that lets an app turn a regular photo and a short video into a Live Photo on iPhone and a Motion Photo on Android.

On iPhone, it should take a JPG or HEIC plus a MOV file and save the finished Live Photo straight into the user’s Photos library, with the right permissions prompts. On Android, it should take a JPG plus an MP4, generate a Motion Photo file in the app’s storage, and keep it compatible with Google Photos and common gallery apps from Pixel, OPPO, Realme, and Xiaomi.

Please also include a simple example screen where I can pick an image and a video, tap a button, and see the result or any error message. It should handle the platform differences cleanly, preserve image metadata when possible, and be easy to drop into a Flutter app. If you need to check the latest platform docs for the photo and media APIs, go ahead and look them up.