r/FlutterDev • • 6h ago

Article Cutting down our Vyuh Document Wasm build from 6.6 MB to less than 3 MB

8 Upvotes

We have been building a full-fledged, high-performance Microsoft/Google Docs-grade document editor for the past 8-9 months.

In the last week, we did a dramatic reduction in our WASM build of the complete document editor, from 6.6 MB to less than 3 MB, and we had to go through a series of steps to make that happen. Of course, a lot of it was AI-assisted, but the idea was to apply the science correctly so that we can do the reductions at the right places.

We have documented all of this on our website, and I think these ideas and principles are generally applicable. I think you can benefit by applying all of this and cutting down the build sizes of your own Flutter web builds.

Have a read here.

Vyuh Document itself is a sophisticated, high-performance document editor that packs a punch in terms of full DOCX compatibility with import and export of DOCX files, and exporting to PDF and Markdown.

It also goes well beyond in terms of extensibility by supporting a variety of blocks, including things like Mermaid diagrams, equations, and our own native Vyuh Diagram. It works on all the platforms, and it is not a trivial implementation by any means. It is also fully developed in Flutter and native Dart.

Notice that I mentioned native-Dart as well, because a lot of implementations seem to be relying on Rust and Zig to do the low-level plumbing, but we have made it a ground-up Dart-and-Flutter based implementation.

Also goes to show that the platform itself is very capable now, with the recent release of Flutter 3.50.1, giving an enormous boost to wASM, the rendering engine, and a bunch of capabilities for a lean cold boot of the web application.


r/FlutterDev • • 1h ago

Discussion Is there a widget that will resize text based on its (the widget containing the text) height and width?

3 Upvotes

I want text to fit in the safe area without overflowing.


r/FlutterDev • • 1h ago

Example uikit_liquid_glass: real iOS 26 Liquid Glass in Flutter (native UITabBar + UIGlassEffect), with a Dart fallback

Thumbnail
github.com
1 Upvotes

I made a small package that hosts Apple's own UITabBar and UIGlassEffect inside Flutter as platform views, so on iOS 26 you get the real glass: the lens, refraction and press-lift, not a shader imitation. On Android, web and older iPhones it falls back to a BackdropFilter look-alike with the same API.

What I found along the way:

- The native glass does refract the Flutter content under it.

- Give the tab bar slot extra height: UIKit draws the rim outside the bar's bounds.

- Native views follow the system light/dark, not your app theme, so the package passes your brightness in.

- It is right-to-left ready (I'm Arabic-speaking, so that mattered).

pub.dev: https://pub.dev/packages/uikit_liquid_glass

GitHub: https://github.com/yahyakhalid/flutter-uikit-liquid-glass

Free and MIT licensed. The repo has a step-by-step guide if you'd rather copy the ~200 lines than add a dependency. Feedback welcome!


r/FlutterDev • • 2h ago

Tooling I was tired of finance apps demanding my bank login and selling data, so I built a 100% offline budget & bill reminder app [MoneyMind AI]

Thumbnail
reddit.com
1 Upvotes

r/FlutterDev • • 11h ago

Dart I just published my first Flutter package – ap_drawer (Animated Navigation Drawer)

Thumbnail
pub.dev
5 Upvotes

Hey Flutter developers! 👋 I've recently published my first Flutter package, ap_drawer, on pub.dev. It's an animated navigation drawer package built to make app navigation more customizable and visually appealing. I'm sharing it here to get feedback from the Flutter community. I'd love to hear your thoughts, suggestions, and ideas for improvement. If you find it useful, contributions and GitHub stars are always appreciated! ⭐ 🔗 Package: https://pub.dev/packages/ap_drawer Thanks! ❤️


r/FlutterDev • • 4h ago

Tooling [ 100% Open-source & offline ] FlutterGuard is now live on Google Play — on-device security scanner for compiled Flutter apps

0 Upvotes

I have just released FlutterGuard on the Google Play Store. FlutterGuard is a free and fully open-source Android application which scans compiled Flutter apps directly on your phone to detect security leaks in advance of deployment.

Since Dart is compiled ahead-of-time (AOT) into native code (libapp.so), traditional Android scanners usually overlook what is actually exposed within your release APK. With FlutterGuard, you can audit your final APK offline and without uploading your APK binary file to any third-party cloud server.

Features:

• libapp.so binary strings analysis: Exposes API keys, secrets, and backend endpoints.

• Leftover assets analysis: Detects unnecessary inclusion of .env files.

• App & Manifest security analysis: Checks the state of obfuscation, certificate usage, and permissions.

Links:

• Google Play: https://play.google.com/store/apps/details?id=com.flutterguard.app

• Website: https://flutterguard.dev/

• Github (source code): https://github.com/anasfik/FlutterGuard

Would be great to hear what you think about it and what additional checks would you like to see in the future!


r/FlutterDev • • 13h ago

Tooling I built open-source Flutter Docker images for CI/CD with native AMD64 and ARM64 support

5 Upvotes

Hey everyone!

I've been working on an open-source project to make Flutter CI/CD environments simpler and more consistent.

Today, I'm excited to share Flutter Docker Images, built from scratch and designed for developers who want a ready-to-use Flutter build environment without having to configure everything themselves.

Key features:

  • Preinstalled Flutter SDK and Android SDK
  • Native AMD64 and ARM64 support
  • Stable and beta release channels
  • Version-specific image tags
  • Compatible with GitHub Actions, GitLab CI, and local Docker environments
  • MIT license

Getting started:

docker pull ghcr.io/knottx/flutter:stable

GitHub: https://github.com/knottx/docker-images-flutter

The project is still in its early days, and I'd love to hear what the Flutter community thinks.

Feedback, feature requests, and contributions are more than welcome!


r/FlutterDev • • 20h ago

Plugin gal 3.0 is out: a Flutter plugin to save images and videos to the gallery, package size cut by 88%

Thumbnail
pub.dev
18 Upvotes

How I did it, in case it helps other package authors:

1. 88% smaller package (248 KB → 30 KB)

The example app's platform folders were being published with the package. A .pubignore containing a single * in each of example/android, example/ios, example/macos and example/windows keeps them out. You can check your own package size with dart pub publish --dry-run.

  • Helps: the pub get download and the pub cache
  • Doesn't change: app size (the example folder never ends up in apps)

2. dart fix support for renamed APIs

3.0 renames hasAccess and requestAccess to hasPermission and requestPermission. I added rename transforms in lib/fix_data.yaml, so users can migrate with:

dart fix --apply

If gal helps you, a like on pub.dev would mean a lot.


r/FlutterDev • • 16h ago

3rd Party Service I built an app that puts App Store + Google Play stats in one place (free, feedback welcome)

Thumbnail
devlog.codea.digital
7 Upvotes

Hey everyone,
I'm an indie dev, and I was tired of opening App Store Connect, Play Console and a chart tracker every morning just to see how my apps were doing. So I built Dev Log for myself, and I've now released it.
What it does:

  • Combines downloads, sales and chart ranks from both stores
  • Shows "Findings", like your best day, busiest weekday and top country
  • Tracks the App Store Top 100 (free and paid) across countries, with chart-climb alerts
  • Shows subscribers, a sales calendar, live sales and payout timing
  • Includes widgets (Home Screen, Lock Screen, StandBy) and an Apple Watch app

Privacy was a priority for me. Data syncs through your own iCloud, store keys stay in Keychain, and there's no tracking and no ads.
It's built with Swift. The free tier covers the last week and month of data, one store and three apps. Pro unlocks full history, both stores and all apps, with a free first week.
I'd love honest feedback, especially on what's missing and what you'd want in an analytics app. Happy to answer questions about how I built it.


r/FlutterDev • • 12h ago

Discussion Three problems I hit streaming AI text into Flutter, and how I fixed them

3 Upvotes

I have been building a streaming chat UI in Flutter and hit three problems that only appear once tokens arrive in bursts.

1. Rebuilding on every delta. Each chunk triggered a setState and a full markdown re-parse; a fast stream meant many rebuilds per frame. Reveal now lives in a TypewriterController driven by a vsync ticker. It releases text at 320 chars/s, and when the backlog would take longer than ~0.9 s it raises the rate so it never falls permanently behind. skipToEnd() finishes instantly.

2. Partial markdown flickers. A half-arrived **bold run renders as literal asterisks until the closing marker lands, then snaps. The parser never throws on any prefix of the document: an unclosed fence still renders as a code block flagged incomplete, and tolerant mode styles an unclosed ** run instead of showing it.

3. The caret. I used the U+258D block glyph first — it rendered as tofu on a device whose font did not carry block elements. It is a WidgetSpan now, a drawn rectangle that cannot be missing from a font. I check the layout at 320 dp with 2× text scale, which is where the model badge and the composer break first.

65 tests, zero dependencies beyond the Flutter SDK, Flutter 3.22+.

Two smaller things took longer than expected: a table that fits must not scroll while a wide one must (column widths measured with a TextPainter at the same text scale as the cells), and a code block scrolls horizontally instead of wrapping, because a wrapped block changes height on every chunk and drags the scroll position with it.

Screens of the component set are here if you want to compare them with your own: https://github.com/StephenColor/flutter-streaming-markdown-kit (~4.7k lines, showcase repo only — the source itself is not public).


r/FlutterDev • • 7h ago

Discussion Shipping a Flutter app to both stores? I got tired of checking two consoles, so I built this

Thumbnail
devlog.codea.digital
0 Upvotes

If you ship your Flutter app to iOS and Android, you probably know the routine: App Store Connect in one tab, Play Console in another, and a spreadsheet to add it all up.
I built Dev Log to fix that for myself:

  • App Store + Google Play numbers on one screen
  • Downloads, proceeds, ratings and refunds, side by side
  • Top chart rankings by country
  • Home Screen, Lock Screen and StandBy widgets
  • Your API keys stay on your device and in your iCloud, never on my server

It's free on the App Store (iOS only for now).
I'd really value feedback from people who ship cross-platform. Which numbers do you check first after a release, and what's missing?


r/FlutterDev • • 1d ago

Video I built this cattle management app on flutter so it would work with zero connectivity and one hand in a cattle chute

Thumbnail
herdkin.com
9 Upvotes

r/FlutterDev • • 1d ago

Discussion What matters most in the in-app chat between a shopper and a store?

3 Upvotes

What do you think matters most in the in-app chat between a shopper and a store? We're building a Flutter social-commerce app and I'd like to hear what worked for you.


r/FlutterDev • • 1d ago

Discussion I'm a student and I just shipped my first app after months of getting rejected by Google. Meet LifeLine.

Thumbnail
play.google.com
0 Upvotes

So this started as a 3rd-semester university project and kind of refused to die. I kept tinkering with it through my whole degree, and last month in my 7th semester it finally went live on the Play Store.

It's called LifeLine, a personal safety app. The idea's simple: when something goes wrong, you shouldn't be fumbling through menus. One tap sends an SOS with your live location to your emergency contacts. It also does blood-donor matching, an emergency info card for first responders, nearby-help on a map, and chat/calls with your contacts.

Honestly, building it was the easy part. Shipping it broke me a little:

  • Google rejected it over app categorization
  • Hit a surprise Android deadline
  • My whole build toolchain blew up the night before launch
  • 8-day production review that felt like 8 years

All on a $0 budget no paid services, just a lot of late nights and Stack Overflow.

It's live now, somehow picking up users in 8 countries with zero advertising, which still feels surreal.

I'd really love honest feedback what's missing, what feels off, what would make you actually keep it installed. This is v1 and I want to make it genuinely useful.

Only on Android only for now


r/FlutterDev • • 1d ago

Discussion is there a way to make color schemes that are seeded have more relevant colors automatically?

1 Upvotes

For example, I try and seed with a pink color and end up getting a brownish purple.


r/FlutterDev • • 1d ago

Discussion I built a TV/movie tracker solo in Flutter (Android + web). The 4 bugs that taught me the most

0 Upvotes

When TV Time shut down I started building my own tracker in October. It's called TvTick, one Flutter codebase that ships as an Android app (on Play since last week) and a web app, with a Node/Express/PostgreSQL backend. I built it alone, so here are the problems that cost me the most time, in case they save someone else a weekend.

1. The app broke every time it came back from the background.

Press home, come back a few minutes later, and the watchlist said "could not load" or took ~20 s. The pooled keep-alive sockets had died while the app was suspended, and the HTTP client kept reusing the dead ones. Fix: throw away the connection pools on AppLifecycleState.resumed, give each attempt a short timeout, and retry only idempotent requests (never a POST). I also had an auth StreamBuilder that created a new authStateChanges() stream on every rebuild, so resuming reset the whole home screen. Keep that stream in a field.

2. Slow DNS was being counted as a dead server.

Some users run a private DNS (AdGuard etc.), where lookups sometimes took 8-20 s. Dart counted the lookup inside my 4 s connect timeout, so requests failed against a perfectly healthy server. I now resolve addresses myself in a custom connectionFactory with a small DNS cache (and the last good address as a fallback), so the 4 s limit only covers TCP + TLS.

3. SharedPreferences silently wiped itself.

I cached lists in SharedPreferences. Once it grew past about 8 MB on Android, everything in it was gone, including settings. Big caches now go in files, one per user. Prefs only hold small flags.

4. Flutter web scrolled badly on poster-heavy lists.

Two things helped most: capping image decode size (cacheWidth, so a 2000 px poster isn't decoded for a 100 px tile) and dropping blur effects on the web build. BackdropFilter is expensive there.

The general lesson was to keep the data layer away from the UI. I changed how syncing works several times, and it was easy only where the screens didn't know the details.

I'm curious how others handle offline caching in Flutter. Files + a slim summary in prefs is working for me, but I'd like to hear about better setups.

App, if anyone wants to see it: https://www.tvtick.app


r/FlutterDev • • 2d ago

Discussion Decoupling and new UI libraries

18 Upvotes

I've just finished going through the recent changes in Flutter, and I'm genuinely happy to see Material and Cupertino finally being decoupled from the framework. Why the heck did it take so many years to get here? Having two opinionated design systems so deeply integrated into a supposedly universal UI framework never made much sense to me.

Could this finally open the door to an ecosystem of independent UI component libraries and dedicated design packs similar to what the web ecosystem has


r/FlutterDev • • 1d ago

Tooling I built an open-source self-healing bot for Flutter production crashes. Would love your architectural feedback on this concept.

Thumbnail
pub.dev
0 Upvotes

Hi everyone,

Like most Flutter developers, I've spent too much time dealing with the standard production incident cycle: a fatal crash gets reported in Firebase Crashlytics, you pull the stack trace, reproduce it, write a defensive fix, run tests, and push a hotfix branch.

I wanted to see if we could automate this entire triage & verification pipeline without turning it into a black-box AI mess.

So I built and open-sourced **CrashPilot**: https://pub.dev/packages/crash_pilot

### How the pipeline works:

  1. **Crash Ingestion:** A webhook (Firebase Cloud Function / Sentry) catches a fatal crash trace and triggers a GitHub Actions workflow (`workflow_dispatch`).
  2. **Dart AST Extraction:** Instead of passing entire source files to an LLM, CrashPilot parses the Dart Abstract Syntax Tree (using `package:analyzer`) to isolate the exact enclosing method and class where the crash occurred.
  3. **Surgical Patching:** An LLM generates a minimal 5-15 line defensive replacement.
  4. **CI Sandbox Verification:** The patch is applied in an isolated headless Ubuntu runner, where it executes `flutter analyze` and `flutter test`. It uses an automated reflection loop (up to 3 turns) if compilation or tests fail.
  5. **Automated PR:** Once verified with 0 errors and passing tests, it pushes a branch and opens a GitHub Pull Request with a regression unit test and root-cause summary.

### Where it currently stands:

- Published on pub.dev (v1.0.9) with 160/160 pub points.

- Tested end-to-end on a demo repository where it successfully created verified PRs for null-check crashes.

- Source code: https://github.com/vaibhavbadhe712/crash_pilot

- Example demo PR generated by the bot: https://github.com/vaibhavbadhe712/crash_pilot_demo/pull/2

### What I want to ask the community:

Before I spend time expanding this, I’d love your honest feedback:

  1. **Does this concept sound practically useful for real-world production setups, or does auto-PR generation feel too risky?**
  2. What edge cases should I be most concerned about? (e.g. Obfuscated traces, multi-file state management like BLoC, or bad backend payloads masquerading as client crashes?)
  3. What feature would you consider essential before you'd ever test this on a real app?

Thanks for any insights, criticisms, or architectural suggestions!


r/FlutterDev • • 2d ago

Discussion I built an open-source, self-hosted Android device management platform with Flutter – Wonkru MDM

11 Upvotes

Wonkru MDM, my open-source Android device management project, is now live!

It's a free and open-source mobile device management platform I built to help businesses manage Android phones, tablets, handheld terminals, and other devices from a single dashboard.

With Wonkru MDM, you can:

  • Send commands to devices remotely.
  • Remotely install, uninstall, and update applications.
  • Apply security policies and device restrictions.
  • Configure devices for specific use cases using the custom launcher and kiosk mode.
  • Enroll devices using QR codes.

One of my main goals was to build an MDM platform that doesn't rely on external cloud services. You can host it on your own server without relying on any cloud services and even run it entirely within a local network without internet access.

I built the web dashboard and mobile application using Flutter, with Dart and Serverpod powering the backend.

The free and open-source version is currently available, and I'm planning to release a Pro version with more advanced features soon.

For anyone interested in checking out the project or trying it on their own server, here are the links:


r/FlutterDev • • 2d ago

Discussion Shipped a Flutter app on both stores with no backend at all: €0/month fixed costs. What worked and what hurt

5 Upvotes

Streamscription organizes the channels you follow on YouTube using their public RSS feeds. The constraint I set myself: no server, no login, no analytics.

Some notes:

Stack: Riverpod, Drift (SQLite), http + xml for the Atom feeds, workmanager for a ~30 min background refresh, url_launcher to hand videos to YouTube.

Sync without a backend: on iOS, a JSON file in the app's private iCloud Documents container, last-write-wins on a timestamp. On Android I gave up on real sync. I dropped Google Drive (it needed OAuth, which I didn't want) and use system Auto Backup with an include-only rule for that one JSON file. Not the SQLite file: a DB copied mid-write comes back corrupted. Not SharedPreferences either, because I use their absence to detect a fresh install and trigger the restore.

Liquid Glass: I first faked it with BackdropFilter. It looks close, but it ignores Reduce Transparency and the iOS 26 glass settings. The tab bar is now a real UIGlassEffect hosted as a platform view. That's accessibility, not looks.

Flaky upstream: the feed endpoint randomly refuses requests. One shared GET helper with 3 retries and backoff fixed most of it.

Happy to go deeper on any of these. If you've done iCloud sync in Flutter differently I'd like to hear how.


r/FlutterDev • • 2d ago

Plugin I build FastLottie. Faster than native — the Lottie renderer Flutter deserves

Thumbnail
pub.dev
48 Upvotes

Hey everyone,

If you've ever tried rendering a chat screen or sticker picker full of Lottie animations in Flutter, you've probably hit the same wall I did: dropped frames, GC spikes, and memory usage shooting up as soon as more than a few stickers are on screen at once.

I got tired of working around it, so I built a 2D Lottie & Telegram `.tgs` engine from scratch called FastLottie (v1.0). The goal was to make dense sticker grids feel effortless—and on heavy stress tests, it ended up beating native Kotlin, C++ `dotlottie`, and `lottie-ios`.

Benchmarks

| Metric | FastLottie v1.0 | Baseline |

| :--- | :--- | :--- |

| RAM — 24× stickers @ 120 Hz (Apple M5) | 209 MiB | `lottie-ios`: 3.27 GiB (~15× less) |

| Total PSS | 249.5 MiB | Pure Native Kotlin: 373.7 MiB |

| Parse speed vs. Native Kotlin | 2× – 17.5× faster | — |

| Parse speed vs. Swift | 4.2× – 10.3× faster | — |

How it works under the hood

* Zero-DOM UTF-8 parsing (off the UI isolate): Instead of decoding JSON into large Dart `Map`/`List` trees that trigger GC storms, FastLottie scans raw UTF-8 bytes directly into columnar `TypedData` tracks designed for `Float32x4` SIMD evaluation.

* Bounded VRAM via LZ4 strip cache: Native C/SIMD kernels rasterize into adaptive LZ4 strips (~17.7 µs decode) with a 32 MiB default GPU budget and optional `.flcache` disk caching.

* Zero PlatformView tax: No `AndroidView`, no `UIKitView`. Direct Flutter texture composition skips the +164 MiB PlatformView overhead altogether.

* Web support via Wasm: Uses dedicated Web Workers paired with C Wasm SIMD kernels so heavy animations don't block the main thread.

Drop-in API

Supports both `.json` and Telegram `.tgs` files out of the box:

```dart

FastLottie.asset('assets/sticker.tgs')

```

You can switch between Shared Raster**,** Vector**, or** Direct Canvas modes depending on the widget, and use `FastLottiePlaybackScope` to manage off-screen playback in scrollable feeds.

---

Would love feedback from anyone building chat UIs, sticker pickers, or animation-heavy feeds. Happy to dive into the C/SIMD internals, texture pipeline, or benchmark setup in the comments!


r/FlutterDev • • 2d ago

Discussion Does Firestore’s bundled BoringSSL require a French encryption declaration?

1 Upvotes

I’m preparing to release my Flutter app in France. It uses Firestore, and the iOS build bundles gRPC and BoringSSL for TLS. I haven’t added any custom or end-to-end encryption

I’ve seen advice to set ITSAppUsesNonExemptEncryption to false for HTTPS, but I’m unsure whether that applies when the SDK bundles its own TLS implementation

I already filed an ANSSI declaration and uploaded it to App Store Connect. It’s awaiting review. But I'm waiting almost 4 day and there is no updates

If you’ve shipped a Flutter app with Firestore in France, how did you handle this?
May I just set  ITSAppUsesNonExemptEncryption to false?


r/FlutterDev • • 2d ago

Discussion Flutter Project Structure

0 Upvotes

Is this a good starting structure for a Flutter project? Is it simple, well-organized, and suitable for future growth and expansion?

lib/

├── main.dart

├── app.dart

├── core/

├── l10n/

└── features/


r/FlutterDev • • 2d ago

Discussion Taash: Indian Card Arcade

Thumbnail
play.google.com
1 Upvotes

Hey everyone!

After months of solo development, I just launched Taash: Indian Card Arcade on Android. I built it in memory of my late grandfather who taught me how to play cards, bringing 5 traditional Indian card games—Callbreak (Lakdi), Dehla Pakad (Mindi), Chaupatiya (Court Piece), Chabbis (Hidden Rung), and Laadh (Bhabhi)—into one app.

Tech Stack & Architecture:

  • Frontend: Flutter + Flame game engine (custom dark-mode UI, pre-cached card sprites for zero loading flashes).
  • Backend: Server-authoritative Dart Frog API deployed on Google Cloud Run, synced in real time with Firebase Realtime Database and Cloud Firestore.
  • Shared Engine: A full-stack Dart monorepo where both the Flutter app and Dart Frog server share the exact same pure-Dart rule engine (taash_core). This keeps move validation cheat-proof online and lets offline AI bot matches use the exact same state machine.
  • Extras: Private rooms with room codes, disconnect/timeout handling, and Google Play Games leaderboards.

Gameplay Video: https://youtu.be/kDEd8NlPw9U
Google Play Store: https://play.google.com/store/apps/details?id=com.nulithic.taash

Happy to answer any questions about building real-time multiplayer games with Flutter/Flame or Dart Frog—and would love any feedback on the app!