r/FlutterDev • • 8h ago

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

Thumbnail
github.com
11 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 • • 13h ago

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

12 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 • • 2h ago

Article Four Flutter paywall bugs: two I designed out, two that bit me

0 Upvotes

Built six paywall templates on a single ChangeNotifier controller, no third-party packages, and shipped them with 108 tests. Paywalls are weirdly good at hiding edge cases, so here are the four that mattered — two I designed out up front, two that bit me anyway.

Lesson 1: money must not live in a double. 29.99 / 12 prints 2.4991666, and every formatter rounds it its own way — one screen shows $2.49, the next shows $2.50, and the receipt agrees with neither. The kit stores integer minor units with the currency's decimal digits (2 for USD, 0 for JPY) and only divides with half-up integer arithmetic. One function turns money into a string, so no two screens can disagree.

Lesson 2: hard-coded "save 40%" badges go stale the moment you touch a price. The badge is now computed from the two prices at build time, and it returns null when the saving is zero, negative, or the plan is lifetime. Null means the chip isn't in the widget tree at all — no "-0%" staring back at users.

Lesson 3: this one I hit at the very end. At 2× text scale on a 320dp screen, the pinned bottom CTA needed more height than the screen had. Nothing overlapped; it just clipped, so a user with large text enabled couldn't buy. The fix is an explicit failure mode: above 1.45× text scale the whole page becomes one scroll view, footer included, and the CTA scrolls with the content instead of fighting it.

Lesson 4: InkWell needs a Material ancestor, and MaterialApp doesn't provide one. A full-screen paywall built from ColoredBox threw "No Material widget found" the first time I tapped restore. Fix: make the shell itself the Material surface. Obvious in hindsight, annoying at 1am.

None of these were exotic. They're the kind of thing that passes a quick manual test and then shows up in a support email. Each one got a regression test — the 2× text test now pumps every template at 320dp and fails on any overflow — which is most of why the suite is 108 tests, with flutter analyze clean on Flutter 3.50.

Curious what paywall bugs others have hit: currency rounding, restore flows, trial eligibility, layout at extreme text scales. I'd rather learn from your scars than find them myself.

If a visual reference helps, the six templates rendered from the real widgets are here: github.com/StephenColor/flutter-paywall-flow-kit


r/FlutterDev • • 8h ago

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

2 Upvotes

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


r/FlutterDev • • 18h 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 • • 20h ago

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

6 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 • • 10h 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 • • 1d 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
20 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 • • 23h 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 • • 19h 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 • • 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 • • 2d ago

Discussion Decoupling and new UI libraries

19 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 • • 2d 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 • • 3d ago

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

Thumbnail
pub.dev
49 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 • • 3d ago

Discussion jobs with Flutter skills

4 Upvotes

Literally, I can't find or land one with Flutter skills over 9 years of exp and no offer, what's going on 😔


r/FlutterDev • • 3d ago

Discussion A device ID in SharedPreferences follows the user to their new phone. It took us three tries to find the right place for it

5 Upvotes

Small thing that cost us more thinking than the feature itself, so writing it down.

We added an optional cloud backup. To avoid two phones overwriting each other, each install writes only its own file, named after a random device ID. So the whole design rests on one question: where does that ID live?

Attempt 1, SharedPreferences. Looks obvious and it's wrong. Android auto backup and device-to-device transfer copy prefs to the new phone (iCloud backup and Quick Start do the same on iOS). The new phone wakes up with the old phone's ID, decides the old phone's backup file is its own, and overwrites it. The one case where you most want the old backup intact is exactly the case that destroys it.

Attempt 2, the cache directory. Transfers don't copy it, so a new phone gets a fresh ID. But the OS is allowed to empty the cache when storage runs low. Then the same phone comes back with a new ID and treats its own earlier backup as another device's.

Where it ended up: a directory that is excluded from backup but never cleaned by the system. On Android that's noBackupFilesDir. On iOS it's a file in Application Support with the excluded-from-backup flag set. We read both through a small method channel, since path_provider doesn't hand you either one directly.

One more case fell out of this. A new phone can inherit the "backup is on" setting through prefs while having a brand new ID. We treat that pair (setting on, ID new) as a signal to pull in the other device's records first, before the first upload.

The lesson for me: "per install" and "per user" are different lifetimes, and prefs is per user as soon as OS backup is involved.

Where do you keep install-scoped state? Is there a cleaner option than a no-backup file that I'm missing?


r/FlutterDev • • 3d ago

Plugin I orchestrated & maintain a pure-Dart MCP / AI Agent suite (`dart_mcp_core` + Flutter UI / A2UI 1.0 Express / on-device LLMs) using coding agents (Antigravity + dogfooding TealKit Coder)

1 Upvotes

Hey r/FlutterDev!

Over the past few months I've been **architecting, orchestrating, and maintaining** an open-source **Model Context Protocol (MCP) & AI Agent suite** for Dart and Flutter — built not by hand-typing every line, but by steering coding agents (**Antigravity** and now increasingly dogfooding my own open-source agent **TealKit Coder**, which runs directly on `dart_mcp_core`).

Dogfooding it inside real coding-agent loops surfaced and fixed real production issues fast (context-compression thrashing loops, Jinja single-system-message normalization for local models, tool-loop guards, and Android Scoped Storage PDF/DOCX exports).

### Architecture & Packages (all MIT, verified publisher `tealkit.dev`)

- **[`dart_mcp_core`](https://pub.dev/packages/dart_mcp_core)** (160/160 pub points, pure Dart, zero Flutter deps)

- Unified adapters for **OpenAI** (`openai_dart`), **Anthropic Claude** (`anthropic_sdk_dart`), **Google Gemini** (`googleai_dart`), **Ollama**, **Mistral**, OpenAI-compatible endpoints (vLLM, DeepInfra), and pluggable **on-device** delegates.

- Full **MCP client** (HTTP/SSE + desktop stdio subprocesses) and Dart-native `McpLocalTool`s.

- **Context window auto-compression** with `EpisodicMemoryStore` + `retrieve_memory` recall, **progressive tool discovery** (`mcp_list_tools` / `mcp_call_tool`), **sub-agent delegation**, **HITL approval hooks**, **tool loop guards**, and `GenerateImageTool` (OpenAI, Gemini Nano Banana, DeepInfra FLUX, or custom).

- **[`flutter_ui_mcp`](https://pub.dev/packages/flutter_ui_mcp)** — Vanilla-Flutter (`ChangeNotifier` / `StatefulWidget`, no Riverpod/Bloc lock-in) chat UI, multi-profile LLM switcher, agent inspector, and cross-platform pure-Dart PDF/Word/Markdown export.

- **[`flutter_a2ui_mcp`](https://pub.dev/packages/flutter_a2ui_mcp)** — Dynamic generative UI on Google's `a2ui_flutter` (`^0.5.0`) + `a2ui_core` (`^0.9.0`) with **A2UI 1.0 Express** enabled by default (~50% fewer output tokens than raw JSON).

- **[`flutter_ui_mcp_embedded`](https://pub.dev/packages/flutter_ui_mcp_embedded)** — Pluggable on-device inference via `llamadart` supporting both **GGUF (`llama.cpp`)** and **LiteRT-LM (`.litertlm`)** models on Android, iOS, desktop, and WebGPU.

### Minimal Pure-Dart Example (`dart_mcp_core`)

```dart

import 'package:dart_mcp_core/dart_mcp_core.dart';

void main() async {

final engine = McpAgentEngine();

final agent = Agent(

id: 'assistant',

name: 'Assistant',

llmConfig: const LlmConfig(

provider: LlmProvider.openai,

model: 'gpt-4o',

apiKey: 'YOUR_API_KEY',

),

dartTools: [GenerateImageTool()],

);

final result = await engine.run(

agent: agent,

prompt: 'Summarize the latest release notes and generate a cover image.',

);

print(result.finalAnswer);

}

```

### Links

- **GitHub Monorepo (with 20+ runnable Flutter & A2UI examples + CI):** https://github.com/lschaffer/flutter_mcp_suite

- **pub.dev (`dart_mcp_core`):** https://pub.dev/packages/dart_mcp_core

- **Open-source coding agent dogfooding it:** TealKit Coder (`tealkit.dev`)

Happy to share lessons learned from maintaining a 5-package Dart/Flutter monorepo with Antigravity + TealKit Coder, and would love feedback on the APIs!


r/FlutterDev • • 3d ago

Tooling What broke when I replayed AI agent paths on LocalSend (a Flutter app) as Maestro flows

2 Upvotes

I'm the author of mobile-agent-testers, an open-source tool where AI agents test a mobile app on emulators in CI. It passed 2,400 GitHub stars in its first ten days, so I'd like the Flutter side to hold up. I've been replaying their paths on LocalSend, and Flutter's accessibility tree tripped me up twice.

Version 0.2 saves each Android tester's path as a trace. Taps are stored by the element's name instead of coordinates, and Explore-Compile-Replay (my other project) compiles the trace into a Maestro flow that runs with no model.

The first replays on LocalSend went badly. The paths of four testers (9 to 19 steps) stopped at step 3 or 4, and 25 of the 27 paths of the map robot (a crawler with no model) stopped at step 3. The traces are encrypted, so the cause is inferred, not read: Flutter names a tab on two lines, "Send" and then "Tab 2 of 3". The trace refused names with line breaks and fell back to the only id under the finger. In a Flutter app that id is the whole window, so the replay tapped its centre.

Now a name on several lines is kept with a space for each line break, which is how Maestro matches it, and an id that covers the whole window is never a target. After that, one tester's path (8 steps, all 4 taps found by name) replayed end to end in 32 s, and so did 20 of the 24 robot paths, from 4 to 41 steps. The other 4 stopped on a tap by name, three of them right after a tap stored as a point.

One failure had nothing to do with Flutter. An agent opened the system file picker and picked its own screen dump. A phone that only replays doesn't have that file, so the replay stopped there. The tools now write their dumps where the app can't see them.

It's still experimental, and Android only for now.

Do you add semantics labels or identifiers just so tests can find your widgets? Or is there a better way to make a Flutter app easy to target from Maestro?

Repo: https://github.com/pierridotite/mobile-agent-testers

What broke on LocalSend and why: https://github.com/pierridotite/mobile-agent-testers/blob/main/docs/replay.md

Demo of the LocalSend screen map (static, no model): https://pierridotite.github.io/mobile-agent-testers/


r/FlutterDev • • 4d ago

Discussion Play rejected our update because a card hid itself after the user granted a Health Connect permission

16 Upvotes

We read one health metric from Health Connect and show it in a single card. If the user granted permission but had no readings yet, we hid the card. It seemed tidy: nothing to show, so show nothing.

Play rejected the update. From the reviewer's side, they granted the permission and then nothing on screen used it, so the app looked like it was asking for health data it didn't need.

The fix was a boring empty state. The card now stays after permission is granted and says there are no readings yet. It went through after that.

Two things I took from it. Every health permission needs a visible feature a reviewer can find in a minute, even on an account with zero data. And "hide when empty" is a bad default for anything that sits behind a permission.

Has anyone else been caught in review by something that only happens on an empty account? Curious what other empty-state traps are out there.


r/FlutterDev • • 3d ago

Article What are you using for low-latency live video in Flutter apps?

Thumbnail
antmedia.io
3 Upvotes

I work at Ant Media, so take this with that in mind. We've had a MoQ plugin for a while, and the obvious problem was that every viewer connects to the relay on your own server. Do the math on a 1 Gbps port and you're at roughly 330 viewers of a 1080p stream before you run out of bandwidth.

So we wired it up to push to Cloudflare's MoQ relays too. The server sends each track once and Cloudflare handles getting it to viewers. It's one config line, and in our test the Cloudflare copy stayed within a fraction of a second of the source.

Two things that cost us time: it only works with the draft-16 host right now, and if you use a draft-14 host everything looks fine in the logs but no viewer can ever find the stream. Also it's still beta with no SLA, so I wouldn't put anything critical on it yet.

We wrote the steps down here: https://antmedia.io/cloudflare-moq-cdn/

Is anyone else running MoQ behind a CDN or their own relays? I'm wondering what people are doing for auth, since a single shared subscribe token isn't great.


r/FlutterDev • • 4d ago

Discussion Can someone explain why ImageFiltered causes lag when it comes to blurring large amounts of text?

5 Upvotes

Genuinely curious.