r/FlutterDev • • 13m ago

Plugin I build FastLottie. Faster than native — the Lottie renderer Flutter deserves

Thumbnail
pub.dev
1 Upvotes

Hey everyone,

If you've ever tried rendering a chat screen or sticker picker full of Lottie animations in Flutter, you've probably hit the same wall I did: dropped frames, GC spikes, and memory usage shooting up as soon as more than a few stickers are on screen at once.

I got tired of working around it, so I built a 2D Lottie & Telegram `.tgs` engine from scratch called FastLottie (v1.0). The goal was to make dense sticker grids feel effortless—and on heavy stress tests, it ended up beating native Kotlin, C++ `dotlottie`, and `lottie-ios`.

Benchmarks

| Metric | FastLottie v1.0 | Baseline |

| :--- | :--- | :--- |

| RAM — 24× stickers @ 120 Hz (Apple M5) | 209 MiB | `lottie-ios`: 3.27 GiB (~15× less) |

| Total PSS | 249.5 MiB | Pure Native Kotlin: 373.7 MiB |

| Parse speed vs. Native Kotlin | 2× – 17.5× faster | — |

| Parse speed vs. Swift | 4.2× – 10.3× faster | — |

How it works under the hood

* Zero-DOM UTF-8 parsing (off the UI isolate): Instead of decoding JSON into large Dart `Map`/`List` trees that trigger GC storms, FastLottie scans raw UTF-8 bytes directly into columnar `TypedData` tracks designed for `Float32x4` SIMD evaluation.

* Bounded VRAM via LZ4 strip cache: Native C/SIMD kernels rasterize into adaptive LZ4 strips (~17.7 µs decode) with a 32 MiB default GPU budget and optional `.flcache` disk caching.

* Zero PlatformView tax: No `AndroidView`, no `UIKitView`. Direct Flutter texture composition skips the +164 MiB PlatformView overhead altogether.

* Web support via Wasm: Uses dedicated Web Workers paired with C Wasm SIMD kernels so heavy animations don't block the main thread.

Drop-in API

Supports both `.json` and Telegram `.tgs` files out of the box:

```dart

FastLottie.asset('assets/sticker.tgs')

```

You can switch between Shared Raster**,** Vector**, or** Direct Canvas modes depending on the widget, and use `FastLottiePlaybackScope` to manage off-screen playback in scrollable feeds.

---

Would love feedback from anyone building chat UIs, sticker pickers, or animation-heavy feeds. Happy to dive into the C/SIMD internals, texture pipeline, or benchmark setup in the comments!


r/FlutterDev • • 4h ago

Discussion Shipped my tabletop board game built in Flutter (Ludo Clans) — looking for UI & device performance feedback

2 Upvotes

Hey r/FlutterDev!

Today I officially launched **Ludo Clans** on Google Play—a physical-tabletop style Ludo + Snakes & Ladders game built in Flutter.

Instead of flat cards, I leaned heavily into custom painters, tactile 3D-style buttons, and 3D dice rolling animations.

I’d really appreciate feedback from fellow Flutter devs on:

- Frame smoothness / jank on your specific Android device

- Layout scaling across different aspect ratios and screen sizes

- Overall readability during an active 15x15 match

Google Play: https://play.google.com/store/apps/details?id=com.ludoclans.game

Happy to answer any questions about how the board state machine or custom painters are structured!


r/FlutterDev • • 1h ago

Discussion A device ID in SharedPreferences follows the user to their new phone. It took us three tries to find the right place for it

1 Upvotes

Small thing that cost us more thinking than the feature itself, so writing it down.

We added an optional cloud backup. To avoid two phones overwriting each other, each install writes only its own file, named after a random device ID. So the whole design rests on one question: where does that ID live?

Attempt 1, SharedPreferences. Looks obvious and it's wrong. Android auto backup and device-to-device transfer copy prefs to the new phone (iCloud backup and Quick Start do the same on iOS). The new phone wakes up with the old phone's ID, decides the old phone's backup file is its own, and overwrites it. The one case where you most want the old backup intact is exactly the case that destroys it.

Attempt 2, the cache directory. Transfers don't copy it, so a new phone gets a fresh ID. But the OS is allowed to empty the cache when storage runs low. Then the same phone comes back with a new ID and treats its own earlier backup as another device's.

Where it ended up: a directory that is excluded from backup but never cleaned by the system. On Android that's noBackupFilesDir. On iOS it's a file in Application Support with the excluded-from-backup flag set. We read both through a small method channel, since path_provider doesn't hand you either one directly.

One more case fell out of this. A new phone can inherit the "backup is on" setting through prefs while having a brand new ID. We treat that pair (setting on, ID new) as a signal to pull in the other device's records first, before the first upload.

The lesson for me: "per install" and "per user" are different lifetimes, and prefs is per user as soon as OS backup is involved.

Where do you keep install-scoped state? Is there a cleaner option than a no-backup file that I'm missing?


r/FlutterDev • • 5h ago

Plugin I orchestrated & maintain a pure-Dart MCP / AI Agent suite (`dart_mcp_core` + Flutter UI / A2UI 1.0 Express / on-device LLMs) using coding agents (Antigravity + dogfooding TealKit Coder)

1 Upvotes

Hey r/FlutterDev!

Over the past few months I've been **architecting, orchestrating, and maintaining** an open-source **Model Context Protocol (MCP) & AI Agent suite** for Dart and Flutter — built not by hand-typing every line, but by steering coding agents (**Antigravity** and now increasingly dogfooding my own open-source agent **TealKit Coder**, which runs directly on `dart_mcp_core`).

Dogfooding it inside real coding-agent loops surfaced and fixed real production issues fast (context-compression thrashing loops, Jinja single-system-message normalization for local models, tool-loop guards, and Android Scoped Storage PDF/DOCX exports).

### Architecture & Packages (all MIT, verified publisher `tealkit.dev`)

- **[`dart_mcp_core`](https://pub.dev/packages/dart_mcp_core)** (160/160 pub points, pure Dart, zero Flutter deps)

- Unified adapters for **OpenAI** (`openai_dart`), **Anthropic Claude** (`anthropic_sdk_dart`), **Google Gemini** (`googleai_dart`), **Ollama**, **Mistral**, OpenAI-compatible endpoints (vLLM, DeepInfra), and pluggable **on-device** delegates.

- Full **MCP client** (HTTP/SSE + desktop stdio subprocesses) and Dart-native `McpLocalTool`s.

- **Context window auto-compression** with `EpisodicMemoryStore` + `retrieve_memory` recall, **progressive tool discovery** (`mcp_list_tools` / `mcp_call_tool`), **sub-agent delegation**, **HITL approval hooks**, **tool loop guards**, and `GenerateImageTool` (OpenAI, Gemini Nano Banana, DeepInfra FLUX, or custom).

- **[`flutter_ui_mcp`](https://pub.dev/packages/flutter_ui_mcp)** — Vanilla-Flutter (`ChangeNotifier` / `StatefulWidget`, no Riverpod/Bloc lock-in) chat UI, multi-profile LLM switcher, agent inspector, and cross-platform pure-Dart PDF/Word/Markdown export.

- **[`flutter_a2ui_mcp`](https://pub.dev/packages/flutter_a2ui_mcp)** — Dynamic generative UI on Google's `a2ui_flutter` (`^0.5.0`) + `a2ui_core` (`^0.9.0`) with **A2UI 1.0 Express** enabled by default (~50% fewer output tokens than raw JSON).

- **[`flutter_ui_mcp_embedded`](https://pub.dev/packages/flutter_ui_mcp_embedded)** — Pluggable on-device inference via `llamadart` supporting both **GGUF (`llama.cpp`)** and **LiteRT-LM (`.litertlm`)** models on Android, iOS, desktop, and WebGPU.

### Minimal Pure-Dart Example (`dart_mcp_core`)

```dart

import 'package:dart_mcp_core/dart_mcp_core.dart';

void main() async {

final engine = McpAgentEngine();

final agent = Agent(

id: 'assistant',

name: 'Assistant',

llmConfig: const LlmConfig(

provider: LlmProvider.openai,

model: 'gpt-4o',

apiKey: 'YOUR_API_KEY',

),

dartTools: [GenerateImageTool()],

);

final result = await engine.run(

agent: agent,

prompt: 'Summarize the latest release notes and generate a cover image.',

);

print(result.finalAnswer);

}

```

### Links

- **GitHub Monorepo (with 20+ runnable Flutter & A2UI examples + CI):** https://github.com/lschaffer/flutter_mcp_suite

- **pub.dev (`dart_mcp_core`):** https://pub.dev/packages/dart_mcp_core

- **Open-source coding agent dogfooding it:** TealKit Coder (`tealkit.dev`)

Happy to share lessons learned from maintaining a 5-package Dart/Flutter monorepo with Antigravity + TealKit Coder, and would love feedback on the APIs!


r/FlutterDev • • 12h ago

Tooling What broke when I replayed AI agent paths on LocalSend (a Flutter app) as Maestro flows

2 Upvotes

I'm the author of mobile-agent-testers, an open-source tool where AI agents test a mobile app on emulators in CI. It passed 2,400 GitHub stars in its first ten days, so I'd like the Flutter side to hold up. I've been replaying their paths on LocalSend, and Flutter's accessibility tree tripped me up twice.

Version 0.2 saves each Android tester's path as a trace. Taps are stored by the element's name instead of coordinates, and Explore-Compile-Replay (my other project) compiles the trace into a Maestro flow that runs with no model.

The first replays on LocalSend went badly. The paths of four testers (9 to 19 steps) stopped at step 3 or 4, and 25 of the 27 paths of the map robot (a crawler with no model) stopped at step 3. The traces are encrypted, so the cause is inferred, not read: Flutter names a tab on two lines, "Send" and then "Tab 2 of 3". The trace refused names with line breaks and fell back to the only id under the finger. In a Flutter app that id is the whole window, so the replay tapped its centre.

Now a name on several lines is kept with a space for each line break, which is how Maestro matches it, and an id that covers the whole window is never a target. After that, one tester's path (8 steps, all 4 taps found by name) replayed end to end in 32 s, and so did 20 of the 24 robot paths, from 4 to 41 steps. The other 4 stopped on a tap by name, three of them right after a tap stored as a point.

One failure had nothing to do with Flutter. An agent opened the system file picker and picked its own screen dump. A phone that only replays doesn't have that file, so the replay stopped there. The tools now write their dumps where the app can't see them.

It's still experimental, and Android only for now.

Do you add semantics labels or identifiers just so tests can find your widgets? Or is there a better way to make a Flutter app easy to target from Maestro?

Repo: https://github.com/pierridotite/mobile-agent-testers

What broke on LocalSend and why: https://github.com/pierridotite/mobile-agent-testers/blob/main/docs/replay.md

Demo of the LocalSend screen map (static, no model): https://pierridotite.github.io/mobile-agent-testers/


r/FlutterDev • • 10h ago

Tooling 13 month Cotsworth Calendar Application

0 Upvotes

I built a 13-month, 28-day calendar app (Cotsworth Plan) with Flutter — just shipped MVP 1

- I got tired of how arbitrary the Gregorian calendar is—28, 30, and 31-day months with weekdays constantly shifting every month—so I spent the past few weeks building MVP 1 of a Cotsworth (International Fixed Calendar) app in Flutter.

- If you haven't come across the Cotsworth Plan before, the math is super clean:

* 13 months of 28 days each (with a 7th month called Sol between June and July)

* Every month starts on Sunday and ends on Saturday—an identical 7×4 grid year-round

* Year Day (after Dec 28) and Leap Day (after Jun 28 in leap years) sit outside the 7-day week

What’s live in MVP 1:

* 7×4 Monthly View: Fixed-grid calendar showing Cotsworth dates alongside Gregorian equivalents so you don't miss real-world deadlines

* Bidirectional Date Converter: Convert any date between Gregorian and Cotsworth (including Leap Day and Year Day edge cases)

* 13-Month Year Overview: Full-year view with 1-tap navigation to any month

* No Signup Wall: Includes anonymous Guest Mode so you can poke around immediately, plus Firebase Auth if you want to sync later

* Responsive Light & Dark UI: Adapts across mobile and web

Tech stack (for anyone curious):

Flutter, Dart, BLoC/Cubit, a pure-Dart UTC calendar engine (to avoid DST off-by-one bugs), and Firebase.

Live web demo (no login required): https://thepunisher569.github.io/cotsworth_calendar_app/

Github Repo: https://www.github.com/thepunisher569/cotsworth_calendar_app.git

I’m actively planning MVP 2 (leaning toward natural-language event quick-add and local reminders), so I’d genuinely appreciate any blunt feedback on the UI, UX, or edge cases. Also curious—if the world voted tomorrow, would you switch to a 13-month calendar?

Please share & repost as much as possible...


r/FlutterDev • • 1d ago

Discussion Play rejected our update because a card hid itself after the user granted a Health Connect permission

16 Upvotes

We read one health metric from Health Connect and show it in a single card. If the user granted permission but had no readings yet, we hid the card. It seemed tidy: nothing to show, so show nothing.

Play rejected the update. From the reviewer's side, they granted the permission and then nothing on screen used it, so the app looked like it was asking for health data it didn't need.

The fix was a boring empty state. The card now stays after permission is granted and says there are no readings yet. It went through after that.

Two things I took from it. Every health permission needs a visible feature a reviewer can find in a minute, even on an account with zero data. And "hide when empty" is a bad default for anything that sits behind a permission.

Has anyone else been caught in review by something that only happens on an empty account? Curious what other empty-state traps are out there.


r/FlutterDev • • 17h ago

Article What are you using for low-latency live video in Flutter apps?

Thumbnail
antmedia.io
3 Upvotes

I work at Ant Media, so take this with that in mind. We've had a MoQ plugin for a while, and the obvious problem was that every viewer connects to the relay on your own server. Do the math on a 1 Gbps port and you're at roughly 330 viewers of a 1080p stream before you run out of bandwidth.

So we wired it up to push to Cloudflare's MoQ relays too. The server sends each track once and Cloudflare handles getting it to viewers. It's one config line, and in our test the Cloudflare copy stayed within a fraction of a second of the source.

Two things that cost us time: it only works with the draft-16 host right now, and if you use a draft-14 host everything looks fine in the logs but no viewer can ever find the stream. Also it's still beta with no SLA, so I wouldn't put anything critical on it yet.

We wrote the steps down here: https://antmedia.io/cloudflare-moq-cdn/

Is anyone else running MoQ behind a CDN or their own relays? I'm wondering what people are doing for auth, since a single shared subscribe token isn't great.


r/FlutterDev • • 21h ago

Dart [FOR HIRE] Flutter Developer | Android & iOS Apps | Firebase | REST APIs | AdMob

4 Upvotes

Hi everyone!

I'm a Flutter Developer with around 1 year of professional experience building and maintaining cross-platform mobile applications for Android and iOS.

I'm currently available to work with startups, businesses, and individuals who need help developing or improving their mobile applications.

What I can help you with:

  • Building mobile applications using Flutter and Dart.
  • Creating responsive and modern UI designs.
  • Firebase Authentication and Firestore integration.
  • REST API integration.
  • Google AdMob integration (Banner, Native, Interstitial, App Open).
  • In-App Purchases and subscriptions using RevenueCat.
  • Fixing bugs and improving existing Flutter applications.
  • Publishing and preparing apps for Google Play Store and Apple App Store.

My technical skills:

Flutter, Dart, Firebase, REST APIs, Provider, GetX, SharedPreferences, Hive, AdMob, RevenueCat and Git.

Availability: Open to freelance projects and long-term collaboration.

Location: Pakistan (UTC+5)
Work preference: Remote | International clients welcome.

If you have a mobile app idea, an existing app that needs improvements, or specific Flutter tasks, feel free to send me a Reddit DM.

I'm happy to discuss your requirements, timeline and budget.

Thanks for reading!


r/FlutterDev • • 1d ago

Discussion Can someone explain why ImageFiltered causes lag when it comes to blurring large amounts of text?

5 Upvotes

Genuinely curious.


r/FlutterDev • • 1d ago

Plugin I shipped smart_context_menu 1.1.0 with actions row, right-click, and hover.

Thumbnail
raw.githubusercontent.com
16 Upvotes

Hi, r/FlutterDev! 👋

Back in October, I shared my first Flutter package here, smart_context_menu: a configurable context menu styled like iOS menus. Items can have live updates, and submenus can be loaded on demand or fetch longer lists a page at a time.

A commenter asked for right-click support on desktop, and I'm glad to say that's now in 1.1.0 version. Thanks for the feedback! On desktop and web, you can now open the menu with a right-click or a two-finger click on a trackpad. Menu items highlight on hover, too.

I also added action rows. They let you group common actions like Copy, Share, and Rename (say, in a file menu) together. The rest of the actions can go in a regular list, or you can use an action row as the entire menu. For example, the drawing toolbar in the image has an action row with a Shapes button which opens a submenu to select a shape.

I wanted rows to be as flexible as the rest of the menu. They can be added anywhere, and can show icons with or without labels, use custom styling, or even render a cell with a custom widget. Items in a row can open paginated submenus and update while the menu is open.

Try the live demo  · 90-second video overview

Package on pub.dev

I have a couple of questions for you.

1. cupertino_ui - Has anyone here started using cupertino_ui in their apps? Do you think it’s worth moving Smart Context Menu to it now, or would you wait?

2. Liquid Glass - Are you already using Liquid Glass in your Flutter app, or planning to adopt it? How important is it to you that context menus use Liquid Glass too?

Happy Thanksgiving to everyone celebrating! 🦃


r/FlutterDev • • 21h ago

Tooling An update on analyzer_kit

Thumbnail
reddit.com
1 Upvotes

r/FlutterDev • • 1d ago

Discussion How do certain apps make a custom in app browser window?

4 Upvotes

I'm looking at some ecommerce apps and some of them have a slider as an in app browser rather than a new window. example of what im talking about here: https://imgur.com/a/AUJM13U
is this just them displaying the checkout link with a webview?


r/FlutterDev • • 1d ago

Discussion RevenueCat vs in_app_purchase with a custom backend for Flutter subscriptions: where's the tipping point?

8 Upvotes

For Flutter apps with subscriptions, I see two common approaches: RevenueCat for fast setup or the in_app_purchase plugin plus a custom backend for receipt validation. RevenueCat saves a lot of time, but its cost grows with revenue and it adds a third-party dependency for a critical flow. At what point does going custom start to make sense: revenue size, need for custom entitlements or data ownership? And how much of the work (restore purchases, refunds, expired subscriptions, grace periods) did you underestimate?


r/FlutterDev • • 1d ago

Article Shorebird can now send a signed webhook when a release is created or a patch is promoted or rolled back

6 Upvotes

We just shipped outbound webhooks, and I know a few of you run Shorebird from CI, so I thought I'd post.

When something happens in your org, we POST to an HTTPS endpoint you run. On Business you get release, patch and channel events: release created, patch promoted to stable, rolled back or rolled forward, channel created or deleted. On Enterprise it can be any event in the audit log, so you can stream it into a SIEM instead of polling.

If you're wiring one up:

- Each delivery is one OCSF 1.9.0 API Activity event as JSON.

- It's signed per the Standard Webhooks spec (webhook-id, webhook-timestamp, webhook-signature headers), so any Standard Webhooks library can verify it.

- Return a 2xx within 5 seconds and do the slow work after. Timeouts, 408, 429 and 5xx get retried with backoff, up to 6 attempts.

- Retries keep the same webhook-id, so dedupe on that. Events can arrive out of order, so sort by `time`.

- Up to 5 webhooks per org, and there's a test ping button to check your endpoint.

- Scheduled changes (a patch approved to ship later, a scheduled rollout bump) show up in the audit log but aren't sent to webhooks.

Setup is Settings > Webhooks in the console. More in the blog post: https://shorebird.dev/blog/stream-shorebird-events-to-your-webhooks/?utm_source=reddit&utm_medium=social&utm_campaign=webhook-streaming-socials&utm_content=reddit-webhook-streaming-socials

Ask here or on Discord (https://discord.gg/shorebird). We're curious what you'd point this at besides a chat channel.


r/FlutterDev • • 1d ago

Discussion Are we building apps for a world that’s about to disappear?

18 Upvotes

With the rapid development of personal AI agents like Muse, I’m starting to wonder what the future of mobile apps actually looks like.

If AI agents can understand users, manage their data, make recommendations, and perform tasks on their behalf, will people even need dedicated apps anymore?

I’m an independent developer currently building a fitness app with Flutter. I’ve invested a lot of time and effort into developing my product, but lately, I’ve been feeling increasingly uncertain about its future.

It’s not just about AI making app development easier or increasing competition. I’m more concerned about AI fundamentally changing how people interact with software, potentially eliminating the need for many standalone apps altogether.

I’d love to hear what other Flutter and mobile developers think.

* Are you worried about the future of mobile apps?

* What kinds of apps do you think will survive in the age of personal AI agents?

* What competitive advantages can independent app developers still build?

* Are you changing your product strategy because of AI?

* If you were building an app today, would you continue investing in it or pivot to something else?

Part of me wonders whether I should cut my losses and move on, but another part of me believes there must still be opportunities for mobile apps.

I’m genuinely curious about how other developers are thinking about this.

What’s your take?


r/FlutterDev • • 1d ago

Plugin We built TkushPatch (tk_ota_push v2.0.5): Flutter OTA Code Push for Android & iOS with a Self-Hosted option

4 Upvotes

Hi r/FlutterDev!

Over the past months, we built TkushPatch (tk_ota_push on pub.dev) — an Over-The-Air (OTA) differential Code Push platform for Flutter on Android (.aab / .apk) and iOS (.ipa).

While existing cloud OTA services work great for many teams, we kept running into teams (especially in regulated industries, fintech, and mobile agencies) that needed either private self-hosted deployment, server-side key isolation, or pre-release team approval gates before an update reaches production devices.

What TkushPatch provides:

  • 2-command CLI workflow: Register a release (tkushpatch release 1.0.0+1) and ship a differential Dart hotfix (tkushpatch patch 1.0.0+1 --rollout 25) in minutes without waiting 24–72h for store review.
  • Managed Cloud or Self-Hosted (On-Premise / Private Cloud): Run on our managed cloud or deploy the control plane on your own infrastructure.
  • Server-side cryptographic signing: Private signing keys stay isolated server-side while mobile apps verify authenticity on-device before activation.
  • Pre-release approval workflow: Require an explicit reviewer approval in the web console before a staged patch becomes live for end users.
  • Progressive & geo-targeted rollouts: Roll out updates gradually by percentage (--rollout) or target specific country codes (--countries).
  • Automatic startup protection: Built-in SDK protection automatically rolls back to the previous stable version if a patch fails at startup.
  • Flavors & multi-environment support: Native support for --flavor, custom entrypoints (-t), and --dart-define.

Links:

We'd love to get your feedback on the CLI ergonomics and multi-environment workflow!


r/FlutterDev • • 2d ago

Discussion How are Flutter teams handling golden tests in CI in 2026 without bloating Git or paying for macOS runners?

13 Upvotes

Hey everyone, curious how teams with real production Flutter apps are handling visual regression / golden tests right now.

Every setup I've seen ends up with one of three headaches:

  1. Committing hundreds of PNGs to Git (or fighting Git LFS in CI).
  2. Mac vs Linux font rendering diffs forcing teams to either run expensive macos-latest runners or maintain Docker setups.
  3. Reviewing 30+ changed PNGs one-by-one in GitHub's PR diff UI whenever a shared widget or .arb translation changes.

Are most teams using Widgetbook Cloud, Alchemist + Docker, macOS GitHub runners, or did you just give up on golden tests altogether?

Asking because I'm considering building a super lightweight, Chromatic-style web PR diff viewer specifically for plain flutter test / Alchemist goldens (no Widgetbook required, baselines stored in cloud instead of Git), and I want to know if this is still an actual pain or already solved for you.


r/FlutterDev • • 1d ago

Discussion Integration tests for an app with dozens of small screens: one big smoke test, or split it up?

1 Upvotes

I've been working on a Flutter puzzle app that has dozens of separate mini-games, each with its own board and input. Testing the game rules with unit tests was the easy part.

Integration tests are where it gets messy. A single test that opens every game and makes a move takes ages on an emulator, and any screen with a looping animation makes pumpAndSettle hang, so I keep adding hand-tuned pump durations.

If your app has lots of independent screens, how do you handle it? One big smoke test, one test per feature, or mostly widget tests with just a few real-device flows? Interested in what has actually held up for you.


r/FlutterDev • • 1d ago

Article Flutter Windows CMake error: .plugin_symlinks exists, but its entries cannot be traversed

3 Upvotes

I recently investigated a strange Flutter Windows build failure:

CMake Error:
add_subdirectory given source
"flutter/ephemeral/.plugin_symlinks/<plugin>/windows"
which is not an existing directory.

Initially, I suspected a Flutter plugin or CMake configuration issue. However, the plugin packages were actually present in the Pub cache.

After comparing NTFS reparse point data and testing Dart's Link.createSync() with different target paths, I narrowed down the issue.

In our managed Windows environment, a third-party endpoint security driver (Corplink) was interfering with the creation of Flutter's plugin symlinks, leaving some generated links unusable.

The workaround: use Windows junctions instead of symbolic links.

I built a small Dart CLI tool to automate this process:

https://pub.dev/packages/win_plugin_link_repair

Install and run:

dart pub add --dev win_plugin_link_repair
flutter pub get
dart run win_plugin_link_repair

Preview the changes first:

dart run win_plugin_link_repair --dry-run

The tool reads .flutter-plugins-dependencies and recreates Windows plugin links as directory junctions using mklink /J.

A few notes:

  • The repair must run on Windows.
  • Run it after flutter pub get, since Flutter regenerates .plugin_symlinks.
  • This is an environment-specific workaround, not a general fix for every Flutter CMake error.

Source code: https://github.com/super-lz/win_plugin_link_repair

Full disclosure: I'm the author of this tool. I wanted to share the investigation because others might encounter the same issue.

Has anyone else experienced endpoint security software or filesystem filter drivers interfering with Dart-created symlinks on Windows?


r/FlutterDev • • 1d ago

Discussion Google Play Billing – “You Already Own This Item” Error in Flutter

1 Upvotes

Hi everyone,

I have implemented In-App Purchases (subscriptions) in my Flutter application using Google Play Billing.

The first purchase flow works correctly:

- I added my Gmail account to the License Testing section in Google Play Console.

- The purchase popup opens successfully.

- I can complete the subscription without any issues.

However, when I try to purchase the same subscription again, I always get the following error:

“You already own this item.”

Things I have already tried:

  1. Refunded all test purchases from Google Play Console.
  2. Cleared Google Play Store cache and data.
  3. Uninstalled and reinstalled the application.
  4. Tried purchasing again after refunding.
  5. Switched Google accounts in the Play Store, but the app still seems to use the previous account.

Unfortunately, the issue is still not resolved.

My questions:

- Why does Google Play still consider the subscription active after it has been refunded?

- How can I completely reset the test purchase state?

- Why is the Play Store not recognizing the newly switched Google account?

- Is there any additional step required to test the same subscription multiple times?

I would really appreciate any guidance or suggestions from developers who have faced this issue.

Thanks in advance!


r/FlutterDev • • 2d ago

Article Shorebird now supports percentage rollouts for Flutter patches

20 Upvotes

Hey r/FlutterDev, Shorebird team here.

One of the scariest parts of code push is that a patch goes to every user at once. If it has a bug, everyone gets the bug.

We just shipped percentage rollouts to fix that. You can send a patch to a share of your users first and raise it as you gain confidence:

shorebird patch android --release-version 1.0.0+1 --track stable --rollout 10

Then, when you're happy:

shorebird patches rollout --release-version 1.0.0+1 --patch-number 1 --percentage 50

A few details people usually ask about:

  • How devices are picked: each install has a random anonymous ID. We hash it with the patch to give the device a fixed spot from 0 to 100%. At 10%, the bottom 10% get it. Different patches shuffle the order, so the same users aren't always first.
  • Rolling back: devices that got the patch remove it on their next check. At 10%, the other 90% never saw it.
  • Percentages only go up. If you need to lower one, the older tracks-based approach still works.
  • Requirements: Shorebird CLI 1.6.139+ and a release built with Flutter 3.35.7+. Older releases get patches at 100%.
  • Plans: basic rollouts work on every plan. Scheduled rollouts (for example 1% → 10% → 50% → 100% with weekends skipped) are Enterprise.

Full write-up: https://shorebird.dev/blog/percentage-rollouts/?utm_source=reddit&utm_medium=social&utm_campaign=percentage-rollouts-for-patches&utm_content=reddit-launch-post

Happy to answer questions in the comments.


r/FlutterDev • • 2d ago

Discussion 23 locales in ARB files on a two-person team. How do you check translations you can't read?

0 Upvotes

We're a two-person team with a small consumer app, and it ships in 23 languages. Neither of us speaks more than two of them.

It started as a cheap bet. Translating the strings with AI took an afternoon, and we figured more languages meant more store searches we could show up in.

What we didn't plan for is the upkeep. Every new screen now means 23 sets of strings. Plurals and gendered words break in ways we can't see. And we can't tell if a language reads naturally or like a machine wrote it, because we can't read it.

The surprise is that some of the smaller languages get found more easily than English, probably because there's less competition there.

So now I'm not sure which way to go: keep all 23 and accept that some read a bit off, or cut down to the handful we can actually check.

If you've localized a small app this wide, how do you check quality in languages you don't speak? And did cutting languages ever hurt you?


r/FlutterDev • • 2d ago

Example AI agent tools for Flutter development worth a look

2 Upvotes

For anyone using Claude Code, Cursor or Copilot with Flutter, these may be worth a look:

- Flutter Agent Plugins and Dart Skills, from the Flutter and Dart teams

- Marionette MCP from LeanCode, the team behind Patrol. It lets your agent interact with the running app (tap, read logs, hot reload), so it can verify its own UI changes

- Context7, for up-to-date package documentation

One note on Marionette: apps with a custom design system need one configuration step before the agent can see your widgets.

These are part of a broader list I maintain: https://github.com/uveshm003/ai-dev-toolkit