r/FlutterDev • u/raman4183 • 5d ago
Tooling An update on analyzer_kit
r/FlutterDev • u/Promatics_Dev • 6d ago
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 • u/yuki-developer • 6d ago
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 • u/ShorebirdDev • 6d ago
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 • u/tksdesign0 • 6d ago
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.
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.--rollout) or target specific country codes (--countries).--flavor, custom entrypoints (-t), and --dart-define.tk_ota_push v2.0.5): https://pub.dev/packages/tk_ota_pushWe'd love to get your feedback on the CLI ergonomics and multi-environment workflow!
r/FlutterDev • u/Secret_Bonus_1173 • 6d ago
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:
macos-latest runners or maintain Docker setups..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 • u/ArshadIqbalOfficial • 6d ago
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 • u/Salt_Description_256 • 6d ago
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_repairPreview the changes first:
dart run win_plugin_link_repair --dry-runThe tool reads .flutter-plugins-dependencies and recreates Windows plugin links as directory junctions using mklink /J.
A few notes:
flutter pub get, since Flutter regenerates .plugin_symlinks.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 • u/saddamsk0 • 6d ago
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:
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 • u/ShorebirdDev • 7d ago
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:
Happy to answer questions in the comments.
r/FlutterDev • u/ug00gu • 6d ago
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 • u/Particular-Laugh-645 • 7d ago
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 • u/Aegon040 • 7d ago
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 • u/Alarmed_Umpire_2912 • 7d ago
r/FlutterDev • u/Alarmed-Fall2044 • 7d ago
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
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.
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 • u/kekland322 • 7d ago
r/FlutterDev • u/vik76 • 8d ago
r/FlutterDev • u/Yezan_350 • 8d ago
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 • u/The_RockETman_show • 8d ago
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 • u/harishsrinivas • 8d ago
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 • u/More_Society_6051 • 8d ago
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 • u/beatpaq • 8d ago
I would like to have picture in picture mode outside of the app.
r/FlutterDev • u/stephencolor • 8d ago
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.
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:
didUpdateWidget ran.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.
onLongPressStart / onLongPressEnd look sufficient until a real thumb touches the button. Things that actually happen:
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.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.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.
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:
_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.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).
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:
listening or speaking).processing — the final event is itself what moves listening → processing, so a final arriving during processing is a duplicate.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.
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.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 • u/anant8140 • 8d ago
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:
So I made llm_markdown:
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?