The file pubspec.lock is essential to check in the example to ensure that we test within the same dependencies versions, otherwise running flutter pub upgrade will upgrade the dependencies to use their latest compatible version and doesn't change the checked pubspec.yaml which have the minimum versions.
For the library packages it should not be checked, for app packages, it's important to check them, see related dart docs.
What we should do first is extract the flutter_quill package files into its directory flutter_quill and not the root of the project, this will also ensure the package doesn't conflict with the docs directory (had to rename it to doc which is for dart generated doc) since it's dart convention but it's separated. Will ensure unrelated files (e.g., flutter_quill_extensions, scripts) will not be uploaded to each version of flutter_quill. Can solve some other minor issues.
The file
pubspec.lock
is essential to check in the example to ensure that we test within the same dependencies versions, otherwise runningflutter pub upgrade
will upgrade the dependencies to use their latest compatible version and doesn't change the checkedpubspec.yaml
which have the minimum versions.For the library packages it should not be checked, for app packages, it's important to check them, see related dart docs.
What we should do first is extract the
flutter_quill
package files into its directoryflutter_quill
and not the root of the project, this will also ensure the package doesn't conflict with thedocs
directory (had to rename it todoc
which is for dart generated doc) since it's dart convention but it's separated. Will ensure unrelated files (e.g.,flutter_quill_extensions
,scripts
) will not be uploaded to each version offlutter_quill
. Can solve some other minor issues.