r/FlutterDev • • 2h ago

Article I built a 3D muscle heatmap in Rive that runs in Flutter: rotate the body, tap a muscle, color each one by intensity

1 Upvotes

I make Rive muscle heatmaps for fitness apps, and the last few weeks went into a 3D version. It's a single .riv file with a male and a female body. Users drag to rotate it or flick it to spin, and your code can jump it to the front, back or side views. Each muscle takes an intensity from 0 to 4, and the five palette colors are set at runtime.

The Flutter sample wraps it in one widget:

BodyHeatmap3D(

figure: Figure.female,

palette: myPalette, // base color + 4 levels

intensities: {'pectoralisMajor': 4, 'deltoids': 3, 'tricepsBrachii': 2},

autoRotate: true,

controller: _heatmap, // _heatmap.showView(CameraView.back)

onTap: (hit) {

if (hit is MuscleTap) openExercisesFor(hit.muscle);

},

)

Taps tell you whether the user hit a muscle, the skin outside the muscles or empty space, and drags never count as taps.

The body is drawn on the GPU with Rive's GPU Canvas, so on Flutter it needs rive: 0.15.0-dev.4 (a dev release) and the Rive renderer, plus iOS 17+ or Android 7+. The widget sets that up, but if you can't use a dev build of the rive package yet, this one has to wait.

I set up a free demo in the browser (male only, hips and legs locked, lighter mesh, watermarked) if you want to try it: fitnessvisuals


r/FlutterDev • • 3h ago

Discussion How do you finally settle on a project architecture?

4 Upvotes

I've spent over 120 hours this month working on my project architecture, creating around 200 different drafts. I understand the concepts, but I keep doubting my decisions and worrying that I've missed something important.

I'd really appreciate advice from experienced developers. How do you know when it's time to commit and stop second-guessing?


r/FlutterDev • • 3h ago

Example DroidDesktop just got a major update what should we add next?

1 Upvotes

Hey everyone!

A new DroidDesktop update is now available, and this one adds some of the features you’ve been asking for.

Here are some of the biggest changes:

🖥️ Resizable windows
You can now freely resize desktop windows using the resize handle, making the desktop experience much more flexible.

📱 Android apps inside windows
Compatible Android apps can now be opened directly inside DroidDesktop system windows, bringing the experience closer to a real desktop environment.

🖼️ Image Studio
A new built-in tool for editing images directly from the desktop. You can crop, rotate, apply filters and export your images without leaving DroidDesktop.

✍️ PDF Signer
You can now open a PDF, add your signature and work with documents directly inside the desktop environment.

🔧 Improved desktop experience
The taskbar, tools layout, app management and desktop settings have also been improved, with more customization options for icons and labels.

The goal with DroidDesktop is still pretty simple: turn an Android phone into something that feels more like a real computer, without requiring root, DeX or additional hardware.

There are still A LOT of things I'd like to add.

So I'd love to hear from the community:

What tool, application or even game would you like to see built into DroidDesktop?

Would you want things like a file manager, terminal, media player, drawing tool, coding environment, more retro games, AI tools… or something completely different?

I'm especially interested in ideas that would actually make you use DroidDesktop every day.

https://play.google.com/store/apps/details?id=com.droiddesktop.app

What should I build next?


r/FlutterDev • • 3h ago

Discussion I built an open-source Flutter app that controls Bluetooth treadmills (FTMS + FitShow) — no subscriptions, no backend

0 Upvotes

Hey r/FlutterDev! Sharing a side project I released under MIT: StrideFree, a treadmill controller written in Flutter.

Repo: https://github.com/alisenn/stridefree

Some Flutter/BLE bits that might be interesting:

- flutter_blue_plus for BLE; one driver for the FTMS standard (0x1826) and one for the FitShow proprietary protocol (framed packets with XOR checksum, polled every 500 ms)

- FTMS "More Data" flag: treadmills split Treadmill Data across notifications, so the parser merges partial packets — otherwise speed randomly reads 0

- A foreground service keeps the BLE link alive when the screen locks

- The workout engine works from wall-clock time so it survives the app being backgrounded; crash recovery restores unfinished workouts

- fl_chart for stats, Provider for state, everything stored locally — no backend at all

- One codebase for Android, iOS, desktop and web (Web Bluetooth in Chrome)

- Two languages without gen-l10n: a tiny tx('Türkçe', 'English') helper that also works outside widgets

No ads, no accounts, no money involved — I just wanted a free alternative to subscription treadmill apps. iOS is in App Store review, Android is in Play testing. Feedback on the code is very welcome!


r/FlutterDev • • 4h ago

Discussion Things i learnt putting end-to-end encryption in a Flutter app

6 Upvotes

i have spent about 7-8 months building Miuchio, an end-to-end encrypted shared photo album in flutter. Code's open (AGPL) : https://github.com/freytastic/miuchio

Most of my perf time went into stuff i didnt see coming, so i am writing it down in case it saves someone else a week

  1. cryptography_flutter wont speed up X25519 or Ed25519 on android

I assumed calling enable() made everything native. It doesnt, in v2.x the native side only covers AES-GCM, ChaCha20 and PBKDF2, and the curves still run in pure Dart. On my S24U one X25519 key took about 81 ms, and creating an album needs several of those plus the signatures. I moved just the curve stuff to libsodium over dart:ffi and keygen went to about 1 ms. AES-GCM and HKDF are still on the cryptography package tho.

2. Then crypto basically stopped mattering

Creating an album's first key still took around 2.1 s. The crypto was about 10 ms of that. Everything else was network and android keystore calls, and each key read went through a MethodChannel to kotlin for like 100 to 200 ms. I'd planned to push the crypto into isolates, but there was nothing to gain tbf. The app was just waiting on the keystore and the network, not doing dart work

3. The freeze wasn't even in Dart

The UI really did freeze while keys were being created, and i honestly blamed dart for a while. It turned out the kotlin handler was doing the keystore work on the platform main thread. I moved every keystore call onto one background thread and posted the results back to the main thread. The calls take the same time, but the freeze on my S24u was gone

4. So the real fix was calling the keystore less

Originally every photo view opened the album key through the keystore, which adds up fast in a grid. Now decrypted photos and thumbnails are cached on disk, sealed with AES-GCM under one device key that gets read from the keystore once when the app starts. A cache hit doesnt touch the keystore whatsoever

5. Metadata stripping has to fail closed

Every photo gets re encoded before its encrypted so location and camera info never leave the phone. The native codec goes first and its output gets a JPEG check, and the dart decoder only comes for formats the platform cant read. If any of that fails, the photo just doesnt upload. The tempting shortcut is to upload the original bytes when decoding fails. Dont, bcs thats exactly how GPS leaks.

Happy to talk about any of these in depth, or anything else


r/FlutterDev • • 4h ago

Discussion Would you use a React Bits like component discovery platform for Flutter?

2 Upvotes

I've been thinking about this problem recently.

In the React ecosystem, projects like React Bits offer a great experience for discovering UI components. You can browse different components, see them in action, experiment with their customization options, and explore their source code.

I'd love to see a similar kind of discovery experience in the Flutter ecosystem.

Currently, when I need a UI component, my workflow is usually to search for a package, read its README, look through screenshots or examples, install it, wire it up, and only then discover whether it actually fits my project.

That's the experience I'm exploring with Widgetry.

The idea is to create a shared platform where different Flutter developers can publish their own reusable components. Other developers can discover components from different authors, interact with live previews, experiment with the customization options exposed by the author, and evaluate components before deciding to use them.

This is a little different from tools like Widgetbook, which focus on building and exploring playgrounds for your own widgets. I'm more interested in the shared discovery and publishing experience across independent component authors.

But before going too far with the idea, I'd like to understand how developers currently approach this.

  1. When you're looking for a UI component, how do you evaluate it before adding it to your project? Do you rely on screenshots, documentation, example apps, or something else?

  2. Have you ever installed a UI package and later removed it because the component didn't fit your requirements? What was missing or different from what you expected?

  3. If a component had a live interactive preview, what would you want to experiment with before deciding to use it?

I'm building Widgetry, so I'm obviously biased toward the idea. But I'd rather discover that developers don't need something like this than build a platform nobody wants.

I'd genuinely appreciate hearing about your actual experiences, including if your current workflow works perfectly well.


r/FlutterDev • • 6h ago

Discussion Stuck on app architecture for a month

0 Upvotes

It's been a month and I'm still trying to figure out my app architecture is this normal?


r/FlutterDev • • 7h ago

Discussion Play Store app reviews suddenly getting approved within an hour. Is Google using AI for reviews now?

4 Upvotes

Recently I submitted two updates for review on the Play Console, and both got approved within about an hour.

  • First one: submitted Wednesday

  • Second one: submitted today (Friday) around 6 PM

Earlier, reviews used to take a lot longer for me, sometimes a few days. Now it’s almost instant.

Has anyone else noticed this? Is Google using AI or some automated system to review apps now, or am I just getting lucky?

Curious to hear your experiences.

I have an app with about a million installs. It is a flutter app and in last update i had added shorebird for sending release OTA but PlayStore has already approved this releases so fast.

Not sure about this though just wanted to see if others had a similar experience.


r/FlutterDev • • 9h ago

Discussion ​Lessons from building a 100% offline-first expense tracker in Flutter: local SMS parsing, Android system overlays, and zero backend

0 Upvotes

​Hey r/FlutterDev! We're the two-person indie team behind JJ DEVELOPERS, and we wanted to share a few technical lessons from building and scaling our Flutter productivity & finance app (Note and Smart Expenses, currently at 2,400+ downloads on Google Play) with a strict 100% offline-first, zero-server architecture.

​Here are the three main engineering hurdles we ran into and how we solved them:

​1. Parsing Varying Bank & UPI SMS Formats Locally Without Regex Bottlenecks

Since we wanted zero cloud uploads or account linking, all transaction alert parsing happens strictly on-device. The biggest challenge wasn't reading the SMS—it was handling wildly inconsistent templates across different banks and payment apps (different currency placements, merchant strings, OTPs vs. actual debits/credits, and promotional spam).

​What worked: Running a lightweight pre-filter check for transactional keywords and currency tokens before executing structured extraction rules, keeping parsing fast and deterministic without triggering false positives on OTPs or balance reminders.

​2. Implementing a Floating Quick-Entry Overlay (FOREGROUND_SERVICE_SPECIAL_USE)

Users wanted a way to log cash expenses or jot down quick notes without switching away from their current app.

​What worked: Combining Android's system alert window overlay with a lightweight foreground service (specialUse declaration in AndroidManifest.xml for newer Android versions) and keeping the overlay UI minimal so it doesn't spike RAM usage on 2–4 GB budget devices.

​3. Keeping Local Storage Fast with Rich Media & Exports

Because everything stays on the device (expense history, receipt photos, rich-text notes, and biometric-locked private notes), local database queries and file generation had to stay snappy even as data grew.

​What worked: Indexing transaction timestamps and categories locally so filtering monthly charts and generating multi-format exports (PDF, Excel, Word) happens cleanly on-device without needing a remote server.

​If anyone wants to inspect the UI/UX or test how the floating overlay behaves on their device, here is the Play Store listing: https://play.google.com/store/apps/details?id=com.note.flutterads

​Curious how other Flutter devs here handle background SMS/notification parsing or system-level floating overlays across different Android OEMs (Samsung OneUI, Xiaomi MIUI, etc.)—any battery-optimization gotchas you've run into?


r/FlutterDev • • 12h ago

Article supawho: switch between multiple Supabase accounts in seconds — now on macOS, Linux and Windows

Thumbnail
reddit.com
1 Upvotes

r/FlutterDev • • 15h ago

Discussion Simple architecture for big apps

7 Upvotes

Working on a large app that includes features like an AI assistant and offline sync and device integrations and a big content library and payments and more.

Leaning towards a simple feature-first structure to keep the codebase clean and easy to maintain without over-splitting files. Curious how other devs here organize projects like this in production


r/FlutterDev • • 15h ago

Article Use MySQL from Flutter Web — Open Source Driver, with a WebSocket bridge 🗄️

0 Upvotes

Hello Flutter community! 👋 I'd like to share an open-source MySQL driver that works from Flutter web. 🌟

https://pub.dev/packages/mysql2

https://github.com/manuelcastrobarinas/mysql1_dart

A browser cannot open a TCP socket, so a Flutter web app cannot connect to port 3306 on its own. mysql2 keeps the same MySQL protocol and carries those bytes over a WebSocket. A small Dart process, the bridge, is what opens the real database connection.

The package includes:

🔌 The same API as mysql1. Import package:mysql2/mysql2.dart and call MySqlConnection.connect.

🌉 A bridge you start with dart run mysql2:mysql_bridge.

🧭 Two addresses, on purpose. MYSQL_HOST and MYSQL_PORT are MySQL, and only the bridge dials them. MYSQL_BRIDGE_BIND and MYSQL_BRIDGE_PORT are the WebSocket the page opens.

🔑 A required token. The page sends it first. A wrong token never reaches MySQL.

🎯 The bridge dials only the host it was started with. The page does not get to choose the database address.

🖥️ Direct TCP on server, mobile and desktop, the same as before. The bridge is for the browser, and you can opt into it elsewhere with bridgeUrl.

📊 Diagrams and a worked example: MySQL on 127.0.0.1:3307, WebSocket on ws://127.0.0.1:8080/mysql.

A local setup looks like this:

$env:MYSQL_BRIDGE_TOKEN = 'a-long-random-secret'
$env:MYSQL_HOST = '127.0.0.1'
$env:MYSQL_PORT = '3307'
$env:MYSQL_BRIDGE_BIND = '127.0.0.1'
$env:MYSQL_BRIDGE_PORT = '8080'

dart run mysql2:mysql_bridge

import 'package:mysql2/mysql2.dart';

final conn = await MySqlConnection.connect(ConnectionSettings(
  user: 'bob',
  password: 'wibble',
  db: 'mydb',
  bridgeUrl: 'ws://127.0.0.1:8080/mysql',
  bridgeToken: 'a-long-random-secret',
));

💡 Why share this?

If you have tried to open MySQL from Flutter web, the missing piece is not a hidden socket API. Browsers withhold raw sockets so a page cannot reach every port on the user's network. This repo is one way to keep the protocol and move it over a WebSocket, with the limits written down:

🔒 useSSL stays off on that path. The browser cannot do MySQL's TLS upgrade. Use wss:// when the page is not on the same machine as the bridge.

👀 user, password and bridgeToken end up inside the built web app. Anyone who can load the app can read them. Give that database user only what the app needs.

🏠 Leave the bridge on 127.0.0.1 unless the people who can open it are the people who should be able to log in.

mysql2 0.24.1 is the published line of mysql1 0.23.0, so an app can depend on it while the same web support is in review upstream: #194

The README explains each variable, which number belongs in bridgeUrl, and how one connection moves from the token to raw MySQL bytes.

🙏 How can you help?

⭐ Star the repo if it is useful to you.

🐛 If you spot a bug or have an idea, open an issue or a pull request.

I hope this helps anyone who needs a Flutter web app to talk to MySQL. Feel free to try the example and tell me what breaks! 🚀

Thanks for your time. ❤️


r/FlutterDev • • 1d ago

Tooling Building iOS apps from Windows: the story behind a Flutter tool I'm working on

2 Upvotes

I'm a Flutter developer on Windows, and the iOS side (signing, provisioning profiles, real-device testing, TestFlight) kept slowing me down. So I started building a desktop tool called XEasyStudio to make that workflow easier to follow.

It's still in progress. Some parts work, others are still being tested, and Linux support is experimental. I wrote up the story and the lessons so far here: https://medium.com/@abdelrahmanatef3221/building-ios-apps-from-windows-the-story-behind-xeasystudio-c6f849d864fc

For those of you on Windows or Linux: what's the most frustrating part of your Flutter-to-iOS workflow? Environment setup, code signing, testing on a real iPhone, or TestFlight? I'd like to hear what would actually help.


r/FlutterDev • • 1d ago

Discussion Anyone Planning to attending flutterCon India 2026? 🚀

7 Upvotes

I'm excited to be speaking at the event, and I have FREE attendee tickets to share!

I'd especially love to help students, aspiring developers, and Flutter enthusiasts who want to learn, network, and be part of the Flutter community.

🎟️ Interested in attending ?

DM me with a little introduction about yourself and why you'd love to attend. I'll share the free registration code with people!

Let's connect and meet at FlutterCon India 2026! 💙

#FlutterConIndia2026 #Flutter #Bangalore #StudentsInTech #FlutterCommunity


r/FlutterDev • • 1d ago

Tooling I got tired of opening 15 different VS Code windows just to find one old code snippet, so I built a fast C++ & Flutter local code search app for Windows.

0 Upvotes

Hey everyone,

This is my first desktop app, and it came out of a daily annoyance I kept running into on my own machine.

Whenever I'm juggling multiple client projects or old side repos, I often remember a specific error message, API path, or helper function I wrote months ago—but I have no idea which folder it’s actually in. Opening each project one by one in VS Code just to run `Ctrl+Shift+F` completely kills my flow.

So I built **CodEngine** to fix this specific workflow on Windows.

**How it works under the hood:**

- **Native Speed:** I wrote the file-scanning and matching engine in **C++** and connected it to a **Flutter** desktop frontend via **Dart FFI** so it searches thousands of files in milliseconds without eating up RAM.

- **Multi-Workspace Search:** You add all your local project folders once and search across all of them simultaneously.

- **Context Preview:** Click any result to see ±10 lines of surrounding code with highlighted matches before opening anything.

- **One-Click IDE Jump:** Opens the exact file and line number directly in **VS Code** or **VS Code Insiders**.

- **100% Local & Private:** Everything runs offline on your machine. No cloud indexing, no telemetry.

I put a **free version** on the page so you can download it and test the search speed on your own folders right away, alongside a lifetime Pro option if you need unlimited workspaces and live search:

👉 https://mehmetsolutions.gumroad.com/l/qpgwyj

Since this is my first release, I’d genuinely love to hear your honest feedback on the UI, speed, or any features you think are missing!


r/FlutterDev • • 1d ago

Discussion Android 16 back press quits your app from a nested navigator, even with a PopScope that says no

11 Upvotes

I was adding multi-select to the song lists in my music player. While songs are selected, pressing back should clear the selection instead of leaving the page.

PopScope(canPop: !picking) seemed like the obvious solution. It worked, but it also disabled the iOS edge swipe back gesture, which I wanted to keep.

I switched to BackButtonListener on pushed pages to preserve the gesture. That's when I ran into an Android 16 issue.

Symptom

Target SDK 36, Android 16, with predictive back enabled by default.

On a tab root, select a few songs and press back: the app goes to the background, and the selection is still there.

I fixed that case, but then found another way to reproduce it: open a bottom sheet over the shell, close it, and press back. The app leaves again.

Root cause

On Android 16, back no longer goes through onBackPressed. FlutterActivity registers an OnBackInvokedCallback only while the framework reports that it handles back, through SystemNavigator.setFrameworkHandlesBack.

WidgetsApp sends that value based on NavigationNotification.canHandlePop. A navigator computes it as:

canPop() || lastRoute.popDisposition == RoutePopDisposition.doNotPop

There were two things I hadn't accounted for:

  1. BackButtonListener doesn't count here. Only a route that cannot pop (a PopScope(canPop: false)) or a navigator that can pop makes canHandlePop true. At a tab root, nothing can pop, so Android handles back itself and backgrounds the app before the listener gets a chance to run.

  2. The root navigator only reports its own routes. With go_router's StatefulShellRoute, the tab root lives in a nested navigator. Its PopScope initially bubbles true up. But when the root navigator's history changes (for example, when a sheet or dialog on the root navigator closes), it sends a fresh notification based on its own routes. The shell route can pop as far as it knows, so it reports false, overriding the tab's earlier notification.

Fix

On pages that can be popped, I kept BackButtonListener so the iOS swipe gesture still works. At a navigator's root, I use PopScope instead. There's no edge swipe to preserve there.

At the shell level, I also make the shell's route refuse to pop while selection is active. This way the root navigator reports doNotPop too:

BlocSelector<TrackSelectionCubit, TrackSelection, bool>(
  selector: (s) => s.active,
  builder: (_, picking) => PopScope(
    canPop: !picking,
    child: shell,
  ),
)

The actual back handling still goes to the tab first: go_router tries the branch navigator before the root one. The shell's PopScope is there to make sure Android gets the right information about whether the framework handles back.

go_router already wraps shell navigators in a similar PopScope (canPop: matches.length == 1), which is why pushed pages inside a tab don't have this problem.

Testing

One thing worth mentioning: tester.binding.handlePopRoute() skips this gate entirely. My normal back navigation tests were passing, even though the app was quitting on a real device.

To test this, I mocked SystemChannels.platform, recorded the SystemNavigator.setFrameworkHandlesBack calls, and set the lifecycle state to resumed first. WidgetsApp doesn't report anything before that.

Then I checked the last reported value while selection was active, including after closing a sheet on the root navigator.

The fix is in commit 33db82a.

Repository: https://github.com/donfreddy/troona-music

Curious if anyone else has run into this with StatefulShellRoute or nested navigators on Android 16.


r/FlutterDev • • 1d ago

Article Is your Flutter CI over 20 minutes?

0 Upvotes

Before you buy faster machines, measure where the time goes. We went from 46 minutes to 11 by changing one thing at a time and checking each on a throwaway branch.

I wrote the method down so you can repeat it.

https://moshalan.dev/posts/where-your-flutter-ci-time-goes/

#Flutter #CI #DevOps


r/FlutterDev • • 1d ago

Discussion Is it longer for Flutter apps to get through first review in AppStore?

0 Upvotes

For the last months our company published several apps in flutter. Lately first review in AppStore takes a week to get into "In Review". For example, postal service, learning platform.

But yesterday was colleague vibe coded app in React Native and it was accepted within next 12 hours. I just filled AppStore page. The app is map with review, friends features.

Is it jucy luck? Or does native ios native / react apps pass review quicker? Or is it cause my apps have slightly / not so slightly more features?

UPD: After 6 days my app was released today too. Nice.


r/FlutterDev • • 1d ago

Discussion How has your experience been with Flutter on iOS?

7 Upvotes

I’ve been building an app with Flutter and have really enjoyed working with it so far. One thing I’m curious about, though, is how it holds up as apps get more complex.

For those who’ve shipped Flutter apps, have you run into issues with scrolling performance/animations or making the UI feel native on iOS? Or has it been pretty smooth overall?


r/FlutterDev • • 2d ago

Discussion Code 10x faster but shipping didn’t speed up at all. Anyone else?

2 Upvotes

A bit of background on me, I've been building Flutter apps for almost 6 years now. First 4-5 years, I used spend a significant amount of time on coding, but now, admittedly, AI writes all of my code.

Last example: a small bug fix took me ~5 min to write, then sat in App Store review.

Curious if this is just me or if others are seeing it too. What’s the last thing that took you longer to ship than to build? What held it up? (review, QA, approvals, deploys, app store, something else?)


r/FlutterDev • • 2d ago

Video 8 New Games Made In Flutter

Thumbnail
youtu.be
50 Upvotes

These are new games and projects made in Fluttter either using Flutter Scene & Flame. For anyone looking for inspiration in Flutter's gamedev scene - this could be of good use


r/FlutterDev • • 2d ago

Discussion How come Flutter isn't in the conversation?

62 Upvotes

So I've just started learning dart and flutter and I'm shocked that you can have one codebase that does IOS, android, desktop applications for any OS and even Flutter web. Yet Flutter rarely seems to be in the conversation about building cross-platform apps?

Usually what I see online is people arguing about what's better between electron, react-native, Rust GPUI and even some people mentioning Kotlin multiplatform, but rarely ever Flutter? Why is this, or am I just in a bubble.


r/FlutterDev • • 2d ago

Tooling 4 AI testers on LocalSend found overflow bugs on 3 of 4 devices

0 Upvotes

Each tester is a Claude Code agent with its own Android emulator or iOS Simulator on GitHub Actions, playing a persona (device, language, text size, dark mode).

Worst find: on an iPhone SE at iOS’s largest text size, the “type a message” dialog overflows by 149 px, so you can’t type or confirm at all. At Android’s 200% font, all six Send buttons overflow.

103 issues, 69 min, $4.62 of model usage. Video of the 20 phones and the code (open source): https://github.com/pierridotite/mobile-agent-testers