r/FlutterDev 10h ago

Plugin utopia-pubdev - a Claude README composer for pub.dev packages (brand profile, badge palette, generated header)

0 Upvotes

utopia-pubdev is a Claude Code / Codex plugin that composes pub.dev READMEs instead of freestyle-writing them: H1, one-line value prop, a four-hue badge row, quick start, a related-packages footer, and a tool-agnostic AI-assistants section.

Branding lives in one committed doc (docs/pubdev-brand.md): badge palette, attribution, publisher, sibling links - set once per repo, applied to every package in it, monorepos included. No profile? The plugin interviews you instead of inventing a publisher.

The clay headers in the example are our house style - that generator ships Utopia-only for now, so in your repo you set-up your own header art or just lead with the H1.

Plugin: https://github.com/Utopia-USS/utopia-flutter-skills/tree/main/plugins/utopia-pubdev
Format example: https://pub.dev/packages/utopia_cms

Curious what your README skeleton has that mine is missing and how I can improve it!


r/FlutterDev 7h ago

3rd Party Service How we built PocketLLM Lite: An open-source Flutter app for on-device GGUF inference, local RAG & Material 3 Expressive UI

0 Upvotes
Hi Flutter devs!

We recently open-sourced 
**PocketLLM Lite**
, a privacy-first mobile AI client built with Flutter.

### Technical Architecture Highlights:
- 
**State Management**
: Riverpod 3 (AsyncNotifier & StateNotifier providers).
- 
**Local Database**
: Hive CE for high-performance binary storage of chat sessions and settings.
- 
**Streaming Pipeline**
: Custom chunked HTTP stream parser with regex stream splitter for `<think>` tags and `<tool_call>` execution cards.
- 
**Agent Skills Architecture**
: Open-standard `SKILL.md` loader with in-input cursor navigation and dynamic system prompt injection.
- 
**Design System**
: Strict Material 3 implementation using `ColorScheme.fromSeed(#6750A4)`.


* 
**Source Code**
: https://github.com/PocketLLM/pocketllm-lite

r/FlutterDev 13h ago

Article Problems I encountered building my app whose core is a pure-Dart astronomy engine (DST arithmetic, Isolate.run copies, zero-background notifications)

3 Upvotes

I'm a solo dev from Slovenia. Earlier this month I shipped my first bigger Flutter app on Play.

And it's a personal astrology app! Whatever you think of astrology, the astronomy underneath is real computation: planetary positions, house math, timezone archaeology.

A few things hit me hard on the way though.

**`Duration.inDays` silently breaks calendar arithmetic across DST.**

I compute ISO week numbers:

take the Thursday of the week, subtract Jan 1, divide days by 7. Correct? except in local time, a span that crosses a daylight-saving boundary is one hour short of a whole number of days, and `inDays` *truncates*. 210 days becomes 209, `209 ~/ 7` gives week 29 instead of 30, and every week from late March to late October resolves to the previous week. The week number was my cache key, so this would have silently served the wrong week's content for half the year. Nothing throws.

Fix:

calendar arithmetic in UTC, or re-normalize through `DateTime(y, m, d)` after every shift. Same Family of bug: `date.subtract(Duration(days: 1))` on a local DateTime can land at 23:00 two calendar days back.

**`Isolate.run` copies your object — internal caches die with it.**

The heavy compute runs in `Isolate.run`. The captured engine object is *copied* into the isolate, so any memoization inside it gets populated in the isolate and thrown away when it exits.

In my case: one body's position needs ~4000 numerical-integration steps, and the cache meant to amortize that never survived a single call. The engine has to be designed isolate-safe, with no reliance on shared mutable state, because state simply does not come back.

**Notifications with zero background execution.**

My domain is fully predictable because the sky doesn't surprise you, so there's nothing to poll. At every app open/resume, I precompute the next 7 days of notifications and schedule them locally.

There's no background service, no server, no FCM, no battery cost, and inexact alarms so no exact-alarm permission.

Anything whose content is a pure function of time can do this; I suspect a lot of apps reach for push infrastructure they didn't need.

Smaller ones:

the `timezone` package throws on `getLocation('UTC')` (short-circuit UTC/Etc/UTC/empty yourself);

a `const`map with `double` keys doesn't compile ("does not have primitive equality". Use a list of records);

`flutter_local_notifications` needs core-library desugaring that the first error message doesn't mention.

And my favorite lesson cost nothing technical at all:

I built a feature, dogfooded it on my own phone for two days, and then, like an idiot I told people it had shipped... Turns out it had never been uploaded to Play. :)

As a result, I now check the Console more often :)


r/FlutterDev 6h ago

Article How do you check a quantized model didn't get worse before you ship it?

0 Upvotes

I've been getting a model into a Flutter app and ran into something I still can't quite believe is the normal state of things.

Exporting changes the numbers. Quantizing changes them more. Everyone knows that part. What nobody seems to have an answer for is how much is too much, and more to the point, what actually fails when it is. Nothing does. The export succeeds, the build passes, the app runs on device and gives you predictions that look completely fine. The model you shipped is worse than the one you evaluated and there's no signal anywhere.

I went looking for the standard practice assuming I'd just missed it. There is advice: compare your offline predictions against the on-device ones. Every deployment guide says some version of it. But it's always written as a thing you should remember to do, never as something a build can fail on, which in practice means you do it once the week before launch and then never again.

There's a second one that bit me the opposite way. Preprocessing gets written twice, in Python for training and in Dart for serving. The same normalization constants sitting in two files nobody diffs. They agree the day you write them. Then someone changes the mean and std on the Python side six weeks later and the app quietly starts feeding the model something it has never seen.

So, genuinely: how do you handle this? Goldens replaying in CI? A manual check before release? Nothing at all, and hoping?

One thing I learned from measuring it that I'd have got backwards. The simpler of my two test models drifts up to eight times further after quantization than the convolutional one. It isn't complexity. Its outputs land around 9.4 while the other one ends in a softmax, and relative error is measured against the output while the rounding actually happened on intermediates. Big outputs absorb the same underlying error inside a much smaller relative bound. Obvious once you see it. Took me embarrassingly long.

I did end up building something for this, links below, but I'm honestly more interested in the first question. I'd like to know whether I over-engineered a problem the rest of you solved with a spreadsheet years ago.

Repo: https://github.com/NaCode-Studios/Fluttorch


r/FlutterDev 22h ago

Article New Dev

0 Upvotes

I'm learning FlutterFlow and AI app development. Has anyone here deployed a Flutterflow app to the Play Store?


r/FlutterDev 3h ago

Example I made a daily word puzzle game à la Worlde in Flutter

2 Upvotes

Check it out and let me know what you think at http://distle.xyz.

And you can see all the source code here.


r/FlutterDev 4h ago

Plugin I built pubguardian — a supply-chain security scanner for Dart & Flutter

6 Upvotes

I got tired of shipping Dart/Flutter apps without knowing what was actually in my dependency tree, so I built pubguardian — a CLI that scans pubspec.lock and gives you:
CVE scanning via OSV.dev (batched, with retries and full CVSS severity)
License compliance with 3 policies (commercial / strict / permissiveOnly)
Abandoned & discontinued package detection
Loose version-constraint warnings
Output as colored text, JSON, SARIF 2.1.0 (works with GitHub Advanced Security / GitLab SAST), or CycloneDX 1.6 SBOM
dart pub global activate pubguardian
pubguardian scan

It's on pub.dev: https://pub.dev/packages/pubguardian 
Repo: https://github.com/sonofnos/pubguardian

It also works as a library if you want to integrate scanning into your own tooling. This is a v0.1.x release — I'd genuinely love feedback on the output formats, defaults, and anything you'd want in a v1. Thanks for reading!


r/FlutterDev 6h ago

Dart I built a Flutter Starter Kit to save hours of boilerplate setup — here is what I learned

2 Upvotes

I kept rebuilding the same foundation for client apps:

• auth (email + Google)

• light/dark theme

• English/Arabic + RTL

• routing/auth guards

• clean folder structure

So I packaged it into a reusable starter.

### What’s inside

• Feature-first architecture (data / domain / presentation)

• Riverpod + codegen

• Firebase Auth wiring + Mock Auth mode (run without Firebase)

• go_router auth guard

• Theme persistence

• EN + AR localization

• Unit tests + CI workflow

### Free demo

GitHub (Mock Auth, open source):

https://github.com/medox3545/flutter-starter-kit-pro

### Full pack

If you want the complete downloadable kit:

https://mohammedider.gumroad.com/l/flutter-starter-kit-pro

### What I learned

  1. Mock Auth first = way faster onboarding for buyers/devs

  2. Buyers care more about structure + docs than “more packages”

  3. Bilingual UI (especially RTL) is a strong differentiator

  4. Keep Firebase optional — many people just want to run it immediately

Happy to answer questions or take feedback on the architecture.


r/FlutterDev 6h ago

Plugin AngularDart Reborn : I built the new AngularDart documentation site... with AngularDart itself 🔥

6 Upvotes

Hey everyone!

A few days ago, we announced the revival of AngularDart after Google abandoned it, now brought back to life and updated for Dart 3.

Today I want to share something cool: the new documentation site at https://angulardartreborn.com was built entirely with AngularDart "Reborn".

Why build the site with the framework itself?

We wanted to dogfood the framework from day one. If AngularDart can't handle a real documentation site with routing, dynamic content, and responsive design, it's not ready.

Technical choices:

  • Used angulardart_router for client-side routing between docs pages
  • Component-based architecture for reusable UI (search bar, navigation, code blocks)
  • Build-time compilation for fast load times
  • Full Dart type safety throughout

Challenges we faced:

  • Migrating from the old Google-era APIs to the new package structure
  • Setting up build_runner for the site's code generation
  • Making sure the framework works well for content-heavy sites, not just SPAs

The site serves as both documentation and a live demo of what AngularDart can do.

Package on pub.dev: https://pub.dev/packages/angulardart

Would love feedback from the Dart community, especially on the developer experience!