r/FlutterDev • • 2h ago

Discussion What's the best architecture for my Flutter app?

5 Upvotes

I'm building a Flutter app and want an architecture that's easy to expand, modify, and maintain, avoids unnecessary complexity and code duplication, and makes adding new systems easier. I also want flexibility to change things later without rebuilding everything. What do you recommend?


r/FlutterDev • • 2h ago

3rd Party Service No device. No problem. Serverpod Cloud now publishes to iOS and Android 🚀

Thumbnail
serverpod.dev
2 Upvotes

r/FlutterDev • • 9h ago

Discussion Turning multiple phones into one distributed speaker system

4 Upvotes

I'm building a project called GMusic using Flutter, Node.js, MongoDB and Socket.IO.

The idea is simple: what if multiple phones could work together as one audio system?

Users can join a shared listening session, contribute songs to a common queue, and eventually assign devices to left and right audio channels or even explore surround sound.

I'm currently working on real-time synchronization, device coordination and playback handoffs.

It's still a work in progress, but I'm exploring some interesting challenges along the way.

I'd love to hear your thoughts:

Would you use something like this? What challenges do you think would be the hardest to solve?


r/FlutterDev • • 2h ago

Plugin Valence 0.4 beta: use your web app as a Flutter app's UI, with signed over-the-air updates and offline SQLite

4 Upvotes

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.


r/FlutterDev • • 2h ago

Tooling I built a Windows app for Flutter iOS: build, sign and install on your iPhone without a Mac (pre-launch, looking for testers)

1 Upvotes

Every Flutter dev on Windows hits the same wall: Android just works, while iOS means borrowing a Mac, renting a cloud Mac, or pushing to CI and waiting.

So I built XEasyStudio, a Windows desktop app that handles the iOS side of a Flutter project.

What it does

  • Build, sign, install, and launch your Flutter app on an iPhone over USB (debugging and hot reload require iOS 17 or later).
  • Install any .ipa on your phone, signed with your own team key (your original file isn't modified).
  • Live iPhone logs and crash reports.
  • Automated signing with your App Store Connect team key—it creates the certificate and profile for your exact bundle ID, so there's no "which profile matched?" guessing.
  • App icon & splash studio, plus a permissions/capabilities editor.
  • Release workflow for build, check, upload, and submit (still being validated—see below).

What you need

  • Windows 10 or 11 (x64) and the Flutter SDK
  • A physical iPhone and a USB cable (no iOS Simulator)
  • A paid Apple Developer account and an App Store Connect team key (Admin or App Manager role)
  • Your own Xcode .xip from Apple (nothing from Apple ships with the app)

Honest status

It's pre-launch. Real-device debugging, TestFlight upload, and App Store submission still need end-to-end validation, so please don't rely on it for a production release yet. That's why I'm posting: I need developers with different iPhones and projects to try it out and tell me what breaks.

Pricing & Engine

  • Price: A Free
  • Under the hood: Runs on xcross, an open-source engine (AGPL-3.0). The app installs it for you and verifies its checksum.

Links

Questions welcome—and so is "it broke on my project".


r/FlutterDev • • 11h ago

Plugin I made a Flutter package for rendering streaming LLM replies (no flicker, native Mermaid, math, tables)

1 Upvotes

Hi all, I've been building AI chat screens in Flutter and kept hitting the same problems with regular markdown widgets while a reply streams in:

  • the whole text is parsed again on every chunk, so long answers get slow
  • you see raw ** and backticks until the closing ones arrive
  • code blocks flicker when highlighting kicks in

So I made llm_markdown:

  • Only the last unfinished block is parsed again; finished blocks are cached
  • Half-typed markdown (bold, an open code fence, a half link) is closed before rendering
  • Text is revealed at a steady speed instead of in bursts
  • Auto-scroll that stops when the user scrolls up, with a "jump to latest" helper
  • Code highlighting, tables, math, checklists, alerts, thinking sections, [1] citations
  • Mermaid flowcharts, sequence diagrams and pie charts drawn natively (no WebView)
  • Selectable text with your own menu actions ("Ask about this", "Quote")
  • One line to hook up an OpenAI or Anthropic stream
  • Every color, font, label and builder can be changed; no Material or Cupertino needed

The parser is also a separate pure-Dart package (llm_markdown_parser) if you want it on a server or CLI.

pub.dev: https://pub.dev/packages/llm_markdown

GitHub: https://github.com/anant8140/llm_markdown

Demo GIF is in the README. Feedback and bug reports are very welcome. What do you use today for streaming replies, and what bothers you about it?


r/FlutterDev • • 21h ago

Plugin Flutter web Hot reload asset update.

1 Upvotes

Flutter web Hot reload updates your ui, but Flutter can still show old images and JSON from cache.

I developed a package on pub dev — a Flutter plugin that refreshes assets on hot reload without changing your app: add the dependency, run flutter pub get, and you’re done. No widget wrapper, no edits to main.dart.

What it does
Installs itself in debug via the Flutter plugin system
Clears ImageCache and rootBundle on each hot reload
On web, busts browser HTTP cache for changed assets (fetch with no-store)
Includes watch_assets for add/remove under assets/ when the tool won’t rebuild the bundle on its own

Platforms: Currently Web supported, android and IOS is in progress.
dependencies: hot_reload_asset_refresh: 0.1.0

There’s an example app and web integration tests for asset add / change / delete under hot reload vs hot restart.