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

Time:07-10

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?

CodePudding user response:

Place the flutter_lints: ^... in dev_dependencies:

  • Related