Add drift_dev in dependencies #3714
-
|
Is it a mistake to put name: my_app
description: Application
version: 1.0.0
publish_to: none
environment:
sdk: ^3.10.1
dependencies:
drift_dev: ^2.29.0 # here or
dev_dependencies:
drift_dev: ^2.29.0 # here
flutter:
uses-material-design: true |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
If you have Technically, |
Beta Was this translation helpful? Give feedback.
If you have
publish_to: none, it doesn't make much a difference whether a package is independenciesordev_dependencies.Technically,
drift_devis only used for development, sodev_dependencieswould be the correct way to put it. But for some migration-validation APIs that are indrift_dev, it's possible that you need to import it intolib/. These typically would only be used on debug builds (so technically during development only), but the linter can't know that and reports a warning anyway. So puttingdrift_devintodependenciesto avoid that issue causes no harm whatsoever.