Sign in

DCM

@dcm.dev
213 followers 33 following 180 posts

Advanced linter for Flutter and Dart developers dcm.dev. Join our discord discord.gg/Vzjprgk4sb. "its not AI, but it’s better!"

PostsRepliesMedia
DCM @dcm.dev · 16/04/2026
🔥 DCM 1.36.0 includes 11 new rules for Flutter, Common, Equatable, & Mocktail categories. To learn how these rules can prevent potential issues and bugs, read: dcm.dev/blog/2026/03...
000
DCM @dcm.dev · 09/04/2026
#Flutter devs: how many of these have you run into? We’ve rounded up 15 common Flutter & Dart mistakes you’ll definitely recognise: ⚠️ Memory leaks ⚠️ `setState` misuse ⚠️ Async pitfalls ⚠️ Testing gaps & more Find out how to spot and fix them before they break your app: dcm.dev/blog/2025/03...
dcm.dev
15 Common Mistakes in Flutter and Dart Development (and How to Avoid Them) | DCM - Code Quality Tool for Flutter Developers
In this article, I’m sharing 15 common mistakes Flutter developers often make—along with why they happen, what to watch out for, and how to fix them using proven patterns and DCM rules and features.
020
DCM @dcm.dev · 02/04/2026
🤔 Most teams can tell when a Flutter method feels too complex. The problem is that “too complex” is subjective. Read "Cyclomatic Complexity, #Flutter Guide" & learn how to shield your code and to refactor it down and protect your team now & later! dcm.dev/blog/2026/04...
dcm.dev
Flutter Cyclomatic Complexity Guide | DCM - Code Quality Tool for Flutter Developers
Learn how to identify, measure, and reduce Cyclomatic Complexity in Flutter apps using DCM—complete with real-world examples and team workflow tips.
030
DCM @dcm.dev · 02/04/2026
✨ Still doing manual null checks in your collection literals? DCM’s prefer-null-aware-spread rule warns when you could use ...? in your #Flutter code instead. 🎥 Watch to learn how to fix it: youtu.be/92X6GXwW-N8
youtu.be
prefer-null-aware-spread (Rules of the Week)
YouTube video by DCM Analyzer
010
DCM @dcm.dev · 01/04/2026
When it comes to #Flutter widget code, there are different expectation compared to plain domain logic. That’s why our guide separates widget metrics from non-widget metrics, so UI, services, and domain logic are measured differently: dcm.dev/docs/guides/...
dcm.dev
Advanced Metrics Configuration | DCM - Code Quality Tool for Flutter Developers
Once you've chosen your first metrics and enabled them with default thresholds, you'll likely need to adapt the configuration to your project's specific needs.
000
DCM @dcm.dev · 01/04/2026
Don’t disable a metric if the default threshold does not really work, instead: ✅ Use entries for stricter new code ✅ Give legacy folders a temporary threshold That way, new code improves without blocking every release because of old code.
100
DCM @dcm.dev · 01/04/2026
Advanced metrics configuration in DCM is where metrics become practical. You’re not limited to one global threshold. You can tune metrics for legacy code, new features, widget-heavy UI, critical paths, and even dashboards-only tracking. In this guide, learn how you can do it 👇
100
DCM @dcm.dev · 31/03/2026
🚀 Quality code tip: Use the variable you already created. It's easy to miss, but the "use-existing-variable" rule dcm.dev/docs/rules/c... catches repeated expressions when a variable already exists. 🪧 Less code 🔁 Less duplication ✅ Fewer inconsistencies
010
DCM @dcm.dev · 30/03/2026
DCM has delivered measurable improvements for Appinio: ⚡ faster, smoother PR reviews 🐛 fewer runtime issues ✅ increased code consistency 👋 easier onboarding 🔄 continuous improvement without blocking development Read more: dcm.dev/customers/ap...
dcm.dev
Appinio Customer Story | DCM - Code Quality Tool for Flutter Developers
DCM has delivered measurable improvements to Appinio’s codebase and workflow, including faster, smoother PR reviews in which developers no longer waste time on manual comments for unused variables, ba...
000
DCM @dcm.dev · 30/03/2026
The DCM baseline keeps the team on top of legacy issues, separate from new code. Real-time IDE feedback enforces consistent structure and patterns, and GitHub Actions automation ensures that no PR is merged without passing DCM checks.
100
DCM @dcm.dev · 30/03/2026
Appinio adopted DCM in both local development and CI/CD. They use: 📐 recommended ruleset 📁 dcm check-unused-files 👩‍💻 dcm check-unused-code ✨ dcm check-parameters ✅ dcm analyze on every PR to ensure quality and consistency.
100
DCM @dcm.dev · 30/03/2026
The issues well-said by Mohammed Alfatla, Senior Flutter Developer at Appinio: “We needed strong linting, something rigid. Manual checks for banned names, unused files, disposing controllers, streams… it’s too much to review every PR manually.”
110
DCM @dcm.dev · 30/03/2026
As Appinio’s mobile team expanded, they faced: ⚠️ inconsistent coding patterns across contributors 💪 manual PR reviews for simple issues 📏 built-in/community lints are not strict or deep enough ⤴️ legacy code with architectural inconsistency
100
DCM @dcm.dev · 30/03/2026
🎉 A case study with Appinio was published! Appinio is a fast-growing global market research platform. Their mobile team delivers production-grade #Flutter apps and uses DCM to maintain high development velocity without compromising long-term maintainability. How? 👇
110
DCM @dcm.dev · 27/03/2026
Is your #Flutter app silently excluding users? In our new blog: ✅ New accessibility features in Flutter 3.32 ✅ Fixing common pitfalls (labels, text scaling, contrast) ✅ Automated testing with meetsGuideline & more ✅ Practical code examples & tools dcm.dev/blog/2025/06...
dcm.dev
Practical Accessibility in Flutter (and Code You’ll Actually Use) | DCM - Code Quality Tool for Flutter Developers
Flutter makes it possible to build beautiful apps and with a bit of effort, beautiful, accessible apps. The great thing is that many accessibility improvements are small tweaks that have big impact.
030
DCM @dcm.dev · 26/03/2026
A small #Flutter lint that can prevent confusing layout issues: avoid-flexible-outside-flex. This rule warns when Flexible is used outside a Flex widget, such as Row, Column, or Flex, helping keep widget tree layouts working correctly. Read more: dcm.dev/docs/rules/f...
030
DCM @dcm.dev · 25/03/2026
Riverpod is one of the most used packages for #Flutter, and yet you might have missing points, including: ⚠️ ref .read inside build 🔄 ref .watch outside build ⏳ async gap + stale ref 🧹 missing onDispose cleanup Read more: dcm.dev/blog/2026/03...
dcm.dev
Riverpod Best Practices You're Probably Missing | DCM - Code Quality Tool for Flutter Developers
Learn how the Riverpod package works by reading its source code. Understand the architecture behind Flutter reactive state management and discover why certain patterns prevent bugs, memory leaks, and ...
030
DCM @dcm.dev · 20/03/2026
Many teams want better code quality but struggle to know where to start. Techniques such as: 1⃣ preview all metrics first ✅ start with metrics-recommended ✏️ override thresholds for your project 👩‍💻 choose metrics based on your actual pain points Read more: dcm.dev/docs/guides/...
010
DCM @dcm.dev · 19/03/2026
Complex conditions can impact readability in your #Flutter code. ❌ Instead of: (a && b) || (!a && c) ✅ Prefer: a ? b : c DCM’s "prefer-simpler-boolean-expressions" rule flags redundant #Dart boolean patterns and suggests more readable alternatives. Read more: dcm.dev/docs/rules/c...
010
DCM @dcm.dev · 18/03/2026
Arrange, Act, Assert is the gold standard for unit testing 🧪 Why? It ensures tests are not doing "multiple rounds of arrange and act." DCM 1.32 introduced `prefer-test-structure` to warn when a test is not separated into these three sections. Read more: dcm.dev/docs/rules/c...
000
Reposted by DCM
DCM @dcm.dev · 13/03/2026
Async mistakes can quietly slow down or break your #Flutter app. This post breaks down common pitfalls and how to fix them: 🔄 Misused `FutureOr` ⚠️ Unawaited futures in `initState()` 🔁 Redundant `async/await` 🚦 Inefficient parallel calls 🧵 Confusing `.then()` chains dcm.dev/blog/2025/05...
dcm.dev
The Hidden Cost of Async Misuse in Flutter (And How to Fix It) | DCM - Code Quality Tool for Flutter Developers
Uncover hidden Flutter performance issues & memory leaks! Learn to spot & fix common async/await misuses like unawaited Futures.
061
DCM @dcm.dev · 16/03/2026
In fact, Nicholas, Team Lead at Zühlke, puts it nicely on how DCM is playing a role: “Integrate DCM from the start, before writing a single line of code. It saves enormous effort later.” Read the full case study: dcm.dev/customers/zu...
dcm.dev
Zuehlke Customer Story | DCM - Code Quality Tool for Flutter Developers
With DCM, Zühlke engineers spend less cognitive effort on repeat comments, PR reviews move faster, and the team has fewer runtime issues thanks to strict structural and leak-prevention rules.
001
DCM @dcm.dev · 16/03/2026
One feature stands out: memory leak detection, as Djordje, Lead Software Architect and People Lead at Zühlke says: "Memory leak detection helps a lot. I might not notice every time, DCM warns me immediately." That proved especially valuable in complex reactive flows.
101
DCM @dcm.dev · 16/03/2026
With DCM, the Zühlke engineering team enforces: 📐 Architectural import rules 💀 Unused code checks ✅ Translation checks 🚪 CI quality gates ⏱️ Custom rules like clock .now() 🚀 Maintainability metrics like complexity & nesting depth And that's not all!
101
DCM @dcm.dev · 16/03/2026
Zühlke engineering team adopted DCM for its speed, depth, and architectural features with a baseline-first approach. The baseline helped them introduce strict rules without breaking the existing codebase, & to gradually review the rules together during weekly team meetings.
101
DCM @dcm.dev · 16/03/2026
Zühlke scaled complex Flutter projects to 14 developers! 💻 When designing a multi-layered structure that includes domain, application, infrastructure, & UI, it becomes difficult to maintain consistency. Without guardrails, PR reviews became repetitive & the architecture broke.
221
DCM @dcm.dev · 16/03/2026
🎉 A case study with Zühlke was published! They use DCM to keep complex, mission-critical #Flutter apps maintainable across healthcare, industrial engineering, and enterprise projects. 💯 Result: faster PRs, fewer regressions, and better visibility into technical debt. How?👇
130
Reposted by DCM
DCM @dcm.dev · 13/03/2026
#Flutter BLoC is everywhere, but hidden bugs are easy to miss: 💥 isClosed after await 🔁 same-state emits 🧠 create vs .value 🚫 public methods bypass events 🔒 sealed/immutable classes By reading BLoC source code, we see how to happen & prevent them: dcm.dev/blog/2026/03...
dcm.dev
Flutter BLoC Best Practices You're Probably Missing | DCM - Code Quality Tool for Flutter Developers
Learn how the BLoC pattern works by reading its source code. Understand the architecture behind Flutter state management and discover why certain patterns prevent crashes and memory leaks.
151
DCM @dcm.dev · 13/03/2026
#Flutter BLoC is everywhere, but hidden bugs are easy to miss: 💥 isClosed after await 🔁 same-state emits 🧠 create vs .value 🚫 public methods bypass events 🔒 sealed/immutable classes By reading BLoC source code, we see how to happen & prevent them: dcm.dev/blog/2026/03...
dcm.dev
Flutter BLoC Best Practices You're Probably Missing | DCM - Code Quality Tool for Flutter Developers
Learn how the BLoC pattern works by reading its source code. Understand the architecture behind Flutter state management and discover why certain patterns prevent crashes and memory leaks.
151
DCM @dcm.dev · 13/03/2026
Async mistakes can quietly slow down or break your #Flutter app. This post breaks down common pitfalls and how to fix them: 🔄 Misused `FutureOr` ⚠️ Unawaited futures in `initState()` 🔁 Redundant `async/await` 🚦 Inefficient parallel calls 🧵 Confusing `.then()` chains dcm.dev/blog/2025/05...
dcm.dev
The Hidden Cost of Async Misuse in Flutter (And How to Fix It) | DCM - Code Quality Tool for Flutter Developers
Uncover hidden Flutter performance issues & memory leaks! Learn to spot & fix common async/await misuses like unawaited Futures.
061
DCM @dcm.dev · 12/03/2026
As Roman said: "We've been using DCM since day zero... we genuinely can't imagine working without it. Any serious project should adopt it.” Read the entire case study: dcm.dev/customers/ca...
dcm.dev
CarOnSale Customer Story | DCM - Code Quality Tool for Flutter Developers
While it’s difficult to quantify the exact number of bugs prevented, CarOnSale’s teams have observed tangible benefits, ultimately increasing developer confidence in code quality across projects.
000
DCM @dcm.dev · 12/03/2026
The impact was clear as manual code reviews alone simply weren't enough and standard linters lacked the depth needed for their real-world apps. 🔥 By integrating DCM analysis directly into their workflow, they stopped wasting time hunting for structural mistakes.
100
DCM @dcm.dev · 12/03/2026
Using DCM since "day zero", they enabled: ✍️ Unified quality baselines for all Dart & Flutter codebases 📉 DCM rules & advanced metrics dashboards 💯 Automated early detection of code regressions
110
DCM @dcm.dev · 12/03/2026
Imagine the need to catch subtle anti-patterns, prevent regressions, and automate best practices without increasing developer overhead while ensuring high-quality code across an expanding engineering team! That is hard task to do!
100
DCM @dcm.dev · 12/03/2026
🎉 We just published a case study with CarOnSale, Europe's fast-growing B2B automotive platform. They secure their Flutter mobile apps and internal libraries with DCM. 💯 The results? Smoother code reviews, automated consistency, & increased developer confidence across teams👇
210
DCM @dcm.dev · 10/03/2026
Is your #Flutter widget tree full of Padding, Align, ClipRect and Transform widgets? In this video, we show how you can simplify those trees using a single Container widget and how the "prefer-container" rule helps you reduce unnecessary nesting: youtu.be/MdrU_8orso8
youtu.be
prefer-container (Rules of the Week)
YouTube video by DCM Analyzer
000
DCM @dcm.dev · 09/03/2026
If you are using Zed and would like to have your code checked with DCM, check out the getting started docs for the Zed extension: dcm.dev/docs/ide-int...
dcm.dev
Zed Extension | DCM - Code Quality Tool for Flutter Developers
Community-driven: This Zed integration is maintained by the community (third-party repository) and is not officially maintained or supported by the DCM team. Functionality and stability may evolve ind...
000
DCM @dcm.dev · 06/03/2026
DCM improved BoursoBank's Flutter runtime safety, catching errors early before production. Applied to 60+ packages, DCM gave developers confidence that sensitive payment and authentication flows are protected. Read the entire case study: dcm.dev/customers/bo...
dcm.dev
BoursoBank Customer Story | DCM - Code Quality Tool for Flutter Developers
With DCM in place, BoursoBank significantly improved the runtime safety and consistency of their Flutter codebase. Errors that previously slipped through to production are now caught early, even when ...
010
DCM @dcm.dev · 06/03/2026
Using DCM, they enabled: 🔸 Pre-commit hooks & strict CI checks 🔸 ~20 targeted, safety-first linting rules enabled 🔸 Automated elimination of unsafe APIs & provider lookup errors 🔸 Sonar-compatible reporting for internal governance 👇
100
DCM @dcm.dev · 06/03/2026
Scaling a 60+ package monorepo with developers transitioning from web to Dart while maintaining strict banking compliance wasn’t easy! Imagine needs for strict CI checks, auto-detection, and automation to eliminate unsafe APIs with Sonar-compatible reporting! 👇
110
DCM @dcm.dev · 06/03/2026
We just published a case study with BoursoBank, France’s largest online bank! They secure mission-critical #Flutter mobile & web apps with DCM. 💯 The results? maintainable architecture, & zero crashes in payment & authentication flows for 70+ engineers Here's how they do it 👇
110
DCM @dcm.dev · 06/03/2026
Ever discovered a Flutter widget and thought, “Why didn’t I see this sooner?” 🤔 We’ve uncovered 10 under-the-radar widgets that even seasoned devs almost never use! 👇 dcm.dev/blog/2025/01... What widget surprised you the most?
dcm.dev
10 Flutter Widgets Probably Haven’t Heard Of (But Should Be Using!) | DCM - Code Quality Tool for Flutter Developers
In this article, I want to share some of those hidden gems I’ve discovered lesser-known widgets and functionalities that can simplify your development process and add a unique touch to your apps. More...
051
DCM @dcm.dev · 04/03/2026
Are silent bugs hiding in your #Flutter Provider code? You might be missing: 💥 .value trap 🚫 .dispose gap 👀 .read vs .watch ✋ .selector logic We explored the Provider's source code to uncover common architecture mistakes: dcm.dev/blog/2026/03...
dcm.dev
Flutter Provider Best Practices You're Probably Missing | DCM - Code Quality Tool for Flutter Developers
Learn how the Provider package works by reading its source code. Understand the architecture behind Flutter dependency injection and discover why certain patterns prevent bugs and memory leaks.
000
DCM @dcm.dev · 03/03/2026
Once you have multiple #Flutter projects, it's often required to manage different DCM versions. Our new guide covers: 🔄 Fast version switching 💻 Helper scripts (Zsh, Bash, Fish, PS) 💙 FVM support 🤝 Team consistency with dcm_global.yaml Read here: dcm.dev/docs/guides/...
010
DCM @dcm.dev · 24/02/2026
🤷‍♂️ Assigning values that never get used? Enable the "avoid-unused-assignment" rule that warns when an assignment is not used in the following statements. 🎥 Watch to learn more: youtu.be/HajF6gXkAik
youtu.be
avoid-unused-assignment (Rules of the Week)
YouTube video by DCM Analyzer
000
DCM @dcm.dev · 24/02/2026
We recently published a case study with Betterment where the team adopted DCM into their workflow, which helped them to: - Cut feedback cycles from minutes to seconds - Focus on architecture review rather than styling - Ship faster & safer Full story: dcm.dev/customers/be...
000
DCM @dcm.dev · 19/11/2025
🧠 Ever found a #Dart or #Flutter function that completely changed how you think about coding? We’ve rounded up 10 underrated functions that can simplify code, reduce boilerplate, and teach you something new about the language itself. 📖 dcm.dev/blog/2025/02...
dcm.dev
10 Lesser-Known Dart and Flutter Functionalities You Should Start Using | DCM - Code Quality Tool for Flutter Developers
In this article, I want to share some of those hidden gems I’ve discovered—lesser-known functionalities that can simplify your development process and add a unique touch to your apps. Moreover, we wil...
020
Reposted by DCM
DCM @dcm.dev · 18/11/2025
Dart 3.10's dot shorthands are game changers for #Flutter code: ✅ shorter enums, less boilerplate, and sharper syntax. ⚠️ But beware the hidden complexities! Learn about “Practical Rulebook for Teams” 👇 dcm.dev/blog/2025/11...
dcm.dev
A Deeper Look at Dart's Dot Shorthands (and Their Hidden Complexity For Your Flutter Projects) | DCM - Code Quality Tool for Flutter Developers
Deep dive into Dart 3.10's dot shorthand syntax: learn when to use it, avoid common pitfalls like nested shorthands, and discover best practices with practical examples and DCM lint rules.
173
DCM @dcm.dev · 18/11/2025
🖼️ Wrapping a #Flutter Image widget with an Opacity widget? That’s inefficient. The DCM rule "avoid-incorrect-image-opacity" warns you to use the "opacity" parameter directly instead. 🎥 Watch to learn how to fix it: youtu.be/ooKFXNhm_TU
youtu.be
avoid-incorrect-image-opacity (Rules of the Week)
YouTube video by DCM Analyzer
010
DCM @dcm.dev · 18/11/2025
Dart 3.10's dot shorthands are game changers for #Flutter code: ✅ shorter enums, less boilerplate, and sharper syntax. ⚠️ But beware the hidden complexities! Learn about “Practical Rulebook for Teams” 👇 dcm.dev/blog/2025/11...
dcm.dev
A Deeper Look at Dart's Dot Shorthands (and Their Hidden Complexity For Your Flutter Projects) | DCM - Code Quality Tool for Flutter Developers
Deep dive into Dart 3.10's dot shorthand syntax: learn when to use it, avoid common pitfalls like nested shorthands, and discover best practices with practical examples and DCM lint rules.
173