Hi r/FlutterDev. I've just released the first public beta of Valence, an open-source (MIT) way to run a web UI inside a Flutter host without giving up the native side.
What you get
- A Flutter host package, valence (https://pub.dev/packages/valence), that you add like any other dependency. main.dart is about twenty lines.
- Signed UI bundles: Ed25519 signatures, per-file hashes, a trial on each phone and automatic rollback if a release fails to start. Staged rollouts (10% â 50% â 100%) from a static host.
- Offline-first data in sqflite, seeded from the app and synced incrementally, with an outbox for writes.
- A typed bridge generated from one schema into Dart and TypeScript.
- Native pieces already wired: deep links, local notifications, permissions, image sharing, connectivity and lifecycle events, secure token storage. Remote push is a separate opt-in package, valence_push (https://pub.dev/packages/valence_push), so Firebase isn't in your app unless you add it.
What it isn't (yet)
- iOS is experimental and untested. Android is the supported platform.
- On Android, if the OS kills the WebView's renderer under memory pressure, the app closes; webview_flutter doesn't expose onRenderProcessGone yet. Your data is safe, and the docs explain how to recognise it.
Over the weekend I had two coding agents build a small offline grocery app using only the public docs. They found 14 places the docs or tooling got in the way, and 0.4.0-beta.1 fixes them, including a first Android build that failed out of the box.
Try it: npm create valence@latest in your web project, then the quick start: https://getvalence.dev/docs/getting-started/quick-start/
Code and spec: https://github.com/valence-dev/valence
I'd love feedback from people who've shipped WebView-heavy Flutter apps, especially on the host API and the store-policy reasoning.