flutterandroid-studiodartdart-packages

Flutter: Dart analysis doesn't work after using package in dev_dependencies


Normally, dart analysis will notice every time something is not correctly like missing const. enter image description here

But, dart analysis doesn't work after I use the flutter_native_splash or the flutter_native_splash package used in dev_dependencies. It shows only that thing. enter image description here

I notice that after cloning a project. Before using these packages in the dev_dependencies, I saw many notices from dart analysis.

What going on? How to use these packages with dart analysis?


Solution

  • Place the flutter_lints: ^... in dev_dependencies: