Why Do We Need Flutter Lints

Fred Grott
7 min readOct 29, 2021

Flutter 2.2 introduced a Flutter packaged called flutter lints that would be automatically included as a project dependency when someone creates a flutter project. Unfortunately, Google gets it wrong in what actual lints should be used during the flutter learning and flutter app development process.

The large swath of those developer trying Flutter for the first time range from those new to programming to those who have some exposure to other computer languages such as ECMAScript(js), ObjC or Swift, Java or Kotlin, etc. In such learning environments, it’s more beneficial if we use a stricter, more inclusive set of lints so that errors are prevented that are due to the developer being new to dart and or flutter.

The need for lints stems from what the compiler does and what it cannot do.

The Dart Compiler And why Lints Are Needed

Compilers compile or translate the computer human reachable language we program into the native machine language that a computer CPU understands. In the Dart language case, the Dart Compiler compiles to native platform code on mobile, convert, Dart to ECMAscript on web targets, and acts as a compiler on desktop targets

So how does Lint fit in? Since humans write the code, the compiler cannot really peak into our brains and read what our…

--

--

Fred Grott
Fred Grott

No responses yet