r/FlutterDev • • 3h ago

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

2 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 • • 4h ago

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

3 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 • • 15h 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 • • 3h 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 • • 10h 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 • • 4h 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 • • 11h ago

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

3 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 • • 5h ago

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

1 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 • • 1d ago

Article Shorebird now supports percentage rollouts for Flutter patches

19 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 • • 21h ago

Example AI agent tools for Flutter development worth a look

1 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


r/FlutterDev • • 23h ago

Discussion Looking for responses from developers and programming students

2 Upvotes

Hey everyone!

I'm conducting a small research survey to understand how developers and programming students manage their learning journey.

As developers, we constantly learn new technologies, explore frameworks, solve bugs, and encounter concepts that take time to understand.

I'm interested in understanding how people keep track of their learning and manage the knowledge they gain along the way.

I've created a short survey that should take around 2–3 minutes to complete.

Google Form: link

Thanks


r/FlutterDev • • 14h 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 • • 20h ago

Article Review in Dependency Order: A Method for Large (and AI-Written) Pull Requests

Thumbnail
kiransaidev.hashnode.dev
0 Upvotes

r/FlutterDev • • 1d ago

Tooling I built an open-source anime streaming & download app with Flutter and media_kit (libmpv) – Inspired by ani-cli [100% Dart / MIT]

1 Upvotes

Hi r/FlutterDev!

I've been working on a little project over the past few weeks and thought I'd share it here. my reason for sharing is kinda awful haha. i just want some stars for my github porfolio.

It's called ani-mobile, an anime streaming and offline download app built entirely with Flutter and Dart. The idea was to create something similar in spirit to ani-cli, but with a proper cross-platform UI.

It's completely free, ad-free, and open-source under the MIT License.

GitHub: https://github.com/NonLaHu/ani_mobile

A little about how it works

One of the things I spent quite a bit of time on was video playback. Instead of using the default platform video players, I went with media_kit and native libmpv binaries. It gives me better control over playback, including HLS streaming and handling different subtitle and audio tracks.

Another challenge was dealing with video sources. Some CDNs require specific HTTP headers, otherwise they simply return 403 Forbidden. I had to make sure those headers were passed correctly through both Dio and MediaKit's native streaming layer, especially Referer and Origin.

I also added automatic fallback handling. If a video source stops working or gets blocked, the player can try another quality or mirror instead of just leaving the user with a broken player.

As for the architecture, there's no centralized backend involved. The app handles scraping directly on the device using CSS selectors and regular expressions.

Give it a try!

You can check out the source code, build it yourself with flutter run, or grab a precompiled APK from the GitHub Releases page.

I'm still working on the project, so feedback and suggestions are very welcome. I'd also appreciate a GitHub star if you find it interesting!

Thanks for taking a look!


r/FlutterDev • • 1d ago

Article Matching iOS text tracking in Flutter

Thumbnail
kekland.substack.com
1 Upvotes

r/FlutterDev • • 2d ago

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

Thumbnail
serverpod.dev
12 Upvotes

r/FlutterDev • • 2d ago

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

9 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 • • 2d 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

9 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 • • 1d ago

Discussion Foss YouTube client for Android with no ads, no login, PiP and offline downloads: HiveTube v1.16.0

2 Upvotes

Tired of ads, tracking and forced Google login? I built HiveTube.

- Ad-free YouTube + Shorts, no account needed

- Background play, native PiP, audio-only mode

- Downloads up to 1080p, or audio only

- Smart multi-language feed (Tamil, Hindi, Tanglish, Hinglish and more)

- Return YouTube Dislike, chapters, comments, captions

- No ads, no trackers, free, open source

Download: github.com/harish-srinivas-07/hivetube

Storyline:

I already built Hivefy, a Spotify-style music app. HiveTube is the video side of it

hivefy

- Subscriptions via public RSS, stored only on your device

- Home feed built on-device, no central algorithm

- Import subs from Google Takeout, JSON backup/restore

- Themes: System, Light, Dark, OLED black

- Planned: SponsorBlock, NewPipe import, seekbar previews

Feedback, issues and PRs welcome.

Tell me what to fix or add.


r/FlutterDev • • 2d ago

Discussion Turning multiple phones into one distributed speaker system

8 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 • • 1d ago

Plugin Is there a floating package equivalent for iOS?

1 Upvotes

I would like to have picture in picture mode outside of the app.


r/FlutterDev • • 1d ago

Discussion Four things I got wrong building a full-screen voice UI in Flutter (and what fixed them)

1 Upvotes

I've been building a full-screen voice-assistant UI in Flutter: a big animated orb in the middle, a live waveform, a live transcript, a permission primer, and a typing fallback for when the mic is denied. The visual design was the easy part. These four things behaved nothing like I expected, and I couldn't find them written down anywhere, so here they are.

1. The transcript looked frozen, because I restarted its auto-scroll on every rebuild

Live recognition emits interim results a few times a second, and my controller also notifies on every amplitude sample (10–30 Hz). So the transcript's didUpdateWidget was running ~20 times a second, and it scheduled animateTo(maxScrollExtent, 220ms) each time. Every new animation cancelled the last one at around t=0. The transcript — the one thing that has to feel alive while the mic is open — sat still.

Two separate fixes:

  • Rebuild is not content change. Scroll only when the utterance list actually changed: compare the length and the last utterance's text, not the fact that didUpdateWidget ran.
  • Follow only while pinned to the bottom, and only while the user isn't reading. I keep a pinned flag ("within 24 px of maxScrollExtent"). The subtle part is distinguishing the user's scroll from my own: ScrollUpdateNotification fires for my animateTo as well, so a delta-based check also reacts to my own animation. UserScrollNotification fires only for touch and drag — and there ScrollDirection.reverse means the user is pulling back towards older messages, so I unpin on that and re-pin when the list settles at the bottom:
NotificationListener<UserScrollNotification>(
  onNotification: (n) {
    if (n.direction == ScrollDirection.reverse && pinned) {
      setState(() => pinned = false); // user is rereading; stop following
    }
    return false;
  },
  child: ListView.builder(controller: _scrollController, ...),
)

Related trap: don't append a second bubble when a partial becomes final. Partials and finals share one list slot (copyWith(text: finalText, isPartial: false)), so the row goes from dimmed to solid with no layout jump. If you append, every turn leaves two bubbles and the list grows under the user's thumb.

2. Hold-to-talk is not a long-press callback and my 250 ms guard was dead code

onLongPressStart / onLongPressEnd look sufficient until a real thumb touches the button. Things that actually happen:

  • A cancelled pointer. onLongPressCancel fires when the pointer is cancelled — a system gesture (edge back-swipe, notification shade) steals it, the app is backgrounded, or another recognizer wins the arena. If you only handle the end event, the mic stays open after a cancelled gesture. In a voice app that isn't cosmetic: it's a microphone that keeps recording.
  • Sliding your finger off the button does not cancel a long press. Flutter's slop is enforced before the press is accepted; once it's a long press, a move just produces onLongPressMoveUpdate. If you want WeChat-style "slide off to abandon the turn", you have to hit-test the pointer yourself in that callback. I didn't, and I had written a comment claiming I handled it.
  • My accidental-tap guard was unreachable. I recorded the press timestamp and rejected releases under 250 ms as accidental. kLongPressTimeout is 500 ms, so onLongPressStart never fires before then and capture never starts — a quick tap never enters that path at all. The check was dead code that made me feel safe. What actually needed handling was a tap while the assistant is speaking (interrupt, in both trigger modes), and a second finger landing mid-hold, which is why the press state is tracked per gesture rather than per widget.

If you're doing hold-to-talk, consider Listener with onPointerCancel alongside the gesture detector: it catches pointer cancellations the gesture arena resolves away from you.

3. Amplitude at 20 Hz rebuilt the whole screen

Each VoiceLevelEvent called notifyListeners() on the controller the Scaffold listens to, so every level tick rebuilt the orb, the waveform and the transcript. Three changes, in order of how much they mattered:

  • Smooth in the controller, not the widget. Raw recognizer amplitude is noisy; I run an exponential moving average (_smoothed += (raw - _smoothed) * 0.35) and keep the last 28 values in a ring buffer for the bars. Widgets read the smoothed value, so jitter never reaches layout, and the orb's size changes are visually continuous instead of twitchy.
  • One AnimationController for all five orb states. A single 4-second repeating controller drives a CustomPainter that switches its drawing by state (breathing core, ripples, orbiting arc, speaking blob, error pulse) and reads its palette from a ThemeExtension. Not one controller per state, not an AnimatedSwitcher between five painters.
  • RepaintBoundary around the orb and the bars. That isolates repaint, not rebuild — worth being precise about, because my first instinct was to assume the frame cost came from painting when a good part of it was the tree rebuilding.

Honest caveat: this still rebuilds the tree at the level-event rate. What I'd do properly is a separate Listenable for amplitude-only widgets so the transcript isn't in the rebuild path at all. I left it as a comment instead of doing it, which is the kind of thing that survives into production.

Reduced motion: when MediaQuery.maybeDisableAnimationsOf(context) is true, the painter gets a fixed t (0.25) instead of the controller's value — a static frame of the same painting, while the waveform bars keep moving because they're data-driven, not animation-driven. And the engine contract says levels are normalized 0.0–1.0, so the dB→0..1 mapping lives in the adapter (iOS and Android report very different ranges — do not feed raw dB into the widget layer).

4. Every transition has to be idempotent, because engine events arrive out of order

The state machine is deliberately linear: idle → listening → processing → speaking → (listening | idle), with error reachable from anywhere. Real engines don't respect that order. A level event lands after you've left listening; a second finalization arrives while you're already processing; a tap opens the mic you just opened.

Three guards removed almost all of the weird states:

  1. Level events are dropped unless the current state reacts to amplitude (listening or speaking).
  2. A finalized user utterance is accepted in any state except processing — the final event is itself what moves listening → processing, so a final arriving during processing is a duplicate.
  3. startListening() does nothing if already listening or processing, and interrupts the reply when called from speaking.

No event queue, no debounce timers. The UI never has to guess whether the mic is open: the state is the source of truth and the engine is downstream of it.

The one thing guards can't fix is a stale completion: a speaking-completed for a turn you interrupted arriving after the next turn has started, which the state check would happily accept and end the new reply early. That's an engine-contract question — "no events for a turn after it's cancelled" — and since this is a swappable adapter, the contract needs to say it in writing, or someone else's engine will break the machine in a way that looks like your bug.

Two smaller ones

  • 320 px and the keyboard. A 230 px orb plus waveform plus transcript doesn't fit a small phone. The orb column sits in a SingleChildScrollView with mainAxisSize.min inside the flexible region, the transcript is Flexible, and the typing fallback replaces the mic row instead of sitting above it — otherwise the keyboard inset squeezes two rows into the space of one.
  • Accessibility here is mostly about state, not motion. The mic button's Semantics label matches the visible hint and changes with state ("Tap to talk" → "Listening" → "Thinking" → "Speaking"), and the transcript is SelectableText — people do want to copy what the assistant said. I did not set liveRegion, so whether those label changes are actually announced depends on where accessibility focus sits; that's a real gap, and announcing every partial result instead would be worse.

For reference, the whole thing ended up with zero third-party dependencies, 17 files under lib/, 70 tests, flutter analyze clean, and a scripted mock engine so the demo and the widget tests run offline with no keys.

Source, if any of it is useful to look at: https://github.com/StephenColor/flutter-voice-mode-kit

Happy to go deeper on any of these. And if you've solved the hold-to-talk pointer-cancel problem differently, I'd like to compare notes — that's the part I'm least sure I got right.


r/FlutterDev • • 2d 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 • • 2d ago

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

3 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 • • 2d ago

Article flutter clean never touches the Rust crate inside your app, so my cleaner looks for nested projects (open source)

1 Upvotes

If you keep a Rust crate inside a Flutter app (flutter_rust_bridge, or just a rust/ folder), flutter clean empties build/ and leaves rust/target alone. That target folder is often the bigger one.

That's the case that shaped Kruftle. It's a Flutter desktop app for macOS, Windows and Linux. It scans a folder, finds every project including the ones nested inside other projects, and runs each one's own clean command: flutter clean for the app, cargo clean for the crate, and so on for 50 toolchains.

It only deletes a folder directly when the SDK isn't installed, and it asks first every run. It also skips anything git tracks, because some repos commit their build folder. That makes it slower than npkill or kondo, which just delete. I'm fine with that trade.

Rough edge: builds aren't signed yet, so the first launch on macOS and Windows needs one extra step (it's in the README).

Source (GPL-3.0): https://github.com/dizitart/kruftle