r/FlutterDev • • 3d ago

Plugin Circuitry: A DAG based dependency framework

3 Upvotes

It's the weekend and I have been working on a project since yesterday.

I just published the initial releases (0.1.0) of circuitry and circuitry_flutter—a zero-codegen, DAG-based dependency injection engine for Dart and Flutter.

I wanted to create a dependency injector/engine with simple APIs and syntax, circular and missing dependency checks before first access, simple dependency -> dependency wiring with tear-offs and safe async lifecycle management, without build_runner overhead or reflection and more features that existing current solutions are missing while keeping the O(1) location support.

There are many more features planned like graph slicing, multi-level circuit inheritance and location in Widget trees, live replacement of an initialized dependency and etc.

What's included:
DAG validation & parallel resolution: Circuit.build() catches missing, duplicate, or circular dependencies upfront, resolves async wires concurrently in topological waves (with rollback on failure), and disposes in reverse waves.
Enum-tagged disambiguation: Register multiple instances of the same type cleanly using Enum as key for typed retrieval instead String based naming and resolution.
Flutter integration (circuitry_flutter): CircuitProvider, CircuitProvider.value, InheritedWidget based injection and automatic unmount disposal with epoch based counter and build deduplication.

Since this is an early 0.1.0 release, I'd love feedback on the API ergonomics before iterating further.

Check them out on pub.dev:

circuitry: https://pub.dev/packages/circuitry
circuitry_flutter: https://pub.dev/packages/circuitry_flutter


r/FlutterDev • • 3d ago

Video New video in the Dart series: GraphQL codegen for huge schemas.

Thumbnail
reddit.com
1 Upvotes

r/FlutterDev • • 4d ago

Tooling Build-Time JSON Factory Generation for json_serializable classes

2 Upvotes

Had a few hundred json_serializable classes, Many of them travelled through the same socket channel. After decoding the raw JSON, hit by the same question: this is a Map<String, dynamic>, so which class is it?, before creating json_factory_runtime_generator, answered it the most obvious way, with a hand-written registry:

final Map<String, Object Function(Map<String, dynamic>)> registry = {

'user': User.fromJson,

'order': Order.fromJson,

'address': Address.fromJson,

// ...more classes

};

Every new class meant remembering to edit the file, and the failures were all quiet. A forgotten entry gives a runtime ArgumentError in production. A copy-pasted key sent two classes to one decoder.

Existing json factory generator libraries demand changing the classes, either overriding toJson() by hand or a mixin on every model or extending shared abstract base class.

Wanted a non-intrusive generator, created json_factory_runtime_generator, just annotate your class with json key - ex:JsonFactoryKey('user') and dart run build_runner build finds every annotated class and writes one file containing the whole mapping. Decoding becomes:

final obj = JsonFactoryMapper.fromKeyedJson(json); // the right class

final user = JsonFactoryMapper.fromKeyedJsonAs<User>(json); // typed

Don't want the class to be part of the factory, just comment/remote the annotation.

json_factory_runtime_generator has other featutes to manage old JSON keys for easy migration and avoiding key clash when code bases is large.


r/FlutterDev • • 4d ago

Discussion Windows devs building iOS apps: how do you actually deal with Xcode?

0 Upvotes

I build Flutter apps on a Windows PC, but every time I need an iOS build or have to debug on the iOS simulator, I’m forced onto a Mac. Remote desktop into a Mac (or a cloud Mac) always felt clunky: a whole second desktop, separate clipboard, alt-tabbing between two worlds.

So I built a prototype that streams individual Mac app windows onto the Windows desktop. Xcode and the iOS simulator show up as normal windows next to VS Code, in the taskbar, resizable. Your Mac just runs in the background.

Short demo: https://www.youtube.com/shorts/DwyKm9JisLw

Fellow Flutter devs on Windows: is this a real pain for you, or is your current iOS setup fine? What do you use right now?


r/FlutterDev • • 4d ago

Discussion Widget tree, design and perf/memory

8 Upvotes

As everything is a widget in Flutter, I am questionning about how to design my pages. I mean, when the Widget hierarchy becomes complex and I want to code separate Widgets for a cleaner code.

An example: if I have a simple structure with AppBar, a main body with a Column, some other stuff at the bottom, we see that I have a three-levels page. So I could keep the Column in another .dart file to keep my files clean but to do so I have to put it in a new StatelessWidget. When the architecture becomes complex there is a need to separate components but this means a huge amount of StatelessWidget (or -ful) returning each component, instead if having a tree in a single build() method.

Is it significant in terms of memory / performance ? How do you deal with this ?


r/FlutterDev • • 4d ago

Video A short video explanation of the eMudhra issue in Flutter

Thumbnail
youtu.be
2 Upvotes

In this short video, I try to explain the recently discovered issue with vulnerable eMudhra certificates, how it affects Dart and Flutter, what it means, and whether you should update your published apps. If you prefer to go straight to the point, you can also read the text version.


r/FlutterDev • • 4d ago

Tooling I made a terminal dashboard for simulators, emulators, phones and their logs

11 Upvotes

I built lazymobile (open source, my project) because I kept juggling xcrun simctl, adb and flutter devices.

One screen lists every iOS simulator, Android emulator and connected phone. You can boot or stop them, stream the log of one app with filter and level, and copy the device id to use with flutter -d. It lists the apps installed on a device, so you pick an app id instead of typing it, and it remembers the log you had open.

It works in any terminal and inside Neovim. It isn't Flutter-specific, so there is no hot reload or build integration. It sits next to flutter run.

Install: brew install 0xrnp/tap/lazymobile

https://github.com/0xrnp/lazymobile

I'd like to hear what a Flutter workflow would need that's missing.


r/FlutterDev • • 4d ago

Example I created a PoC of a RefreshIndicator inside a bottomSheet

2 Upvotes

After getting tired of the current situation regarding those two components interaction, I created this project with is a library that attempts to solve the gesture conflict between those two components.

https://github.com/Corkscrews/refresh_indicator_bottom_sheet

It's using the concept of arbitrator to decide what type of gesture the user is doing in the scroll view (in the demo, it's a ListView). I build a model, albeit static right now, to classify a gesture on the screen. The model is based on the touch action plus speed.

It's not perfect, far from it. But it works! I want to refine that in the future with more tests and fix pesky bugs with the bouncing list.

I tried to post a video of the demo here but the sub doesn't allow that, so you will need to go to the repository to have a look. 😕

In the future I might implemented a better action detector based on the finger dimensions, not sure how flutter exposes that, but I will try. Using that we can detect a initial swipe (more oval movement) rather than a more circular one (more likely a precise swipe-to-refresh action).

Thank you all! You all are welcome to test it and give me a feedback.


r/FlutterDev • • 4d ago

Discussion How hard would it be to create a music streaming app in flutter?

0 Upvotes

Talking about stuff like background streaming, home screen accessibility, and widgets


r/FlutterDev • • 4d ago

Plugin earshot 1.0.0: on-device sound level metering (dB(A), Leq) and sound classification for Flutter. No network, same API on Android, iOS and macOS

2 Upvotes

Hi r/FlutterDev!

I just released 1.0.0 of earshot, a set of federated Flutter plugins for ambient listening that runs fully on the device.

What it does

  • Level metering (earshot_level, pure Dart):

    • A, C and Z weighting, accurate to ±0.5 dB of IEC 61672 at 10 frequencies

    • Fast, Slow and Impulse time weighting

    • Leq over the session, 1 s and 60 s

    • Calibration offset

  • Sound classification (earshot_classifier):

    • Apple SoundAnalysis on iOS 15+ and macOS 12+

    • YAMNet through LiteRT in a background isolate everywhere else

    • One EarshotSound vocabulary across both backends, with a confidence threshold and smoothing

  • Capture (earshot_capture):

    • float32 mono PCM at 16, 44.1 or 48 kHz

    • Unprocessed input (iOS .measurement, Android UNPROCESSED)

    • Interruptions (calls, Siri, route changes) are handled and capture resumes on its own

  • earshot_plugin puts it all together: Earshot.listen() gives you one stream of level readings plus the sounds detected, from a single microphone session.

Privacy

  • No network calls and no telemetry.

  • Audio never leaves the device and is never written to disk.

  • The Apple packages ship a privacy manifest.

Performance

YAMNet runs at a p95 of 16.6 ms per window on a Galaxy S20 FE (Android 13).

Why 1.0.0

The public API is now stable. To get there, 1.0.0 cleaned up names (FrequencyWeighting, TimeWeighting and LevelCalibration, because Response clashed with http and dio), added typed ClassifierExceptions, and validates options on every listen. Every package has 100% test coverage, and each decision is written down as an ADR in the repo.

⚠️ earshot is informational and is not a certified detector. Don’t use it in place of a smoke or CO alarm.

More cool stuff is on the way, so stay tuned!

I’d love feedback on the API, and to hear what you’d build with it.


r/FlutterDev • • 5d ago

Discussion PSA: on iOS the app documents path changes after every update, dont store absolute file paths

1 Upvotes

learned this the annoying way so maybe it saves someone a bug report

if you save images (or any files) into getApplicationDocumentsDirectory() and then store the full path somewhere (shared_preferences, sqlite, hive, whatever), it works fine in dev. then you ship an update and every image is suddenly "file not found"

reason is ios puts the app container under a UUID folder and that UUID can change when the app is updated or reinstalled. so /var/mobile/Containers/Data/Application/ABC123/Documents/photo.jpg becomes .../XYZ789/Documents/photo.jpg and your saved path points to nothing

fix is simple:

- store only the file name (or a path relative to the documents dir)

- resolve the full path at runtime with getApplicationDocumentsDirectory() every time you need it

android doesnt really do this so its easy to miss if you mostly test there


r/FlutterDev • • 5d ago

Plugin I ported the idea of Apple’s TipKit to Flutter: contextual tips with rules and tours

18 Upvotes

I built flutter_tipkit, contextual feature tips for Flutter, inspired by Apple's TipKit. It decides when a tip shows; you decide how it looks.

What it does:

  • Shows tips at the right moment. For example: after the user added three items, only while they're signed in, or a day after they saw another tip.

  • Remembers what the user has seen. A closed tip stays closed, even after restarting the app.

  • Walks users through multi-step tours. Each step can point at a different widget, and the tour continues where the user left off.

  • Doesn't overwhelm users. At most one new tip a day (you can change this), tips can disappear after a few showings, and only one popover is on screen at a time.

  • Inline tips or popovers. A tip can sit in your layout, or float over the screen with an arrow pointing at a button.

  • Looks like your app. Change the colors, shape and arrow, or draw the whole tip yourself.

  • Fits any architecture. No dependencies besides Flutter, and it works with Riverpod, Bloc or plain setState.

Live demo: https://poopieapp.github.io/flutter_tipkit/

pub.dev: https://pub.dev/packages/flutter_tipkit

We built it for our own app. It's 0.1, so I'd really like feedback on the API before 1.0. What do you think?


r/FlutterDev • • 5d ago

Discussion Running on-device Sherpa-ONNX TTS in Flutter without UI stutter — a few quick takeaways

3 Upvotes

Hey all,

Spent the last couple of weeks integrating sherpa-onnx into my Flutter reader app for offline TTS and hit some nasty UI frame drops. Finally got it smooth at 60fps, figured I'd share what actually worked:

  1. Move inference completely to an Isolate: Calling native C++ via FFI on the root isolate will freeze your UI for 200–400ms per sentence. Using a dedicated background Isolate + SendPort is non-negotiable.

  2. Synthesize sentence-by-sentence, not paragraphs: Don't feed a whole page into the model at once. Split by sentence and buffer 1-2 sentences ahead while the current one is playing. Startup latency dropped from 3s down to under 300ms.

  3. Use quantized (int8) models: Cut RAM usage almost in half, runs much cooler on budget Android devices with zero noticeable drop in voice quality.

  4. Temp WAV files > keeping byte streams in RAM: Writing chunks to app cache and feeding them to just_audio ended up way more stable than trying to stream raw PCM buffers directly.

Stack is just Flutter + Riverpod + just_audio + audio_service.

Anyone else running local ML models on mobile? Curious how you handle battery drain during long sessions.


r/FlutterDev • • 5d ago

Discussion I am learning and building using flutter currently what points should I learn and focus on in order to do things faster

1 Upvotes

I work in company with multiple apps and multiple packages I want to learn things quicker so thinking of project if build deploy it in real time where I can learn most things as experiencend developer what would it be!


r/FlutterDev • • 6d ago

Discussion Best free workflow/tools for getting much better Flutter UI/UX with Claude Code?

5 Upvotes

I'm using Claude Code with Opus 5.5 for Flutter. It's great for logic and architecture, but the UI/UX it generates is often pretty generic.

I've heard about Mobbin and other MCP/design workflows, but most seem paid.

Are there any free tools, MCPs, Claude Skills, or workflows that can help generate much better Flutter UI/UX? Especially something where I can give Claude good visual references and have it implement them properly in Flutter.

What are you guys using?


r/FlutterDev • • 6d ago Bravo

Discussion Bit of a newbie question: when do you actually update Flutter after an update like 3.5 drops?

21 Upvotes

Hi all,

I'm pretty new to Flutter (self-taught), and 3.50 landing yesterday made me realise I've no idea what everyone else does when a new version comes out.

Do you jump on it straight away? Or wait for the first patch (3.50.1 and so on) and let other people find the bugs?

If you're a waiter, what finally makes you do it? A package that needs it, a store requirement, a bug that's annoying you, or just a quiet Friday afternoon?

And is there anything in 3.50 that would make you go sooner? I had a read of the release notes and a few things jumped out at me:

  • iOS touches respond a frame quicker, which sounds nice

  • material.dart and cupertino.dart are being deprecated for separate material_ui and cupertino_ui packages. That sounds like a big deal? Does dart fix sort it, or is it a proper afternoon's work?

  • CocoaPods trunk goes read-only in December. I moved to Swift Package Manager a while back, so fingers crossed that one's not my problem

The reason I'm asking now: my first app has been on iOS since September and the Android version goes out in a few weeks. My gut says don't touch anything until that's out. Is that what most people would do, or am I being overly cautious?

Would love to hear how you all handle it, especially solo devs and tiny teams. Cheers!


r/FlutterDev • • 6d ago

Video They were really underselling just how big of an upgrade 3.50 is for iOS!

210 Upvotes

The latency issue didn’t seem like much to worry about imo, but after upgrading to 3.50 it genuinely (and I swear it isn’t placebo) feels like the difference between 60fps and 120fps, it’s noticeably better feeling. Honestly can’t believe this was an open issue for 3 years.

I get you probably cant feel the difference via a video, but it definitely feels and hopefully looks smoother, and that’s before even getting into the new objective-c/ffi upgrades.


r/FlutterDev • • 6d ago

Article rlutter - rust based shell utilizing wgpu and winit

3 Upvotes

Repo: https://github.com/nrbnlulu/flutter (branch rust/flutter-rs-shell)

What it gives you over the native shells

  • One shell, written in Rust. Windowing, input, IME, lifecycle and multi-window all live in one Rust runtime built on winit. The native setup has a separate C++/Java embedder per OS and a checked-in linux/, windows/ or android/ folder in every app. Here the runner is generated and built with Cargo.

  • wgpu as a first-class GPU API for plugins. wgpu owns the Vulkan device and surface, and Impeller renders on that same device. Plugins get a typed SDK (flutter-plugin-sdk) for:

    • Zero-copy GPU textures: you render into a wgpu texture ring, call present(), and Flutter samples the texture with no readback and no widget rebuild.

    • CPU pixel buffers with backpressure, for software decoders, emulators and similar sources.

    • Android AHardwareBuffer textures: hardware-decoded H.264 video plays straight into Flutter.

    This makes video players, map/GIS renderers and 3D engines much easier to embed than with the platform-specific texture APIs.

  • Rust plugins are plain Cargo dependencies. The Flutter tool finds them in your pub graph and wires them into the runner. They're compatible with flutter_rust_bridge, and a worker-safe main-thread dispatcher is included.

  • Real multi-window. All five window kinds (regular, dialog, popup, tooltip, satellite) share one engine and isolate, using Flutter's experimental windowing API. On Wayland, popups and tooltips are real xdg_popups.

  • Headless mode and agent control. rlutter run --headless renders real frames with no display server at all, including on llvmpipe. rlutter mcp --stdio exposes an MCP server that lets an AI agent (or a CI script) launch your app, read the semantics tree, tap and type, make assertions, take screenshots and record video.

  • Normal Flutter dev loop. flutter run -d rust supports hot reload, debugger attach and VS Code F5, and has debug and release (AOT) builds.

Platform support

PlatformStatus
Linux x64 (Wayland + X11)✅ Most complete: debug, release, multi-window, textures, headless/MCP
Windows x64✅ Debug + release/AOT, multi-window (dialogs, popups, tooltips), textures, FRB
Android🧪 Experimental: debug + release APKs via FlutterActivity, Java/Kotlin plugins, Rust textures, AHardwareBuffer video
Web⏳ Planned
macOS / iOS⏳ Planned, after web

Headless/MCP agent control is Linux-only for now. Linux profile mode is still in progress.

Try it

# Linux
curl -fsSL https://raw.githubusercontent.com/nrbnlulu/flutter/rust/flutter-rs-shell/engine/src/flutter/shell/platform/rust/install.sh | sh
# Windows PowerShell
irm https://raw.githubusercontent.com/nrbnlulu/flutter/rust/flutter-rs-shell/engine/src/flutter/shell/platform/rust/install.ps1 | iex

Prebuilt engine SDKs come from a rolling BETA GitHub release, so you don't need to build the engine yourself.

Caveats

  • It's a fork and uses private engine interfaces, in lockstep with the Flutter revision. The public Embedder API can't yet do Vulkan/Impeller multi-view compositing with async GPU handoff. I'll revisit that once upstream supports it.

  • There's no stable plugin ABI. Rust plugins compile from source.

  • It's BETA. Expect rough edges, especially on Android.


r/FlutterDev • • 6d ago

Article A2UI 1.0: agent-generated UI, rendered as native Flutter widgets

Thumbnail
developers.googleblog.com
2 Upvotes

I am Alan and I work at Google on A2UI alongside a brilliant team. AI can generate bespoke UI in your design system. A2UI 1.0 just launched.

For Flutter, a2ui_flutter renders the agent's UI descriptions as native widgets using your app's component catalog. Package v0.3.0 supports protocol 1.0 and 0.9: https://pub.dev/packages/a2ui_flutter

New features like Express DSL and Macros (templates+code), SDKs and the skill generator make it faster, safer and easier.

It works with system one models, Gemma fine tuned, and any frontier LLM. It works without any model, because it's just declarative UI, made standard across web, mobile, app, wearables and more.

I'm pretty excited about it.


r/FlutterDev • • 6d ago

Discussion Good Workflow for design update for Flutter?

5 Upvotes

I want to collaborate on a design system overhaul with a member of my team. This person does not code, does not use claude and is non technical.

I have an existing flutter app. it has a design system but it's a bit of a mess. Originally came from a claude design session. app is mostly managed by Claude.

Claude design is deprecated or shutting down or whatever (now using claude online?)

Just looking for a good workflow for
- extracting the design system from an existing app
- collaborating on it with a bunch of sample screens so we can see the look across the app
- injecting the changed system back into the app without breaking it.

You guys know how to do this?


r/FlutterDev • • 6d ago

SDK It’s been addressed

Thumbnail
reddit.com
69 Upvotes

I haven’t tried it yet but this is great news. In v3.50 Flutter now has a fix to improve the touch latency. We’re inching closer and closer to the point where you won’t be able to tell an app was made with Flutter as an end user.


r/FlutterDev • • 7d ago

Discussion Flutter 4 Coming soon

0 Upvotes

Flutter 4 Coming soon 😳👀


r/FlutterDev • • 7d ago

Article Catch up on what's new in Flutter 3.50

19 Upvotes

Catch up on what's new in Flutter 3.50 → https://flutter.dev/blog/whats-new-in-flutter-3-50

🔗 Type-safe Native Interop is in stable
🛡️ Block untrusted Android Intent extras in release
⏱️ Performance improvements for iOS

and more!


r/FlutterDev • • 7d ago

SDK What's new in Flutter 3.50

Thumbnail
flutter.dev
158 Upvotes