0
Of documentation of language we can see that:
Dev dependencies differ from regular dependencies in that dev dependencies of Packages you Depend on are Ignored.
That is, translating, the difference is that you don’t get the dev_dependencies
of packages that you import. That is, the purpose of dev_dependencies
is to be used to put the dependencies you use to develop (eg. unit tests, performance tests), but which are not required for the use of your library.
Generally speaking, if you will import a package into your folder lib
, then he’s a dependency
. Alternatively, if you import it from within other folders test
, example
etc, so it must be a dev-dependency
.
I was putting in dev_dependencies, but no matter where I put my app works good. Examples of what I use: shared_preferences: 0.5.8 flutter_svg: 0.17.3+1 firebase_core: 0.4.5
– GabrielLocalhost