docs: add one-liner dependency addition instructions in the documentation (#2831)

Include one-liner dependency addition instructions in the documentation
This commit is contained in:
mori yuta 2024-01-12 18:59:57 +09:00 committed by GitHub
parent f25eaf10f2
commit b214f2c661
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -45,6 +45,12 @@ dev_dependencies:
build_runner: ^{{ versions.build_runner }}
```
Alternatively, you can achieve the same result using the following command:
```
dart pub add drift sqlite3_flutter_libs path_provider path dev:drift_dev dev:build_runner
```
If you're wondering why so many packages are necessary, here's a quick overview over what each package does:
- `drift`: This is the core package defining the APIs you use to access drift databases.