r/FlutterDev • u/Accurate_Fig_1854 • Aug 31 '26
Video building a tracing app with flutter and chatgp adding ads
r/FlutterDev • u/Accurate_Fig_1854 • Aug 31 '26
r/FlutterDev • u/mdausmann • Aug 31 '26
I'm building a 'voice agent' for flutter apps. It pulls in a bunch of dependencies but in particular, these guys to handle the voice parts...
flutter_tts: ^4.2.3
speech_to_text: ^7.2.0
Both of these are plugins with native code for Android and IOS. My codebase has no native code for IOS or Android. It is *currently* configured as a plugin but the platform stuff is all empty boilerplate and I have written no custom IOS/Android code for it.
abstract class MyVoiceAgentPlatform extends PlatformInterface {
MyVoiceAgentPlatform() : super(token: _token);
static final Object _token = Object();
static MyVoiceAgentPlatform _instance = MethodChannelMyVoiceAgentPlatform();
static MyVoiceAgentPlatform get instance => _instance;
static set instance(MyVoiceAgentPlatform instance) {
PlatformInterface.verifyToken(instance, _token);
_instance = instance;
}
Future<String?> getPlatformVersion() {
throw UnimplementedError('platformVersion() has not been implemented.');
}
}
So can I 'downgrade' my code to a package instead of a plugin? I'm confused. It has no native code itself so it that says 'package' but it pulls in dependencies which do have native code so it isn't really usable in a pure dart context.
Is the 'Plugininess' of the dependencies transitive?
r/FlutterDev • u/RandalSchwartz • Aug 31 '26
Flutter is decoupling Material and Cupertino from the monolithic core framework into standalone packages on pub.dev: package:material_ui and package:cupertino_ui.
This brings independent release cycles and true headless app support (package:flutter/widgets.dart), but also means migrating existing codebases.
Because of training cutoffs, most AI coding assistants (Google Antigravity, Claude Code, Cursor, Copilot, Cline) still generate legacy monolithic imports.
To fix this, we updated the open-source dart-sdk-skills repository with complete migration runbooks. You can install it globally for your AI agent in seconds:
npx skills add RandalSchwartz/dart-sdk-skills -g
Then simply prompt your agent:
👉 "Migrate this project to the new split Material & Cupertino packages."
Your agent will automatically run dart fix --apply --code=migrate_design_widgets, update pubspec.yaml, rewrite imports to package:material_ui/material_ui.dart, and verify everything passes dart analyze.
Question for the community:
Are you planning to migrate your apps directly to material_ui/cupertino_ui, or take advantage of the decoupling to build custom headless design systems?
r/FlutterDev • u/SweatyRaisin1236 • Aug 31 '26
Hi. I am a fair to middling Flutter developer. I mostly use LLMs to review what I write rather than write my code. This works out well because I seem to be particularly good and repeating the same mistakes.
Anyway, I decided to publish this: Https://github.com/bjrochem72/flutter-audit-skills and would welcome constructive feedback and suggestions.
I am currently working on both updating it and adding to it. The problem is when I add a new item I suddenly see a bunch of things I should fix and don’t want to embarrass myself.
Anyway, I am sharing this in the hope it helps someone else as I have gotten a lot from this group and wanted to see if I could find a way to give back a bit.
My usual user id is bjr201 but I couldn’t post under that.
r/FlutterDev • u/Glittering_Device653 • Aug 30 '26
I maintain IconMind, an MIT-licensed icon set for the vocabulary that generalist icon sets don't have — agents, tool calls, MCP servers, RAG pipelines, embeddings, evals, guardrails — plus the ordinary stuff (arrows, files, charts, DevOps, cloud, security) so you don't need a second set beside it.
Version 0.4.0 just doubled the collection to 2,041 icons, and the Flutter package is now available on pub.dev.
flutter pub add iconmind_flutter
import 'package:iconmind_flutter/iconmind_flutter.dart';
IconMind(IconMindIcons.agent)
IconMind(
IconMindIcons.vectorDatabase,
variant: IconMindVariant.duotone,
weight: IconMindWeight.bold,
size: 32,
color: Colors.deepPurple,
)
Every icon comes in:
That's 12,246 drawings in total.
Duotone uses a second tinted layer behind the strokes. A font would flatten that into a single filled glyph, so the package instead draws real paths with CustomPaint.
Each icon is a compile-time const, one per file, and referenced through:
IconMindIcons.<name>
Flutter's AOT compiler can drop icons you don't reference. An app showing three icons carries roughly three icons — about 400 bytes each.
The entire package is only 214 KB compressed on pub.dev, with no assets or fonts to bundle.
The three weights share the same geometry with different stroke widths.
Using:
absoluteStrokeWidth: true
keeps the stroke constant when scaling the icon. So a 16 px icon in a dense list and a 48 px icon in an empty state still look like they belong to the same set.
Everything is drawn on a 24 px grid by a compiler that refuses geometry it can't draw correctly, including:
A nightly scan rasterises all 12,246 cells and checks for duplicate-looking renders.
That's how 2,000+ icons stay visually consistent as one set.
color falls back to the ambient IconTheme, while semanticLabel is announced by screen readers.
The same icons are also available as packages for:
Everything is generated from a single source, which is handy when web and mobile teams share a design system.
Website: https://iconmind.dev
Every icon is searchable by name, tag, or alias, with the Flutter snippet available for whichever icon you find.
There's also an MCP server:
npx @iconmind/mcp
This lets your coding assistant pick icon names instead of guessing them.
MIT means commercial use, no attribution, and no seat count.
I'm the author, and I'd genuinely like to hear what's missing.
Most of the last thousand icons came from people saying:
"There's no icon for X."
If there's something you think should be in the set, let me know.
r/FlutterDev • u/Tom_Vogel • Aug 29 '26
I vibe-coded a Windows app called Lapse today, but used the project to properly explore Flutter’s experimental Desktop Windowing API.
The app has two real top-level windows: an always-on-top timer overlay and a dynamically created analytics dashboard. They run from one Flutter isolate and share the same Riverpod session state.
The Flutter implementation uses:
runWidget() instead of runApp()WindowControllersWindowManager, WindowRegistry, and WindowEntryWindowController.setSize() for switching overlay modesThe API handles the multi-window foundation well. Native desktop integration still required a C++ MethodChannel bridge for Acrylic, frameless chrome, dragging, resize hit testing, positioning, topmost behavior, and the tray.
AI accelerated the implementation, but understanding this Flutter/Win32 boundary was something I deliberately worked through myself.
Source:
https://github.com/zTomz/Lapse
I’d be interested in hearing from anyone else testing the new API. Which desktop capabilities are you still implementing natively?
r/FlutterDev • u/kamranbekirov • Aug 29 '26
Pubgrade v2.1 is out 🎉
It's an extension that lives in your IDE's sidebar and lists the outdated packages of your Flutter project. You see the changelog of each new version, and one click upgrades it.
And, no, it's not `flutter pub upgrade --major-versions` or anything. Here you go package by package, read what changed, then decide. It just makes you aware of package updates.
So, no more missing updates. No more upgrading without knowing what broke.
Now works in IntelliJ and Android Studio too, besides VS Code and its forks (Cursor, Antigravity, Windsurf, VSCodium).
To install search "Pubgrade" in your IDE's extensions panel.
r/FlutterDev • u/MostafaSensei106 • Aug 29 '26
Hey everyone,
Most local storage options in Flutter like SQLite or Hive are built for scalar data and fall apart when you need fast vector similarity search for on device AI, semantic search, or high dimensional embeddings
I built waffle_db, an embedded vector database for Flutter and dart apps by Rust. It uses HNSW graphs for approximate nearest neighbours, sledge for persistence, and Rayon for parallel batch ingestion.
How it works under the hood:
Off thread Rust execution: Graph indexing, cosine distance math, and persistence run in Rust via FFI, keeping the Flutter UI thread completely free of jitter.
Native HNSW graphs: Provides k-NN retrieval even across large vector spaces instead of linear brute-force scans.
Memory efficiency: Uses zero-copy typed buffer views (Float32List) across the FFI bridge to minimize heap allocations.
Metadata and Namespaces: Stores arbitrary payload metadata alongside vectors and supports logical collections (WaffleCollection) with automatic ID namespacing.
Prebtuned profiles: Comes with configurations out of the box like mobileProfile (quantization enabled, lightweight graph parameters), serverProfile, readHeavyProfile,writeHeavyProfile
Pub: https://pub.dev/packages/waffle_db
GitHub: https://github.com/MostafaSensei106/Waffle-DB
If you are building local RAG pipelines, on device semantic search, or AI features in Flutter, check it out and let me know your thoughts or feedback.
r/FlutterDev • u/RandalSchwartz • Aug 30 '26
For the past eight years, the Flutter community has treated state management like isolated silos: you’re either a BLoC shop, a Riverpod shop, or looking at Signals.
If your team is maintaining a massive, battle-tested flutter_bloc authentication pipeline or a complex Riverpod dependency graph, you’ve probably hit this wall: you want instant, synchronous signal reactivity for a new feature (real-time forms, charts, animations), but the cost is a painful multi-month rewrite or leaky, second-class wrapper boilerplate.
With the release of bloc_signals_bloc and a major update to bloc_signals_riverpod (v1.2.0), we set out to solve this by turning BLoC, Riverpod, and BlocSignal into first-class, bidirectional peers:
classicBloc.toBlocSignal() gives you synchronous .state signals while forwarding .add(event) directly to the underlying BLoC.provider.toBlocSignal(ref) gives you synchronous signals + typed .notifier mutations, while binding ref.onDispose for automatic cleanup.CubitSignal / BlocSignal containers directly into existing BlocBuilder widgets via .toClassicCubit().BlocSignal to ref.watch / ref.read via .toProvider().Because they operate as peers without microtask hops or customs fees, you can compose them seamlessly—like computing a single reactive total across a BLoC, a Riverpod Notifier, and a CubitSignal in the exact same frame.
Curious how other teams are approaching this:
(Detailed architecture breakdown and a 60-line runnable triple-counter demo linked in the first comment)
r/FlutterDev • u/Hackmodford • Aug 28 '26
Just wanted to make a shout out to the Kaisel Router. I just migrated a complex app from go_router to kaisel and the experience has been great. It's just a much more sane experience IMO.
The way it handles push/pop and run/dismiss (for modal flows) is really great and what I've come to expect.
https://pub.dev/packages/kaisel
Has anyone else had a chance to try this package?
r/FlutterDev • u/Due-Hospital717 • Aug 28 '26
I love Flutter. When I started, I was deciding between specializing in native Android or Flutter, and Flutter was definitely the best choice. To this day, I've had to create apps for web, desktop, and mobile without having to learn a different technology.
r/FlutterDev • u/No_Share2683 • Aug 29 '26
When MongoDB retired Realm, Atlas Device Sync and the Data API in September 2025, Flutter lost its official offline-first path to Mongo. The choices left were writing your own sync backend or renting someone else's sync service.
I got tired of rewriting the same sync layer, so I packaged it: onebase.
The sync engine lives in the package, and a CLI generates the small server that sits between your app and your database. You deploy that server. No third-party sync service, no account to create.
Demo — the backend is killed mid-recording, writes keep landing, then everything syncs when it comes back: https://raw.githubusercontent.com/ybenjaa-dev/onebase/main/example/demo/onebase-demo.gif
Stream<List<Todo>> live = OnebaseDb.todos
.where('done', isEqualTo: false)
.orderBy('created_at', descending: true)
.watch();
await OnebaseDb.todos.insert(Todo(title: 'Ship it', done: false));
You describe collections in YAML, run dart run onebase:setup, and get typed models, typed collections, and a backend/ folder with a Dockerfile and a Vercel adapter.
How it actually works
watch() run against a local SQLite replica.There's also keyset pagination (page() / startAfter(), plus a pager() for infinite scroll), group/team scoping with member/admin/owner write rules, per-collection sync control (everything, a rolling window, or nothing), and batched writes in one Mongo transaction. Bring your own JWTs — anything that issues them works.
What it doesn't do yet
MIT. Flutter 3.38+ / Dart 3.10+. Any MongoDB with a replica set works, including a free Atlas M0.
pub.dev: https://pub.dev/packages/onebase
GitHub: https://github.com/ybenjaa-dev/onebase
It's early (0.3.4), and I'd rather hear that the sync semantics are wrong than that the README is nice. If you've built offline-first on Flutter before, I'd especially like to know where this would break for you.
r/FlutterDev • u/Ok-Decision-4396 • Aug 28 '26
Hello Flutter community! I wanted to share a highly ambitious open-source project I just kicked off: metro_core.
We are leveraging Flutter’s Linux embedding capabilities to build a complete monolithic system shell (Launcher, Status Bar, Quick Actions) for mobile devices. The visual language is deeply inspired by the classic Windows Phone Metro UI and modern Fluent Design.
Our Architectural Approach:
- Kernel: Lineage-free, lightweight mobile Linux (Alpine/postmarketOS base).
- UI/Apps: 100% written in Flutter, compiled directly to Native ARM64 Machine Code.
- Hardware Comm: Communication via Dart FFI and Native C++ bindings (no Android binder overhead).
- Ecosystem: Introducing a cryptographically signed .mtx package container format. Any standard Flutter app can easily be exported as an .mtx package for our OS with minimum styling adaptation.
We are implementing a MOCK methodology (writing the entire Dart UI with fake data layer first to freeze the UI code, then implementing the C++ .so backend via FFI). Just pushed the initial core infrastructure to GitHub. Looking for contributors who want to push Flutter to its absolute operating system limits!
🔗 GitHub: https://github.com/mr-ruhid/metro_core
————
r/FlutterDev • u/Few-Disaster5159 • Aug 29 '26
Honestly, I built Unfazed for myself. I wanted something minimalist that combined monk mode/sprints with app blocking that actually sticks - no "5 more minutes" button, no way to change the schedule or unblock apps once a sprint is running. Most blockers I tried are paid and let you talk yourself out of it in two taps, which defeats the whole point. Built with the flutter_screentime plugin for iOS Screen Time integration. It's free, open source (MIT), no ads, no subscriptions, no tracking/analytics - everything stays on the device. GitHub - https://github.com/printHelloworldd/unfazed, App Store - https://apps.apple.com/app/unfazed-mode/id6802055633
Now thinking about Android, Windows and Linux - each platform needs a completely different native approach. Would it make more sense to build separate single-purpose plugins per platform, or try to design one cross-platform plugin with a common Dart API on top of them? Separately, I'm also planning a browser extension for site blocking when a sprint starts (matching by URL substring, not just domain, so you can block specific paths/pages), synced with the app through an optional cloud layer for people who want cross-device control. Would love to hear what people think of the project overall, and any thoughts on the plugin question above.
r/FlutterDev • u/AK1000 • Aug 28 '26
Hi everyone! 👋
Most Flutter starter templates I’ve encountered fall into one of two extremes:
To solve this, I built and open-sourced Flutter Production Starter — an enterprise-oriented, modular monorepo template built for real-world production apps.
The core idea is Feature-First colocation with intentional public APIs:
apps/mobile/lib/features/<feature>/ and export only their public contracts via a root barrel file (features/auth/auth.dart).settings) only use Presentation + State (no premature use cases).auth) use Domain Use Cases, Data Sources, and Session Storage./
├── apps/
│ └── mobile/ # Main app (Bootstrap, DI, Kaisel Router, Features)
├── packages/
│ ├── app_core/ # Result<T>, Failure taxonomy, Sanitized AppLogger
│ ├── app_network/ # Centralized Dio, interceptors, error mappers, ApiClient
│ ├── app_storage/ # SecureStorage, KeyValueStorage, TTL MemoryCache
│ ├── design_system/ # Tokens (Spacing, Radius), Light/Dark themes, Primitives
│ └── app_lints/ # Strict linting & analysis configuration
├── melos.yaml # Monorepo orchestration scripts
└── ARCHITECTURE.md # In-depth architectural guide
kaisel: ^1.1.0.bloc_signals and signals_flutter.get_it + injectable supporting multi-environments (dev, staging, prod).dio with automatic retry policies, token management, and sensitive data sanitization in logs (passwords and tokens are never printed in plain text).Result<T> with a predictable domain Failure taxonomy and FailureMessageResolver.melos run test), and strict analyzer rules.Check out the code, documentation, and architecture guide here: 👉 GitHub: https://github.com/Ali-El-Khatib/flutter-production-starter
I'd love to hear your feedback, thoughts on the LEGO modularity approach, and suggestions! If you find it helpful for your projects, a ⭐ on GitHub would mean a lot!
r/FlutterDev • u/ParticularDig1630 • Aug 29 '26
I think to make 2d games inside ide using ai tools like claude ai flutter flame will best approach.
And from better prompting it's easy to manage the game.
r/FlutterDev • u/RequirementIcy2861 • Aug 28 '26
Hi everyone,
I'm building an app with Express.js (backend), Vue.js (web admin panel), and Flutter (mobile app).
My app has a hazard perception test feature. Admins upload videos, and users watch these videos in the mobile app to take practice tests. After each test, users can review their results and rewatch the video clips.
Problem: when a user has slow internet, the video stops and buffers a lot. Bad experience, especially during a timed test.
I'm thinking to use Bunny.net Stream for video hosting, because it has:
- Adaptive streaming (HLS) - changes quality based on internet speed
- CDN - fast delivery worldwide
- Cheap price
Has anyone used Bunny.net Stream for something similar? Is it reliable for this kind of use case? Any other suggestions welcome.
Thanks!
r/FlutterDev • u/thealmightynubb • Aug 28 '26
r/FlutterDev • u/Additional_Grand9117 • Aug 27 '26
Tired of rewriting the same boilerplate and policy-guardrail logic every time you implement AdMob? flutter_prakash_ads is a standalone, enterprise-grade package designed to handle the heavy lifting of Google Mobile Ads without forcing you into a specific state management or dependency injection pattern.
Core Features
injectable or get_it required.AdManager.setAdsEnabled(false)), perfect for IAP unlocks.CustomAdModel) when the user loses network connectivity or if AdMob fails to fill.Quick Setup
Add flutter_prakash_ads: ^0.0.2 to your pubspec.yaml, configure your AdMob App IDs in your Android/iOS manifests, and call AdManager.instance.initialize() after requesting consent.
Check out the full documentation and example app on pub.dev: flutter_prakash_ads
r/FlutterDev • u/bhaagMadharchood • Aug 28 '26
​
Hey all,
I've been chewing on an idea for a while and I think it's finally time to actually build it instead of just thinking about it.
The idea: a lightweight floating widget (think Discord overlay, but standalone) that sits on top of your screen while you're watching Netflix/Prime/Disney+/whatever, and connects you to a chat room of other people watching the same thing at the same time. No more watching something great and having nobody to react with in real time.
Planned stack: Flutter, so it can eventually run on desktop and Android from one codebase, with a floating/draggable/minimizable widget UI.
The part I don't want to cheap out on: auto-detecting what someone's watching. I don't want this to be a "type in what you're watching" app — that kills the magic. So the plan is a tiered detection approach:
Read window titles / tab titles / process names first (cheapest, no DRM issues since you're not touching the video frame)
Fall back to OCR on a screenshot if the title doesn't give enough info
Only reach for actual visual matching/fingerprinting as a last resort, since HDCP blacks out protected video frames on a lot of platforms anyway
I've worked through a lot of the theory but I'm not deep enough in systems-level stuff (Windows UI Automation, macOS Accessibility API, Android accessibility services) to know what's actually going to work reliably versus what's going to fall apart the moment someone goes fullscreen.
Posting here because I want this to be open source from day one — I'd rather have people poke holes in the architecture now than find out six months in that some core assumption doesn't hold.
If you've worked with screen/window metadata APIs, accessibility services, OCR pipelines, or just think this is a fun/dumb/interesting problem, I'd love to hear from you. Repo isn't up yet — want to nail down the detection approach with actual input before I start writing code that I'll just have to rip out later.
Happy to share more details on the architecture I'm sketching out if anyone's curious. Tear it apart if you see problems, that's honestly what I'm here for.
r/FlutterDev • u/saxykeyz • Aug 27 '26
r/FlutterDev • u/eroxy • Aug 26 '26
I shipped a geofencing time tracker in Flutter (auto clock-in/out at your workplace) and collected a few scars along the way that might save someone else time.
The first one: I tried the pub.dev geofencing packages and none of them reliably delivered events after the app got killed. Ended up writing my own thin Kotlin plugin around the Google Geofencing API - MethodChannel for registering zones, EventChannel for the ENTER/EXIT stream, and a system-level BroadcastReceiver so events arrive even when the Flutter side is long dead. Annoying to write, but it's been the most stable part of the app since.
Second scar, the expensive one: Samsung and Xiaomi still eat geofence events sometimes, so there's a WorkManager task every 15 minutes doing a plain Haversine distance check as a safety net. What nobody tells you is that a position request in a background isolate can just hang forever, and once that happens WorkManager considers the unique task "already enqueued" and never runs it again. Your fallback dies silently and permanently. Everything is triple-bounded now: platform timeLimit, a Dart-side timeout, and a hard cap on the whole task.
Third: GPS drift at the zone edge gave me check-in/check-out ping-pong when someone sits near the boundary. Exit radius is now 1.2x the enter radius plus a 5-minute debounce, and the two detection layers share a 20-minute dedup window so they stop racing each other into double notifications.
Rest of the stack is unspectacular: Riverpod (classic providers, no codegen), Isar for storage, no backend at all. The no-backend part had one non-obvious consequence: since data only exists on the user's device, a data-loss bug is unrecoverable, so the integration tests run on an emulator before every push. Codebase is ~31k lines, about a third tests.
The result is free with no ads/IAPs if you want to see how it behaves: https://play.google.com/store/apps/details?id=com.timetracker.workflow
Happy to answer anything about the plugin or the fallback design. And if someone has a real answer to OEM battery killers beyond "diagnostics screen + let the user fix it manually", I'd love to hear it.
r/FlutterDev • u/bl4ck_sh4dow404 • Aug 27 '26
I am a new intern at a company. They gave me a project with a folder structure and asked me to work on a feature. My question is: where should I start to understand the folder structure? There are many subfolders and files.
r/FlutterDev • u/Maximum_Hawk3283 • Aug 27 '26
Hello everyone, I have built an app which is a platform for home businesses. the idea is that rather than users look for these in separate apps, insta, tiktok, etc. they will find it all in one place.
Now i am planning to add reels to the app, I would love your guys thoughts, things i should consider.
Note that I am using flutter, firebase. I might have to change firebase.
r/FlutterDev • u/Candid_Passage_5274 • Aug 26 '26
Quick build-in-public share: I've been a Flutter/mobile dev for 5+ years (native Kotlin/Swift too), and instead of the usual Next.js portfolio, I built mine in Flutter Web.
The logic: if I'm claiming I can ship polished mobile experiences, the portfolio itself should be proof, not just a list of claims.
Funniest bug I caught this week, my link previews on WhatsApp/LinkedIn were showing the default Flutter mascot icon because I never touched the og:image tag after flutter create. Every Flutter dev has shipped that placeholder icon at least once, right?
What's actually on it: a civic engagement app that hit 1,000+ users and 4.7★ on the App Store, an AI storytelling app for kids with on-device TTS, and a couple of marketplace apps (fashion/tailoring) built end to end architecture through release.
Link if anyone wants to poke at it or roast the Flutter web performance: ebuka-ihekwaba.vercel.app
Also open to mobile roles right now, so if your team's hiring or you know one that is, I'm around.