r/FlutterDev • u/replayableio • Oct 27 '26
Article How to Test a Flutter Desktop App Without Appium
r/FlutterDev • u/replayableio • Oct 27 '26
r/FlutterDev • u/TopConstant8083 • Oct 27 '26
If you've ever needed a valid ID token for one of your Flutter app's users just to curl your backend or a Cloud Function, this is for you.
Firebase Token Toolkit loads your service-account key, lists your project's users, and gives you a real ID token for any of them in one click, with the decoded claims underneath and a copy button next to it. It works for every user whatever their sign-in method (email, Google, Apple, phone, anonymous), and the token passes verifyIdToken on your server.
The parts that matter for Flutter projects:
flutterfire configure project. If your API keys are restricted to the Android or iOS app, it sends the package/SHA-1 or bundle-ID headers Google checks for, so those keys work tooLinux, Windows and macOS. MIT licensed, no telemetry.
GitHub: https://github.com/smaranjit/firebase-token-toolkit
Please use it with a dev project, since a service-account key can sign in as any user. Feedback and issues welcome.
r/FlutterDev • u/vincenzo_ferrara20 • Oct 27 '26
Hey everyone!
I've just published report_flutter, an open-source Flutter package for creating reports and labels using a visual designer, without having to build every layout entirely in code.
The goal is to provide Flutter developers with a flexible reporting solution inspired by traditional report designers like Crystal Reports, but integrated directly into the Flutter ecosystem.
It's designed for desktop and mobile applications, allowing developers to integrate report creation and viewing directly into their apps.
The project has just been released, and I'd love to hear feedback from the Flutter community.
What features do you consider essential in a Flutter report designer? What would you add to make it even more complete?
Thanks for checking it out!
r/FlutterDev • u/AliXarza • Oct 27 '26
We build a role-based internal messaging app (Flutter + Firestore, anonymous auth, invite codes, one device per account). Before shipping we did one pass with strict rules: UI only, no database access, clean install, realistic data (long Arabic names, a 4000x3000 photo), and a wipe of app data halfway through to simulate a new phone.
Three things came out of it that I think are generic enough to be useful.
1. A lock screen swapped into home does not lock anything that is pushed
We had roughly this:
home: (pinEnabled && isLocked) ? const LockScreen() : const HomeScreen(),
On resume we set isLocked = true. That rebuilds home, but any route pushed on top of it (compose, admin) is still on top. So: open the compose screen, background the app, come back, and you are looking at compose with no PIN prompt. The lock screen is sitting under it.
What we do now is draw the lock in MaterialApp.builder, above the Navigator, and take the real app offstage:
builder: (context, child) => Stack(
fit: StackFit.expand,
children: [
Offstage(
offstage: locked,
child: ExcludeFocus(excluding: locked, child: child!),
),
if (locked)
HeroControllerScope.none(
child: Navigator(
onGenerateRoute: (_) =>
MaterialPageRoute(builder: (_) => const LockScreen()),
),
),
],
),
Notes on that:
The lock needs its own Navigator so its text field has an Overlay.
Without HeroControllerScope.none you get "A HeroController can not be shared by multiple Navigators" in debug.
Offstage keeps the route stack alive, so a half-written message survives the lock. ExcludeFocus stops the hidden field from keeping the keyboard.
Trade-off: we lock on paused, so opening the system photo picker also locks. The pending pick still resolves after unlock because the widget tree was never torn down. Some people would rather use a grace period; we have not added one.
2. Sequential awaits in one try block turn one denied write into a silent total failure
Creating an organization did this:
try {
await saveCompany(c);
await saveUser(admin);
await saveInvite(invite);
for (final r in roles) await saveRole(r);
status = 'online';
} catch (_) {
status = 'offline';
}
Our security rules denied the first write (company document). Everything after it never ran. Locally the app was fine because all of it was in local storage, and a separate listener flipped the status badge back to "online" a moment later. The admin's invite code simply did not exist server-side, so on any other device it was "invalid code".
The manual "resync" button had the same shape and the same first write, so it failed every time with a message telling the user to check their internet.
Fix was boring: run each write independently, collect a boolean, report honestly.
Future<bool> _writeAll(List<Future<void> Function()> ops) async {
var allOk = true;
for (final op in ops) {
try { await op(); } catch (_) { allOk = false; }
}
return allOk;
}
A batch would be the alternative, and for strict consistency it is the better tool. We chose independent writes here because partial success is strictly more useful to the user than none: with only the invite and the admin record uploaded, the account is at least reachable from another device.
The real lesson was about verification. "It synced" was being judged from the device that created the data. That device can never tell you.
3. One-device binding with a single admin is a lockout waiting to happen
Accounts bind to a device ID on first sign-in. Admins can reset an employee's binding. Nothing could reset the admin's. New phone or reinstall, and the organization is unreachable.
We added a recovery key generated at setup: 12 characters from an alphabet without O/0/I/1, shown once, only a SHA-256 of the normalised key stored on the user record. Sign-in code plus recovery key rebinds the admin to the new device.
Trade-offs I am not fully happy with:
The hash is unsalted beyond a static prefix. With about 60 bits of entropy in the key that is acceptable for now, but a per-user salt and a slow hash would be better.
Verification happens client-side against a hash the client can read. The proper version checks it in a Cloud Function and never exposes the hash.
While fixing this we found the device binding was not even being uploaded at first sign-in on a fresh device. Our write helper returned early when there was no "current organization" yet, and login called it one line before setting that. It only worked because a later push-token save happened to carry the field along.
Smaller findings that only showed up with real data
Structured message fields came back from Firestore in a different key order than we wrote them, so "old price" rendered above "product name". We now render in the template's declared order instead of map order.
No flutter_localizations, so the Material date and time pickers were English inside an RTL Arabic UI.
image.decodeImage on a 12MP photo on the UI thread froze the app for seconds. Moved to compute.
The feed showed every message to every employee. Recipient roles were only used for display.
What we changed in process
A release now needs one full pass on a clean install with realistic data, including a second "device" for anything that claims to sync. It costs about an hour and found more than our test suite did, which says as much about our test suite as about the method.
Happy to go into any of these, especially if someone has a cleaner pattern for the lock overlay.
r/FlutterDev • u/DohamaSystems • Oct 26 '26
wanted people to be able to try my flutter app without signing up. First idea was one shared demo account but then everyone sees everyone elses chats, not great lol
turns out supabase has anonymous sign in. You turn it on in the auth settings and then it's literally just
await Supabase.instance.client.auth.signInAnonymously();
every visitor gets their own real user with its own id. So all my existing rls policies just work, every guest only sees their own stuff. Didn't have to change anything in the db
one thing good to know: anon users get the normal authenticated role. So if you have stuff that only real accounts should do, you gotta check the is_anonymous claim in the jwt, otherwise guests can do it too
also put a daily limit per user on the AI calls since guests cost me money and theres no email behind them
I'm keeping the guest accounts for now, kinda nice to see how many ppl actually tried it. Does anyone convert them to real accounts later (linking an email to the anon user) or do you just let people start fresh when they sign up?
r/FlutterDev • u/GMP10152015 • Oct 27 '26
r/FlutterDev • u/eibaan • Oct 26 '26
I wrote an article (without AI) about how to create a PDF document in Dart. Mainly because I wanted to share the fact that this isn't as hart as you might think โย at least if you don't want to display text.
This is part 1 of 2. Part 2 is about using the Courier font. Supporting all TrueType fonts might be more practical, but parsing TTF files to acces the glyph measurements takes more code than everything I wrote so far and then you want to rewrite the TTF to support subsetting.
r/FlutterDev • u/SG-Studios-online • Oct 26 '26
Hey Flutter developers! ๐
Have you ever needed to investigate a bug on a physical device without connecting a debugger or asking someone to reproduce it on your development machine?
Thatโs one of the problems I wanted to solve with debug_bubble โ a lightweight Flutter package that adds a draggable floating debug bubble and an in-app dashboard for inspecting logs and errors.
๐ pub.dev: https://pub.dev/packages/debug_bubble
๐ ๏ธ What can it do?
trace to critical.Initialize the logger:
void main() {
WidgetsFlutterBinding.ensureInitialized();
DebugLog.init(
const DebugBubbleConfig(
captureUncaughtErrors: true,
),
);
runApp(const MyApp());
}Wrap your app using the MaterialApp builder:
MaterialApp(
builder: (context, child) => DebugBubble(
child: child ?? const SizedBox.shrink(),
),
home: const HomeScreen(),
);Log events wherever you need them:
DebugLog.info(
'User opened settings',
tag: 'Navigation',
);
DebugLog.success(
'Profile synced',
tag: 'Sync',
json: responseData,
);
DebugLog.error(
'Request failed',
tag: 'Network',
error: error,
stackTrace: stackTrace,
);I wanted to keep the package lightweight, avoid extra runtime dependencies, provide bounded log storage, and make diagnostics accessible without leaving the running app.
The package is designed to be inert in Flutter release mode, so the debugging overlay and logging pipeline don't run as they do in debug builds.
I'm especially interested in feedback on:
This is an actively developed project, and constructive criticism is very welcome.
Thanks for checking it out! ๐
r/FlutterDev • u/Infamous-404 • Oct 26 '26
Switching to other languages in order to write backend applications because there's a clear lack availability of the tools around that in dart ecosystem.
One such problem I kept hitting: there is no standard package like (swag for go) to generate OpenAPI specs and Swagger UI for Dart backends. Thinking about solving this problem I started working on Axle(v0.3 out now).
The core idea is small. Almost everything lives in one package, axle_core: the annotations, the OpenAPI 3.1 document model, and a tiny serving contract called AxleDocs. No framework imports, no runtime dependencies. A CLI reads your annotated Dart source with package:analyzer and emits the spec, so no build_runner and no runtime registry. Then thin adapters translate AxleDocs into framework responses. I published adapters for Serverpod 4, Shelf, and Relic, but they are intentionally boring on purpose, anyone can write one for another framework without touching core or the CLI.
It gives you openapi.json, openapi.yaml, Swagger UI assets, and an AOT-safe const string. It handles security schemes, response headers, cookies, multiple media types, multipart uploads, parameter constraints, and oneOf schemas. If a route references a security scheme that doesn't exist, generation fails instead of emitting a broken contract.
Docs are at https://axle.infms.dev if you want the full picture. There is also an agent skill that walks through setup end to end:
npx skills add infm5/axle --skill axle-openapi-setupIf you've felt the same backend-in-Dart pain, I'd genuinely like to hear what would make this useful to you. Advice, criticism, all welcome.
r/FlutterDev • u/plovdiev • Oct 26 '26
I want to implement this dialog prompt but it is very bad UX as it freezes the app (at least when I test it) for about 5 seconds. I prefer not using it if it does not work in a good way. I am considering having my own dialog + redirect to the App Store. Is this a bad direction? Anyeone here having experinece with this?
r/FlutterDev • u/gnomezgrave • Oct 25 '26
I love Flutter Firebase UI for shipping fast, but if your app doesn't use Material or Cupertino, the auth screens look completely out of place. As a solo dev trying to move fast, writing custom auth flows from scratch is the last thing I want to do.
Lately, Iโve been migrating my apps to Forui to step away from the default look and build something more branded. But the upstream Firebase UI packages were a huge pain point. My auth screens were still stuck looking like Material, even on iOS.
To fix this, I spent the weekend (with the help of Cursor) forking and porting Firebase UI for Flutter over to Forui.
It uses the exact same Firebase UI APIs and behaviors, but the widgets are themed entirely through FTheme instead of the dual Material/Cupertino paths. (Check the attached screenshots taken on iOS and the difference is immediate).
Highlights:
Itโs still early (v0.1.0), but if you're building with Forui or just fighting the Material/Cupertino mismatch, give it a try. Repo: https://github.com/gnomezgrave/forui_FirebaseUI-Flutter
Packages on pub.dev: https://pub.dev/publishers/hexmatter.com/packages
forui_firebase_ui_authforui_firebase_ui_databaseforui_firebase_ui_firestoreforui_firebase_ui_localizationsforui_firebase_ui_oauthforui_firebase_ui_oauth_appleforui_firebase_ui_oauth_facebookforui_firebase_ui_oauth_googleforui_firebase_ui_oauth_twitterforui_firebase_ui_sharedforui_firebase_ui_storageFeedback, issues, and GitHub stars are super appreciated! ๐
r/FlutterDev • u/STForge • Oct 25 '26
I shipped an Orthodox Christian fasting app in Flutter. Its whole job is to say what someone may eat on a given day, so a wrong answer is worse than a crash. A few things that worked:
Happy to go deeper on any of these. App, for context: https://stforge.dev/nisteia
r/FlutterDev • u/ba6ul • Oct 25 '26
I've been building Vishram, a movie and TV discovery app, solo in Flutter. The old home screen was a dead grid nobody interacted with, so I replaced it with a swipe stack on trending titles, with toggles for local vs world trending and movie vs TV.
A few things from the rebuild:
- When friends tested it, it only worked on my phone
- The bento grid uses cutout art so characters pop out of their tiles, which makes layout bounds and visual bounds different per tile
- Watched, Watching and Watchlist now sync to the cloud
The auth layer (multi-role, Supabase based) is free and open source if it saves anyone time:
GitHub: https://github.com/ba6ul/multi-role-flutter-auth
pub.dev: https://pub.dev/packages/multi_role_auth
Full devlog if you want the whole build: https://youtu.be/wXsyyEh9ook
Happy to answer questions about the swipe stack or the auth setup.
r/FlutterDev • u/_fz3hra • Oct 25 '26
For the past few months Iโve been building a Rummy card game in my spare time. Itโs nearly ready, and Iโd love some outside eyes on it before launch.
What it does:
- Play against a computer opponent anytime, or online with friends and family
- Built with Flutter, so one codebase for Android and iOS
What Iโd love feedback on:
- What would make you keep coming back to a card game?
- Any features youโd expect that most Rummy apps get wrong?
Iโve set up a waitlist for early testers if anyone wants to try it: https://flutter-rummy.web.app/
r/FlutterDev • u/graphlinkdev • Oct 25 '26
r/FlutterDev • u/vvgur • Oct 24 '26
is there any library or method you would recommend?
r/FlutterDev • u/tuco_ye • Oct 24 '26
Since my last post, Flutterverse now tracks 10k+ projects: pub.devโs top 5,000 packages plus public Flutter/Dart GitHub repos with 50+ stars. Stats refresh daily.
Discover rising packages by momentum, not just popularity.
The searchable Hall of Fame now features 34 developers and 29 projects.
Website: https://flutterverse.org
Github: https://github.com/YeLwinOo-Steve/flutterverse
Missing a package or know someone who deserves a spot? Hit Propose on the site!
r/FlutterDev • u/birjuvachhani • Oct 24 '26
This is Dartpad Web!
Runs #Dart compiler, analyzer, LSP and compiles and runs your code in your browser directly. No server needed! Works offline too!
You can use any pure Dart package from pub.dev too that compiles to web.
r/FlutterDev • u/WillingEgg2557 • Oct 25 '26
Any Efforts to make Flutter Agentic friendly ?, by google in recent times.
With agentic apps taking off, how are you approaching on-device LLMs across platforms (iOS, Android, desktop)?
Are you using things like llama.cpp via FFI, plugins like flutter_gemma, or running everything server-side? What are your biggest hurdles with performance and memory?
r/FlutterDev • u/pavanpodila • Oct 24 '26
Hey guys, we've been building Flutter-native solutions for Pharma, Manufacturing and regulated industries for the past one and a half years. And in the process we have developed a controlled Document Editor entirely native in Flutter that can be used to build rich text editors from a single line all the way to a complex word processor (with support for 85% of the features in Docx OOXML standard). You can import and export docx files, including PDFs and markdowns.
This has been a long journey for the past 8 months or so, not your typical weekend-vibe-coded document editor. It has been tested across a wide range of scenarios, especially around performance, features, and editing with a combination of different blocks and elements and properties and so on. We are finally in the state where we're releasing it for public beta usage.
I have been building software for the past 25 years, including a wide range of designers, toolkits, framework including a tiny framework called MobX. And a lot of that experience has been poured into building this document editor, especially focused on high performance editing.
Feel free to test it out, try out the examples, and if you're interested, let's talk about integrating it into your own apps.
r/FlutterDev • u/Danity__172 • Oct 24 '26
t's called Draft. You drag Flutter widgets onto a canvas to put a screen together, tap through it in a preview that behaves like a real app, and copy the code when you're happy with it.
Right now it has 47 widgets, 36 ready-made sections, 16 starter templates and 8 style packs. You can see a screen at phone, tablet and desktop sizes, and the code comes out as Flutter, or as React with Tailwind. It can also write a description of your screen that you can hand to an AI.
It does not write your app's logic. It's for the screens: the part where you're moving things around and trying things out.
It's a beta, so expect rough edges. Windows only for now, and a few things will break. That's the reason I'm posting: I want to hear what's confusing, what's missing and what annoys you, and I read everything.
The editor is free. Download: https://draftapp.dev/en
Come say hi on Discord: https://discord.gg/hYnaxBMS2
r/FlutterDev • u/tuco_ye • Oct 23 '26
pretty_animated_text v3.3.0 is out! ๐
Packed with performance improvements for smoother text animations
- letters that are done animating now stay done
- the controller no longer collects listeners like Pokรฉmon
- 10-18x faster
Pub.dev: https://pub.dev/packages/pretty_animated_text
Github: https://github.com/YeLwinOo-Steve/pretty_animated_text
Full performance report here: https://github.com/YeLwinOo-Steve/pretty_animated_text/tree/master/doc/perf
Feel free to give it a try, and drop a โญ if you like it!
r/FlutterDev • u/Hopeful_Impact_2343 • Oct 23 '26
I've been building a tinnitus-relief app in Flutter. The user matches the pitch of their ringing, and every sound is then built on the device with a notch filter at that pitch: noise colours synthesised in Dart, plus 30 real recordings (rain, fan, ocean...) that are decoded, notched in an isolate and layered, one just_audio player per layer. A few things that cost me time and might save you some:
- Render in an isolate, cache by a quantised key. Each loop is built with `compute` from a params object whose `key` rounds every value (pitch, notch width, colour, level), so near-identical settings hit the same file. The WAVs live in the temp dir, pruned to the newest 32.
- Play files, not streams. A custom `StreamAudioSource` goes through just_audio's localhost proxy, and Android blocks that as cleartext HTTP. Writing a WAV and playing the file avoids the whole thing.
- Never await `play()`. just_audio's `play()` future completes when playback stops, not when it starts. Awaiting it froze one of my screens. Start it with `unawaited(...)` and carry on.
- Don't take audio focus. Masking has to sit under YouTube, podcasts and calls. With audio_session set to never request focus and never pause on interruptions, it does. Route changes (headphones unplugged) still need handling.
- "Is it playing?" is not "is the user listening?". Last week I added a button that plays the user's matched tone for a few seconds through the same engine. My listening-time counter checked `player.playing`, so it counted the preview as listening. A flag for "this is a UI sound" fixed it. I only caught it by watching a progress bar move on the emulator while everything was paused.
- Test DSP with Goertzel. The tests synthesise a loop and compare the energy at the notch frequency against its neighbours with a Goertzel filter, averaged over a few bins because noise is noisy. A notch you can't hear is still a notch you can assert on.
- One pure function decides what's locked. Paid features are stripped in a single function that turns UI state into synth params, and it's unit-tested, so a stale toggle can never reach the audio.
- Set `preferred-supported-locales`. When the phone's language isn't one you ship, Flutter falls back to the first supported locale, and gen-l10n lists them alphabetically. Mine has Arabic, so a Dutch user opened the app in Arabic. One line in l10n.yaml puts English first; a widget test now pins the fallback for a handful of languages.
- Fixed headroom. Everything is normalised to a 0.6 peak. People listen for hours on headphones; loud is not a feature.
Happy to go deeper on any of it, the DSP side especially. If anyone wants to see it running, the app is Sylence on Play, and I can drop the link in a comment.