flap
Working proof of the Go server running inside Flutter
Video in action
Prerequisites
Build Go server
cd go
macOS:
make macos
iOS:
make ios
iOS Simulator:
make ios-simulator
Run app
cd ..
flutter devices
flutter run -d {target}
Build app
flutter build {macos, ios}
Known issues
- Hot reload doesn’t work (workaround: run Go server independently in the development phase)
Q&A
Why .dylib instead of .a as an iOS library?
Because I can despite official docs prefer .a. In fact I haven’t even tried .a.
Contribution
I’d like to see stuff working on other platforms.
Download source code on GitHub
WIP
https://github.com/nosuta/godash
1 forks.
32 stars.
0 open issues.
Recent commits:
- release: 2.8.2Copy wasm_exec.js from the TinyGo toolchain that compiles the worker instead of a vendored snapshot. TinyGo 0.45 added the gojs.runtime.walltime import, so the old copy made release workers fail at instantiation., 1l0
- Restore the sqlite test fixtureRunning the native sqlite tests inserts rows into the tracked testdbfile; keep the committed seed at its previous state., 1l0
- Bump go-wasmsqlite to v0.5.1v0.5.1 initializes the SQLite JS module once per Worker, so reopeningthe database (a retry after a failed open) no longer fails inside themodule loader. Raise the version guard and point it at the browserharness, which now covers the driver's own reopen test., 1l0
- release: 2.8.1, 1l0
- Bump go-wasmsqlite to v0.5.0 and add regression testsv0.5.0 reports failed SQLite statements as Go errors via a JavaScript try/catch helper instead of recover(), which never runs under TinyGo -panic=trap: one failing statement used to trap the worker and hang every RPC.- go.mod/go.sum: v0.4.0 -> v0.5.0- sqlite/webtest: browser test for the error contract (separate package because sqlite3InitModule allows only one sql.Open per worker)- sqlite/sqlite_dep_test.go: guard against downgrading below v0.5.0- CI/TEST_PLAN: run ./sqlite and ./sqlite/webtest in the browser harness- CHANGELOG/README/AGENTS: document the fix, CSP requirement and OPFS gotcha, 1l0
Provides the list of the opensource Flutter apps collection with GitHub repository.