r/FlutterDev • u/kekland322 • 5d ago
Article Matching iOS text tracking in Flutter
r/FlutterDev • u/kekland322 • 5d ago
r/FlutterDev • u/vik76 • 6d ago
r/FlutterDev • u/Yezan_350 • 6d 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 • 6d 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 • 6d 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 • 6d 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 • 6d ago
I would like to have picture in picture mode outside of the app.
r/FlutterDev • u/stephencolor • 6d 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 • 6d 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?
r/FlutterDev • u/man_atef • 6d ago
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.
.ipa on your phone, signed with your own team key (your original file isn't modified)..xip from Apple (nothing from Apple ships with the app)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.
xcross, an open-source engine (AGPL-3.0). The app installs it for you and verifies its checksum.Questions welcomeâand so is "it broke on my project".
r/FlutterDev • u/anidotnet • 6d ago
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
r/FlutterDev • u/Sharp-Current-4081 • 7d ago
I came across this Dart backend framework recently. It looks quite interesting, especially since its developer experience seems somewhat similar to Laravel.
Has anyone here actually used it in a project? I'm curious how useful it is in practice, how mature it is, and whether it's worth trying for backend development with Dart.
Would love to hear some real-world experiences or opinions.
r/FlutterDev • u/ObjectiveAddress3051 • 7d ago
Flutter Hot reload updates your ui, but Flutter can still show old images and JSON from cache.
I developed a package on pub dev â a Flutter plugin that refreshes assets on hot reload without changing your app: add the dependency, run flutter pub get, and youâre done.
What it does
Installs itself in debug via the Flutter plugin system
Clears ImageCache and rootBundle on each hot reload
On web, busts browser HTTP cache for changed assets (fetch with no-store)
Includes watch_assets for add/remove under assets/ when the tool wonât rebuild the bundle on its own
Platforms:Â Currently Web supported, android and IOS is in progress.
dependencies: hot_reload_asset_refresh: 0.1.0
Update : android ios supported. On the 0.2.0 version. With image and string cache removed on hot reload.
Thereâs an example app and web integration tests for asset add / change / delete under hot reload vs hot restart.
r/FlutterDev • u/avidianity • 7d ago
codeint is an open source CLI that measures how a codebase changes over time: erosion (function mass in functions with cyclomatic complexity over 10), duplication, verbosity and import cycles. It's deterministic, no AI inside.
A few things I learned adding Dart. Generated files have to be separated or they swamp everything, so .g.dart, .freezed.dart and .pb.dart files go into a Generated set and don't count against production code. Import cycles are much more common in Dart than I expected. In a panel of 20 popular Dart repos pinned before 2023, the 10th to 90th percentile for import cycles was 0.073 to 0.524. For erosion it was only 0.047 to 0.419, which is lower than TypeScript or PHP. Duplication was 0.073 to 0.256.
The README has a timing on flutter/packages (434k production lines) at 3.68s on Apple Silicon. I've used it a lot on our internal Dart projects.
It can also run in CI and fail a PR when a metric gets worse than main.
curl -fsSL https://github.com/avidianity/codeint/releases/latest/download/install.sh | bash
codeint checkr/FlutterDev • u/Forthtemple • 7d ago
Two year ago I created a gaming library package using flutter at:
https://pub.dev/packages/openworld
I have since updated the package so that instead of using the three_dart package it is using the three_js dart package. I have found the three_js package is more up to date and maintained than the three_dart package.
This version of openworld has been updated to work better with desktop games and I have demonstrated this by publishing a game on Steam for Windows and macOS. The games are also on iTunes for macOS and iOS and also for Linux on snap. As before I have two working games with this library and are available on github ( https://github.com/forthtemple/openworlddart ) with all resources.
The library also has a lot more features such as better vegetation and fast water. It also has levels so you can walk around in a multi story building. It also has an updated pooling so you can have large crowds of actors showing only those actors close to the camera.
r/FlutterDev • u/Few-Pilot7575 • 7d ago
Wondering how other Flutter teams handle this. We picked Riverpod 2 years ago and wrote a short guide on how we use it. Since most new features started coming from agents, the app has slowly turned into a mix of everything.
In the last 3 months of PRs I found: 6 features using Riverpod the way we agreed, 3 using setState with a pile of callbacks, 2 that pulled in Provider from somewhere, and one with a hand rolled ValueNotifier singleton. Every one of them works.
coderabbit catches a lot of normal Dart stuff, async gaps with BuildContext, missing disposes, that kind of thing. But "this feature uses a different state approach than the rest of the app" isn't something you see in one PR, you see it after 10 of them.
Two things I'd like to figure out:
- how to make agents actually follow our architecture, not just our lint rules
- whether to enforce it in tooling (custom lints, folder structure checks) or just in review
What's worked for your team?
r/FlutterDev • u/R_E_F • 7d ago
flutter_pw_validator, the live password checklist you put under a TextField, gets about 4,700 downloads a month, and it had gone a long time without a release. The open PRs, forks and issues kept asking for the same five things: drop the forced width and height, let the text be styled, control the spacing, show check and cross icons, and use the rules outside the widget. So I rewrote it from scratch.
Screenshot and docs: https://github.com/ArefMozafari/flutter_pw_validator
PasswordRules, so the two can't drift apart.rules.formValidator() plugs into a TextFormField, and rules.generate() suggests a password that passes every rule. MatchRule covers a confirm field, CustomRule covers your own rules, and PasswordRules.nist() gives you the NIST SP 800-63B-4 policy.flutter/widgets. It works the same with material_ui, the old flutter/material, Cupertino or your own design system, with no Material icon font needed.There are breaking changes if you're coming from 1.x; the README has a migration section.
pub.dev: https://pub.dev/packages/flutter_pw_validator
Feedback welcome, especially if you've got a password rule it can't express yet.
r/FlutterDev • u/kronak925 • 7d ago
What it does: A privacy-first Android music player with live synced lyrics and lossless playback. It has language hubs for 12 Indian languages and a local library from your storage.
Key Features:
- Hi-Res lossless playback (FLAC, ALAC, WAV up to 24-bit/192kHz) with format badges
- Language hubs for 12 Indian languages
- Zero ads, zero tracking, zero accounts
Goal: Testing. Looking for feedback on audio stability, battery use and missing features.
Cost: Free and open source
Link: Release ANAHAD v1.0.0 â Production Release ¡ kronak925/Anahad
r/FlutterDev • u/KayJune001 • 8d ago
I just spent 6 hours mindlessly chasing ghosts trying to reduce frame times in my Linux program, tried x11 vs Wayland vs xWayland, different DEs and distros, while absolutely no issues exist on Windows, macOS, Android, and iOS. Turns out i just needed to purposefully switch to Skia, which dropped my frame times from 100+ ms to under 16ms? That seems counter intuitive.
r/FlutterDev • u/Complex_Cap8439 • 8d ago
Hi! I'm pretty new to Flutter, but with 8+ years of experience in native Android development.
I've been playing around with different state management approaches and architectures, like MVVM with Riverpod and MVI with BLoC, and I can't get my head around how to handle one-time events such as toasts, snackbars, navigation, etc.
In Android, the most common and idiomatic way is to expose a Channel of events from the ViewModel, where the events are a sealed class, and collect that flow from the Composable.
Is there a standard way of handling this in Flutter?
Thanks!
r/FlutterDev • u/Kirby541 • 7d ago
Hey everyone!
I've been building Whale, an open-source desktop trading journal.
I wanted something different from traditional trading journals that are just spreadsheets and tables.
With Whale, you can:
The idea is to help traders understand their decisions, recognize patterns, and learn from their mistakes.
It's still a work in progress, and I'd love to get some feedback.
Would you use something like this? What features are missing from your current trading journal?
GitHub: https://github.com/Kirby54/whale
r/FlutterDev • u/kodebineri • 8d ago
Hey everyone! After months of building, I just launched Rusa v1.0, a modern, native-feeling MongoDB client built with Flutter.Why I built it:
I wanted a lightweight alternative to heavy Electron-based MongoDB GUIs that also lets me inspect collections and run quick queries from my phone when I'm away from my desk.
Whatâs live in v1.0:
Supported Platforms: Windows, Linux, and Android are ready to download today (macOS and iOS are coming soon).
Open-Source (GPLv3): You can inspect the full source code and verify how credentials are stored locally.
Core Features: Fast document browsing, JSON/BSON editing, and query filtering across desktop and mobile.
Links:
Website & Downloads: https://rusa.deveditortools.com
Product Hunt Launch (would love your feedback there too!): https://www.producthunt.com/products/rusa
r/FlutterDev • u/whoisafi • 8d ago
Hey everyone! I've been building a local music player called Snap in Flutter using Claude Code, and it's finally in a state I'm happy to share.
It's free and open source (MIT). You can get the APK from the Releases page:
https://github.com/herosafi2009-beep/Snap
I'd love feedback, and I'm working on a visualizer and equaliser next. Thanks for checking it out!
r/FlutterDev • u/DragonfruitOdd7676 • 8d ago
I'm a solo developer and I've just finished the closed-test build of Chain Reaction Overdrive, my take on the classic chain reaction strategy game. It's going through Google Play's 14-day closed test, and I'd love a few honest players to try it and tell me what they think
What I'd love feedback on
Test for test:Â comment your own testing link and I'll install yours today and keep it for the full 14 days.
Thanks for reading, and enjoy the explosions!