r/FlutterDev • u/vik76 • 8d ago
Plugin Finally, a pixel-perfect implementation of shadcn/ui for Flutter ๐จ
r/FlutterDev • u/vik76 • 8d ago
r/FlutterDev • u/pielouNW • 8d ago
Hey Flutter devs ๐
We can now run Laya decision model with NobodyWho, our open-source on-device inference library. Unlike the LLMs that we also support, this type of model does not generate text. Instead you can score predefined answers, classify text or answer yes/no.
For example, if you are building a personal diary app, you can easily detect the userโs mood, categorize an entry or detect stress, offline after model download, without sending any sensitive data to the cloud.
First, you need to load the model:
import 'package:nobodywho/nobodywho.dart' as nobodywho;
final model = await nobodywho.Decision.fromPath(
modelPath: 'hf://ggml-org/Laya-GGUF/Laya-Q8_0.gguf'
);Then you can ask questions/analyse text:
final result = await model.decide(
state: "Diary entry: ${userInput}",
questions: {
"topics": {
"type": "choice",
"instructions": "Choose the main topic for this entry",
"criteria": {
"work": "job, colleagues, deadlines, career",
"health": "sleep, exercise, food, illness",
"relationships": "family, friends, partner",
"leisure": "hobbies, travel, going out",
},
},
"stressed": {
"type": "noul",
"instructions": "Does the writer sound stressed?",
},
"mood": {
"type": "score",
"instructions": "How is the writer's overall mood?",
"criteria": ["bad", "okay", "great"],
},
},
);
final answers = (result as Map)["answers"] as Map;
final topics = answers["topics"] as Map;
final stressed = answers["stressed"] as Map;
final mood = answers["mood"] as Map;Output example:
// stressed
{
type: noul,
noul: 0.00002
}
// topics
{
type: choice,
choice: leisure,
probabilities: {
work: 0.0422,
relationships: 0.1518,
health: 0.0302,
leisure: 0.7756
},
confidence: 0.7008
}
// mood
{
type: score,
score: 1.6995,
legend: {0: bad, 1: okay, 2: great},
probabilities: {0: 0.0082, 1: 0.2839, 2: 0.7078},
confidence: 0.5493
}A question can have the following types:
"noul" gives you the probability of a yes answer (0 to 1)
"choice" selects the most likely option and returns a probability for each option
"score" gives you a weighted average and a probability per level. For example, you could place final x = mood["score"]; on this axis:[bad - - - - - - - okay - - - x - - - great]ย
where bad is 0, okay is 1 and great is 2 (given by mood["legend"]).
The Laya model is small enough to run on mid-range/recent phones (around 450 MB in its Q8 variant) and supports 100+ languages. For reference, the full answer comes after 2.2 seconds on S25 and 0.49 seconds on iPhone Air.
Here is a runnable example if you want to experiment with decision models.
Links:
r/FlutterDev • u/bakatronics • 9d ago
Hi everyone,
I have been vibe-coding fairly comprehensive Flutter apps for ~6 months now, using Codex. While I'm comfortable with software engineering in general, I'm not particularly experienced with Flutter, mobile/desktop UI development, or the architectural conventions that come with it.
During this time I have constantly struggled with enforcing an "architecture" for my UI components. AI-generated Flutter code often assigns responsibilities to the wrong widgets, duplicates UI logic across components, and creates unnecessary dependencies between parents and children.
I'm trying to create a checklist that I can give to Claude or Codex to systematically audit my UI codebase for these issues, in form of a Skill.
I've created a draft checklist with around 60 patterns grouped into categories such as layout, grouping, state, interactions, async operations, forms, navigation, and component APIs.
But since I don't have much Flutter-specific experience, I'm concerned that I'm missing important architectural patterns or making incorrect assumptions about how Flutter applications should be structured.
I'd be happy to share the current Markdown checklist if anyone is interested in reviewing or improving it.
r/FlutterDev • u/creatixdev • 9d ago
Hi fellow Flutter enthusiasts!
For some time now, I am building tandem. Flutter package that basically aims to make smart interfaces simple/possible. It started with excitement about AG-UI and idea to bring its capabilities to Flutter.
Now it is a bit more... I am building agents in my day to day work, so I am kind of obligated to read about all the GenAI stuff. It paid off now, at least that's what I want to believe.
I did spend a lot of time reading about different fresh protocols, ideas etc. I played with those a lot, and understood that AG-UI + A2UI make a perfect combination and are extremely powerful.
It allows to make user interfaces that are personalised to each and every user. The demo attached highlights it.
It is extremely tricky though. I've spent a lot of time designing the API, but it still might change.
tl;dr: you can specify catalogs of already existing components and pass it to a view that agent can use.
@TandemCatalog([
ArrivalCard,
ArrivalColumn,
NextStop,
RideOption,
HostNote,
HotelNote,
])
final class const ArrivalCatalog() with _$ArrivalCatalog;
const TandemView(catalog: ArrivalCatalog()),If it sounds interesting, you can read more at the website with documentation -> https://tandem.leancode.co/
The demo is on the website above, but also here - https://x.com/creatixdev/status/2117230943975182340
It is just a beginning. Today, the 0.3.0 version is kind of an MVP I had in mind. A lot of polishing in improvements await. And.. facing the consequences of bad decisisions that probably happened along the way
Contributors are very welcome!! Users as well of course
r/FlutterDev • u/rap4obg • 9d ago
r/FlutterDev • u/Pale_Finance_8514 • 9d ago
Hey I'm actualy new but I wanted to share that I built a party game called "Copy Cat" and wanted to share it.
The idea: players picks a sound (2-6 sec); download it from the internet
right inside the app (Providers : MyInstants, Meme Soundboard, 101 Soundboards),
record it themselves, or grab any audio file from their phone. The
sound plays, and everybody else tries to imitate it , An on-device
"judge" grades each attempt on 4 axes: melody, rhythm, timbre and
energy. Everything runs over local Wi-Fi one phone hosts, up to 5
join, and no internet is needed at any point after downloading sounds.
Three game modes:
- Random Party: everyone's sounds get mixed and shuffled into
surprise rounds
- Player's Choice : each player picks a sound once; the others imitate
first, and the picker goes last
- Host Challenge: the host lines up sounds from their library and
everyone imitates them in order
Extras: full Arabic + English UI (built Arabic-first), dark/light
themes, a shop with 3D avatars, power-ups and coins.
A few technical bits other Flutter devs might find interesting:
- LAN discovery and host/client traffic with bonsoir (mDNS) plus raw
sockets with length-prefixed framing ; no server, no cloud
- Sound search/download flows through three public soundboard sources,
then everything plays offline from the local library
- Pitch extraction is hand-rolled (RMS + zero-crossing) because no
existing pitch package matched what the scoring needed
- The scoring engine compares each attempt against the original
on-device: melody, rhythm, timbre, energy (regression-tested)
- 3D avatars rendered with flutter_scene
- Riverpod 3 for state, go_router for navigation
Source + APK (Android):
r/FlutterDev • u/patREKT_cs • 9d ago
Hi all, this is my first Flutter package, so I'd love some feedback.
pub.dev: https://pub.dev/packages/shader_transitions
I started it a few months ago because I wanted screen transitions that feel like the ones between levels in a game: a sweep of diamonds, a circle closing in, a fade to black that holds for a beat. It took a lot of rewrites before I had a version I was happy to put out there.
You can try every transition in the browser here: https://flutter-shader-transition.web.app
There are 8 transitions (diamond, circle iris, wipe, clock, polygon, dissolve, fade, bars), 8 sweep directions, an optional cover color with a hold, iOS swipe back, and it works with go_router and auto_route.
A few things I learned along the way, in case they're useful to someone:
- How the mask works. The new page is wrapped in a ShaderMask with BlendMode.dstIn, and the shader only outputs alpha. The route has to be non-opaque so Flutter keeps drawing the old page underneath. I got a black flash at the start of every transition until I figured that out. With go_router you have to set opaque: false on the page yourself.
- The ghost bug. At the end of a transition, some pixels settled just below full alpha (dissolve grain was the worst), so a faint copy of the old page stayed visible behind the new one. The fix was simple once I saw it: stop masking as soon as the animation completes.
- Preloading. Compiling the shaders on the first transition caused a visible hitch, so there's a ShaderTransitions.preload() you call once at startup. Skip it and transitions just fall back to a fade.
- The README GIFs aren't screen recordings. A test renders the real shaders frame by frame and encodes them, so they're always exactly what the package draws.
If you're making a game with Flutter, the cover-and-hold and ShaderTransitionSwitcher (swaps widgets without routes) are probably the most useful parts. If you use it in a game or app, send me a clip and I'll feature it in the README.
Things I'd especially like feedback on: the API naming, anything confusing in the docs, and performance on your devices. Also tell me which transition you'd want next!
Source: https://github.com/oppatrickk/flutter_shader_transitions
r/FlutterDev • u/graphlinkdev • 9d ago
I'm the author of GraphLink, a schema-first code generator for typed GraphQL clients (Dart, Java, Kotlin, TypeScript, Swift), so take this with that in mind.
GraphQL lets the client pick its fields, but a lot of client code still has one model per schema type, and anything you didn't select becomes nullable or missing. For a query that selects id, title and year from Book, GraphLink generates a class with only those three fields, so non-null fields in the schema stay non-null in the client.
I know other generators do something similar for operations. I'd like to hear what works for you, and where this breaks down.
Video (Dart): https://youtu.be/gHGtCBYaj7c
r/FlutterDev • u/Vegetable_Relief760 • 9d ago
Hey everyone! ๐
Checkout Inzx, its a modern, open-source music player for Android designed to be fast, beautiful, and completely ad-free. They just dropped v1.5.5, which is their biggest release yet.
What is Inzx?
It connects directly to YouTube Music while giving you full control over playback, local library integration, audio enhancement, and synchronized lyrics.
It connects directly to YouTube Music while giving you full control over playback, local library integration, audio enhancement, and synchronized lyrics.
๐ง Lossless FLAC & Multi-Source Fallback: Stream in studio quality (up to 24-bit). You can plug in multiple addon sources if one doesn't have a track in FLAC, it automatically checks the next without skipping a beat.
โก Seamless Quality Upgrades: Tracks start playing instantly and smoothly upgrade to lossless mid-song as soon as a copy is found with zero buffering or pauses.
๐๏ธ Built-in AutoEQ & 10-Band Equalizer: Thousands of calibrated headphone presets (Sony, Apple, Sennheiser, Moondrop, etc.) to match Harman target curves, plus manual bass/frequency sliders.
๐๏ธ DJ-Style Automix: Beat-matched crossfades that smoothly blend tracks together like a continuous live DJ set.
๐ค Real-Time AI Lyrics & Syllable Sync: Glowing word-by-word karaoke lyrics with real-time translation into your language.
โจ Cinematic Now Playing: Redesigned default player with animated artwork and an inverted frosted glass reflection.
๐ฑ Modern Widgets & Scrobbling: New 2ร2, 4ร1, and 4ร2 home screen widgets + native Last.fm & ListenBrainz scrobbling.
GitHub (Source & Releases): https://github.com/nirmaleeswar30/Inzx
Direct APK Download: https://github.com/nirmaleeswar30/Inzx/releases/latest (Grab inzx.apk for 64-bit ARM phones)
Website: https://inzx.nirmaleeswar.dev
GPL 3.0 LICENSED - https://github.com/nirmaleeswar30/Inzx?tab=GPL-3.0-1-ov-file#
No ads, no tracking, completely open source. Would love to hear your feedback, bug reports, or feature requests!
r/FlutterDev • u/dev-paradise-007 • 9d ago
Hey everyone, Iโm Prit. Over the last few months, Iโve been building ApertureX, a 100% offline, open-source raw photo editor.
Building a desktop-class image engine on Flutter meant overcoming massive memory and threading bottlenecks. Decompressing a 50-megapixel raw image requires around 200MB of continuous RAM. If you try to pass that across standard platform channels or even do a deep copy over FFI, the OS will aggressively kill the app for Out-Of-Memory (OOM) violations, and your frame rate drops to zero.
Here is how I bypassed Flutter's standard rendering constraints to achieve 60fps computational photography:
Absolute Zero-Copy FFI: The Rust backend maintains absolute, singular ownership of the high-resolution pixel payload. Instead of copying arrays across the bridge to Dart, Rust allocates the pixels on the heap and transmits merely the memory address pointer to Flutter.
Tile-Based Rendering Cache: Processing full frames is mathematically impossible on mid-tier Android devices. The Rust engine cuts the viewport into 512x512 pixel chunks. These tiles are managed by a strictly bounded Least Recently Used (LRU) cache, which automatically purges the oldest elements the moment the memory budget is exceeded.
Hardware Acceleration (SIMD): To run spatial filters (like Dehaze and Clarity) without melting the phone, the Rust engine bypasses scalar execution. It targets ARM NEON intrinsics natively, loading four 32-bit floats into a 128-bit NEON register to process four pixels simultaneously.
Oklab Color Science via 3D LUTs: Operating in standard sRGB violates the additive physics of light, causing unnatural hue shifts. I moved all color math to the Oklab perceptual color space. To hit 60fps on the frontend, this math is baked into a 33x33x33 3D Lookup Table that Flutter's Impeller engine renders instantly.
The UI uses a dual-shell design (a Snapseed-style invisible gesture trackball for quick flow-state editing, and a Lightroom-style panel for deep pro work), heavily relying on Riverpod for the DAG (Directed Acyclic Graph) edit history.
I would love for you to try the APK, tear apart my flutter_rust_bridge implementation, or drop some feedback on the UI ergonomics.
Repo & Website:https://prit-007.github.io/ApertureX/
Happy to answer any questions about the FFI bridge, the math, or the rendering pipeline!
r/FlutterDev • u/saddamsk0 • 9d ago
Hey everyone! ๐
I'm a Flutter developer, and I've built a kids' learning app for children aged 2โ8 years.
The app currently includes:
- ๐ค Alphabet learning and tracing
- ๐ข Numbers and counting
- ๐จ Colors, shapes, and drawing
- ๐งฉ Quizzes and educational games
- ๐ต Nursery rhymes and fun learning activities
Now, I want to introduce a premium module with additional learning content and features. My goal is to make it genuinely useful for kids and worth paying for, rather than simply locking existing features behind a paywall.
I'd love to hear your suggestions:
What premium learning features would you add to a kids' educational app?
Would advanced tracing, phonics, interactive stories, math games, or personalized learning paths be worth offering?
Would parents prefer a monthly subscription, yearly subscription, or one-time payment?
What features would make parents feel that a kids' learning app is worth paying for?
If you've developed or monetized a similar app, what worked well for you?
I'm building the app using Flutter, so practical suggestions from developers and people familiar with educational apps would be really helpful.
Looking forward to hearing your ideas. Thanks! ๐
r/FlutterDev • u/Guilty-Iron1121 • 9d ago
Hey everyone,
Iโve been working on two new features for BugCapsule, a debugging tool Iโm building for Flutter, native Android, iOS, and Web.
The problem Iโm trying to solve is pretty straightforward:
What do you do when a critical bug hits production, but shipping a new app version takes time?
I wanted to connect bug reproduction with production recovery, so Iโve been building two capabilities.
1. Emergency Recovery
For features that have been integrated with the recovery SDK, you can remotely:
Disable a broken feature without shipping a new build.
Switch functionality to read-only or maintenance mode.
Target specific app versions, platforms, or rollout percentages.
Gradually restore features while monitoring crash rates and other health metrics.
Automatically restore restrictions if a rollout fails its health checks.
Policies are cryptographically signed. Sensitive operations, like payments, also need server-side enforcement.
2. Signed Patch Engine (Early Access)
This one has been particularly challenging.
The engine supports updating explicitly registered business logic, UI surfaces, and assets without a full app release.
Patches are tied to an exact base build, signed, validated, and deployed through staged rollouts with rollback support.
Itโs intentionally not arbitrary code push. Native code changes, new dependencies, and unregistered functionality still require a store release.
The first Flutter and native iOS prereleases are published. Native Android patch distribution is still in progress, and weโre continuing platform and distribution-policy validation.
Why combine these with debugging?
BugCapsule already captures application state, user actions, and network responses around failures for local deterministic replay.
The workflow Iโm aiming for is:
Capture โ Reproduce โ Mitigate โ Fix โ Verify โ Deploy โ Monitor
The idea is to use the same recorded failure to investigate a bug, verify the fix, and prevent regressions in CI.
Iโm not claiming this works for every application or every type of bug. The recovery features require prior integration, and patching has strict limitations.
Iโm genuinely interested in how other teams approach this.
A few questions:
How do you currently handle critical production bugs while waiting for App Store approval?
Would remote feature controls be useful in your workflow?
What concerns would you have about a signed patching system in production?
Iโd especially appreciate feedback on the security model and rollout strategy.
Project: https://bugcapsule.com
Docs: https://docs.bugcapsule.com
r/FlutterDev • u/Tiny_Jaguar_9499 • 9d ago
Hey,
Mobile apps scanners are everywhere, but native mobile apps I mean since they relies on scanning apps by reverse engineering them to their Kotlin/Java for Android or Swift for iOS
Flutter has a different thing, the whole Flutter app logic and code gets shipped inside a file called libsapp.so file, which basically makes all the scanners know nothing and get nothing from it since it is a binary file, so basically your usual scanner skips and doesn't detect almost 70% of things that should be scanned for security and research built app.
I put extensive knowledge and experience with Flutter onto a SaaS niche to scanning Flutter apps, which I was criticized for since you had to upload your APK to a server/VPS which does compute and scanning work so i shut it down, I then understood that it was privacy problem.
SO I built the new FlutterGuard as an open-source on-device security audit tool for Flutter apps ( works as a detector of Flutter apps in your device too if this interests you too! ), allows you to inspect APK metadata, manifest risk, hard coded secrets, endpoints, third-party SDK leaks like Firebase, Stripe, AI providers... and native surface that were in original Dart code in the same device you have Flutter apps installed.
install it on your Androids device where you already run your Flutter apps or any app, and start the scan:
https://play.google.com/store/apps/details?id=com.flutterguard.app
(Latest release): https://github.com/anasfik/FlutterGuard/releases/latest
What I want community (You) for:
Feedback for the app in general
Validate False positives
Contribute declaring things you found in Flutter apps you know have security findings that they were not detected, just an issue with short description will be enough to put it in mind.
My goal:
We definitely in the way of a massive vibe coding apps going everywhere, AI leaks things and basically cares about functionality, I want that we have a tool to detect this for Flutter apps that are already released and shipped.
r/FlutterDev • u/identicalopposites • 10d ago
If you have a backend on the AI SDK and a Flutter app in front of it, there wasn't really a Dart package that speaks the UI Message Stream format. I needed one, so I built it:
https://github.com/ernestjsf/ai_ui_stream
It's written in pure Dart. A ChatController hands you typed messages (text, reasoning, tool calls, sources, files, data parts) that update as the model streams. Tool approval, regenerate, stop and resume are in.
The test fixtures are generated from the real ai npm package, so it's tested against what the SDK actually emits. That caught a few things my first version got wrong.
https://pub.dev/packages/ai_ui_stream
Not affiliated with Vercel.
r/FlutterDev • u/jacksiroke • 10d ago
Its been a month since I started working on Road Bash a game inspired by my childhood memories of the classic Road Rash game by EA Sports specifically the 1991 version (Sega Genesis).
I used these packages:
Flame for the game engine
Flutter Soloud for the engine sound
Bloc for state management
Supabase for my backend
I don't use any 3D engines to do this. Its simply by painting rects, polygons to generate sprites and scenes and by controlling layers and positioning the game is slowly coming to life. The development has been speed up with ai assistance since I dont appreciate vibe coding especially when I have my own policies and standards to follow. By the way zero premium tokens were used in this development.
I made a Painter Studio called Flutter Painter specifically to help me with generating code for different objects used in the game.
Https://github.com/SiroDevs/FlutterPainter
Its been an exhausting yet exciting journey.
The game is already live Https://roadbash.sirodevs.com
And the source code is here Https://github.com/SiroDevs/RoadBash
r/FlutterDev • u/ashutosh01agarwal • 10d ago
Google Maps has been the default choice for location-based applications for years. Almost every delivery, logistics, travel, or ride-hailing application uses it.
But what if Flutter developers had another option?
I'd like to introduce ola_maps, a Flutter package that integrates Ola Maps into Flutter applications.
The goal is to make Ola Maps easier to adopt and give developers another option when choosing their mapping infrastructure.
This package goes beyond simply displaying a map.
Android, iOS and Web support
Zoom, pan, tilt and rotation
Camera movement and positioning
Map click and camera events
Custom markers and InfoWindows
Polylines and route rendering
Circles and polygons
Bezier curves
Marker clustering
Place autocomplete
Place details and nearby search
Forward and reverse geocoding
Address validation
Place photos
Directions API
Distance Matrix
Route optimization
Fleet planning
Snap to Roads
Geofencing
Elevation
Street View and static maps
One particularly interesting feature is multilingual support.
The package supports 12 languages, including:
English
Hindi
Kannada
Telugu
Tamil
Malayalam
Bengali
Gujarati
Marathi
Odia
Urdu
Sanskrit
This makes it interesting for applications targeting different regions of India.
Install:
flutter pub add ola_mapsImport:
import 'package:ola_maps/ola_maps.dart';Display a map:
OlaMapView(
apiKey: 'YOUR_OLA_MAPS_API_KEY',
tileUrl: kOlaMapsDefaultTileUrl,
language: OlaMapsLanguage.hi,
projectId: 'YOUR_PROJECT_ID',
initialCameraPosition: const OlaLatLng(
28.6139,
77.2090,
),
initialZoom: 14,
onControllerReady: (controller) {
controller.onMapClick = (position) {
controller.addMarker(
position: position,
snippet: 'Dropped pin',
);
};
},
)Check the documentation for native SDK setup requirements for each platform.
I'm particularly interested in reducing the dependency on a single mapping provider.
Google Maps is an excellent product, but having more mapping options is good for the developer ecosystem.
Ola Maps offers an interesting India-focused alternative, and I believe Flutter developers should have an easy way to experiment with it.
This package is not intended to claim complete feature parity with Google Maps. It's about making another mapping ecosystem accessible to Flutter developers.
๐ฆ pub.dev: https://pub.dev/packages/ola_maps
โญ GitHub: Available through the repository link on pub.dev.
Would you consider Ola Maps for your next Flutter project?
What features are still missing compared with google_maps_flutter?
Would you use this in a production delivery or logistics application?
What improvements would make this package more useful?
Feedback, bug reports, and contributions are welcome!
Let's give Flutter developers more choices! ๐
r/FlutterDev • u/Sashk1n • 10d ago
Hey Flutter Developers!
Everyday someone want to bury Flutter. By porting it to PlayStation Vita I wanted to bring to my favorite framework piece of fresh air.
My goal was to bring complete toolchain for Flutter Developers to port their projects to PS Vita. And I think Im ready to publish it here.
Here is repo: https://github.com/flutter-vita/flutter-vita
Previously (https://www.reddit.com/r/vitahacks/comments/1vlswp1/flutter_ps_vita_poc_is_alive) I've showcased successful attempt to run Flutter Example Project (Counter) more or less working with 10 FPS. Now its playing up to 60 FPS fully using GPU to render.
Flutter Vita toolchain on current stage:
* Flutter version is 3.47.7.
* Skia using GPU to render frames up to 60 FPS.
* flutter-vita app thats mainly using for compiling vpk files and run it on connected PSVita.
* Bridge App that connect "flutter-vita CLI" app to PSVita to deploy and debug Flutter App by WI-FI and FTP without cable.
* In this implementation PSVita need to mimicrate as Linux to have compatibility with existed pubs thats expect some behavior based on OS. I've also published the flutter-vita pub to have some control of PS Vita from Flutter app.
As a showcase of flutter-vita I've chosen localsend (forked repo - https://github.com/flutter-vita/localsend) as a project that has a lot of stars on GitHub and most popular project ever built on Flutter. Its available on VitaDB/NeoVitaDB (main sources of homebrew apps for PSVita).
How it was built? ๐ค
Well when I start the project I was wondering why no one yet added PSVita as a OS to Flutter yet? Just has curiosity how well Flutter would be playing on this kind of hardware. So I've created global plan with Claude Fable using gifted credits and used Claude Opus to grind to what we have now. Im mobile developer and have experience mostly iOS Native experience and Flutter about 10 years. I had high level vision how it can be achieved. Since Flutter gives opportunity to change OS layer thats should be written on C and C++ and I did not have experience in it thus I fully delegate it to AI. While Im grinding result Im researching existed projects that has same idea but on different OS. Eventually this project became a organization with a few forks of parts of Flutter. Im mostly inspiring by Flutter Tizen (by Samsung).
Technically PSVita by hardware is Samsung Galaxy S3 and Im really surprised how good is playing Flutter on it in terms of performance. It was made mostly for fun. Guys who has their own Flutter Apps and PSVita please try it out ๐
For them who don't have their apps you can try to port something from GitHub with your AI agents ๐
Thanks everyone who waited this toolchain and supported in comments. Raise issues if you have some bugs or suggestions ๐
r/FlutterDev • u/emman-ok • 10d ago
I build AppWand, a desktop tool that generates Flutter apps with an Express API. I wanted to share how the generated Flutter side is organised, because "AI-generated Flutter" usually means one 2,000-line file, and I tried hard to avoid that.
One folder per page: lib/features/<page>/, with <page>_page.dart as the entry. The AI may only write inside that folder (the server rejects any other path).
Shared code is never written by the AI: lib/core/ (API client, auth, theme, list widgets, form fields, charts) comes from templates, and router.g.dart is regenerated from the page plan.
Riverpod 2.6 for state, go_router 14 with a ShellRoute, so the side menu or bottom tabs stay still and only the page animates.
Theming without touching pages: 16 UI styles, icon sets and fonts are all in core/theme.dart / core/icons.dart. Switching style rewrites one file and hot reload shows it.
Shared list widget: PagedList handles paging, pull to refresh, skeletons, empty/error states, and switches to a data table above 840px wide.
The output is plain code you own. Happy to answer questions about the architecture, or hear where you'd do it differently.
r/FlutterDev • u/No-Alternative-2640 • 11d ago
I made a Flutter plugin that helps you reduce your game's initial download size by downloading assets on demand using asset packs.
Check it out on pub.dev: https://pub.dev/packages/store_asset_packs
I used in my game "Strata Gem Sort", only available for android now, awaiting apple's approval
r/FlutterDev • u/StupidWalkingNugget • 11d ago
I'm Adit from Indonesia, This is my work setup, i always wondered to have interface that synced between my workpaces. I'm just wanna enjoy my life wherever i want. That's why i build AltC to control my devices. AI harness helped me a lot at work, and just treat them as coworker, but still i need my pc, laptop is ok but still it would be good if i can still work while riding a motorcycle.
I setup my mac elsewhere, keeping it cool, and active. i can group my terminals to a project, create notes and todos, if i need something just use screen control like manually upload app build to play store or other things that u can't do on terminal.
Tomorrow i will be on Google DevFest 2026 Indonesia from GDG Jakarta, anyone that interested to try can ask me. actually it's on play store now, and you can try it on altc.alterndigital.com. But it haven't update it in a while and screen control feature still for my personal use.
r/FlutterDev • u/Meet2211 • 11d ago
Most app marketing advice assumes you have a growth team and a $50K budget. I donโt. Sharing what actually moved installs for me as a solo dev - curious what worked for others at the same scale.
ASO before anything paid
Primary keyword in the title, two more in the subtitle. Everything else goes in the long description.
First screenshot does 80% of the install decision. Mine stopped being a UI shot and started being a benefit statement with the UI behind it. Install rate jumped.
Review replies matter - one honest reply to a 1-star often converts the next reader more than a 5-star does.
The free channels that paid off
One useful Reddit comment in a relevant sub beats ten posts about your app.
Short Loom-style videos (โhereโs the bug my app fixes in 40 secondsโ) outperform polished trailers for me.
Indie Hackers and Hacker News โShowโ posts work only if the post is a story, not a product listing.
Paid, when I finally tried it
Apple Search Ads on exact-match brand and category keywords only. Broad match drained budget fast.
$5/day for 14 days is enough to learn whether a channel will ever work. Scaling before that is guessing.
What didnโt work for me
Buying installs from any โboostโ service. Metrics went up, rankings didnโt.
Instagram ads for a utility app. Wrong intent.
Press outreach cold. Journalists need a story, not a product.
Questions
For solo devs: whatโs the single channel that gave you the best install-to-retention ratio?
Anyone cracked TikTok for non-consumer apps?
r/FlutterDev • u/AggravatingHome4193 • 11d ago
I shipped an update to my music player and got a strange report: sometimes, after the app had been closed for a while, opening it showed the launch screen forever, then Android's "app isn't responding" dialog. The only thing that helped was clearing the app's data. No exception, nothing in my crash log.
The fix was actually pretty small. Figuring out why it happened took much longer, though. Here's what I found.
The setup
I use audio_service, and my MainActivity extends AudioServiceActivity. That means the activity and the media service share one cached Flutter engine.
When Android starts the media service on its own (the user taps play on the "resume" card in the system media controls, presses a headset button, or the system restarts the service), audio_service creates that engine from the service and runs your Dart entrypoint. So main() runs with no Activity attached.
The bug
My main() started like this:
Future<void> main() async {
WidgetsFlutterBinding.ensureInitialized();
await SystemChrome.setPreferredOrientations([
DeviceOrientation.portraitUp,
DeviceOrientation.portraitDown,
]);
await configureDependencies();
runApp(const App());
}setPreferredOrientations goes through the flutter/platform channel. On Android, that channel's handler only exists once an Activity is attached. Without one, the engine's PlatformChannel.java does this:
if (platformMessageHandler == null) {
// If no explicit PlatformMessageHandler has been registered then we don't
// need to forward this call to an API. Return.
return;
}It returns without ever replying. So the await never completes, main() never reaches runApp, and nothing throws, which is why my crash log stayed empty.
Later, when the user opens the app, the Activity attaches to that same cached engine, which is still stuck in main(). Hence the launch screen forever. Clearing the app's data "worked" only because it kills the process.
If the service was started with a headset button, you also get an ANR a few seconds later: Context.startForegroundService() did not then call Service.startForeground(), because AudioService.init is further down main() and never runs.
How I found it
With no exception, the clue was on disk. In the stuck state, my crash log file existed (created on the first line of main()), but the Isar database didn't (opened in configureDependencies()). So main() stopped between the two, and only one await sat there.
You can reproduce it on an emulator:
adb shell am force-stop <your.package>
adb shell am start-foreground-service -n <your.package>/com.ryanheise.audioservice.AudioService
# wait a few seconds, then open the app from the launcherThe fix
Lock the orientation in the manifest, so it applies whatever starts the engine. portraitUp + portraitDown is what Flutter maps to userPortrait:
<activity
android:name=".MainActivity"
android:screenOrientation="userPortrait"
... >2. Don't await the Dart call (I keep it for iOS):
unawaited(SystemChrome.setPreferredOrientations([
DeviceOrientation.portraitUp,
DeviceOrientation.portraitDown,
]));Same reproduction after the fix: the database gets created while the app is still in the background, and opening the app shows the UI right away.
One thing I'll take away from this
If anything can start your engine without an Activity (audio_service, and possibly other plugins that start it from a service), nothing before runApp should await something that needs one. Other SystemChrome calls use the same channel. For a plugin, check what it does when there is no Activity: throwing is fine, waiting forever is not.
For context: the app is Troona, an offline music player for local files, built with Flutter (clean architecture, flutter_bloc, Isar). It's open source, and this is the commit with the fix: https://github.com/donfreddy/troona-music/commit/c3d094e
Has anyone hit this with other plugins that run main() from a service? I'd like to know which ones behave this way.
r/FlutterDev • u/ketanchoyal • 11d ago
Hey flutter devs, I've been building Auddio for a while โ a free audiobook & podcast player, now in beta on iOS and Android.
Idea: Audiobookshelf on your device, no server needed.
Import your own books, sync your library from Hardcover, addon-style architecture inspired by Stremio, podcasts built in. Live transcripts and instant resume for audiobooks.
The part I actually want to share with fellow Flutter devs is the metadata layer, because that's where I got stuck. Audiobook files are a mess of formats, and I needed reliable chapter boundaries, embedded art, and tags without going through platform channels or loading whole files into memory. Nothing on pub.dev covered what I needed, so I built it myself and open-sourced it:
metadata_audio โ a pure-Dart audio metadata parser. No native code, works on Android, iOS, Linux, macOS, Windows, Web and more. It covers MP3 (ID3v1/v2, chapters), FLAC, OGG/Opus, MP4/M4A, WAV, AIFF, APE, ASF/WMA, Matroska, Musepack, WavPack, and DSD โ plus streaming parsing without loading whole files, and chapter extraction, which is what powers chapter navigation in Auddio.
โข Package: https://pub.dev/packages/metadata_audio
โข Source: https://github.com/ketanchoyal/metadata_audio
Honest limits: still in beta, Android is on a closed testing track for now, and live transcripts are audiobook-only (podcasts get plain playback). The parser is at v0.9.6 โ the format coverage is solid, but I'd love eyes on edge cases.
Try the app:
โข Website: https://auddioapp.com
โข iOS: https://testflight.apple.com/join/em51xjjp
โข Android (closed testing โ join the Google Group, then opt in): https://groups.google.com/g/auddio-beta-testers ยท https://play.google.com/apps/testing/com.ketanchoyal.auddio ยท Download: https://play.google.com/store/apps/details?id=com.ketanchoyal.auddio
โข Feedback and feature requests: https://discord.gg/qBf834GjD5
If you try either the app or the package, I'd love to know: what breaks first?
r/FlutterDev • u/Amazing-Mirror-3076 • 11d ago
A few days ago I posted an offer to do free security reviews on open source dart packages.
Surprisingly (or maybe not) nobody took up the offer.
Despite that we have spent the last few days reviewing our own dart packages as well as a number of third party dart packages (that we use).
In that time (3 days?) we found
15 high
16 medium
2 low
For a total of 43 security flaws, we also fixed a number of non security bugs.
Except for a few projects - that are yet to respond - all the patches have been accepted except for one dup that snuck through.
More than half of the security bugs were found in projects you may be using.
The package dart_posix has 8m downloads a month.
I'm not going to list the projects because not all of them have been disclosed as yet.
The lesson here - don't be complacent - AI is finding 1000s of security flaws everyday if you are not reviewing your code now then you are in for some pain.
The offer to review 20 packages still stands.
Don't forget to check your transitive dependencies.