The app works now; I used package settings in final version of the code:
flta-materials-editions-2.0Flutter Apprentice/15-saving-data-with-sqlite/projects/final
I have the same packages of moor defined in pubspec.yaml:
moor_flutter: ^4.0.0
moor_generator: ^4.4.1
When running: flutter pub run build_runner build --delete-conflicting-outputs
I get this error related to version 4.6.1 (although 4.0.0 is defined in dependencies)
Error when reading ‘/X:/apps/flutter/.pub-cache/hosted/pub.dartlang.org/moor-4.6.1+1/lib/src/runtime/executor/stream_queries.dart’:
This error makes sense since in the folder … moor-4.6.1+1\lib\src
there is only one file: deprecated.dart, containing only a const telling moor was renamed to drift … and no other files at all, there seems to be some package management problem if I am not wrong