r/FlutterDev • u/Ok-Conversation3386 • 26d ago
Plugin flutter_patcher 1.0: Open-source, self-hosted code push (Android + iOS) for Flutter using Dart dynamic modules
I just shipped 1.0 of flutter_patcher. It lets you fix bugs in a released Flutter app by shipping a patch instead of a new store release. No account and no backend: patches are static files you host wherever you like. The big one in 1.0: it finally works on iOS too, not just Android.
The day-to-day flow is three commands:
dart run flutter_patcher build <platform> # release build, saved as baseline
dart run flutter_patcher patch <platform> # diff fix vs. baseline
dart run flutter_patcher publish # sign + versionUpload the output to any HTTPS static host (S3/R2 + CDN, nginx…). The app calls FlutterPatcher.checkUpdate(), and the fix applies on the next cold start.
It's built on Dart's dynamic modules. The tooling deals with the custom engine and the build plumbing, so your project stays a normal Flutter project.
What's in 1.0:
- On iOS the patch is Dart bytecode, run by the Dart VM's interpreter. No native machine code is downloaded, which is what makes it work on iOS at all.
- Patches are signed. A device only installs one signed with your keys, built for its exact app version, with a higher number than what it has, so you don't have to trust your CDN.
- If a patch crashes the app on startup, the device drops it and goes back to the installed version on the next launch.
Limitations:
- Flutter 3.47.x only (each Flutter version needs its own engine build)
- Dart code and assets only; native code and plugin changes still need a store release
Would love to hear from anyone who tries it on a real app, bugs or just "this step confused me".
View all comments
Show parent comment
1
u/Few-Bug7095 6d ago
After trying out this package, I think it really is a good start. The things works, but i did feel restricted when I was not able to patch many small ui bugs when using icons specifically, also a lot of things like SingleChildScrollView, CircleAvatar, Card, ListTile i tried and i got some errors i guess its not supported or something, and showDialog, SnackBar also gave me a bit of pain guess its not supported either. The project itself is very promising as I mentioned earlier as well. I tried building a simple dashboard and a tool which would help with automating few processes but i guess its early for now. Best wishes from me, I would love to use it later when we have some stability in it.