flutter_rust_bridge_codegen generate --no-web --watch
dart run build_runner watch --delete-conflicting-outputs
# Force update i18n
flutter pub run slang
- Edit schema defined in
(lib/services/local/tables.drift)
. - Increase
schemaVersion
. - Dump new schema:
dart run drift_dev schema dump lib/services/local/database.dart drift_schemas
dart run drift_dev schema steps drift_schemas/ ./lib/services/local/schema_versions.dart
You should remove the .package_hash
file. It usually locates in:
./build/rust_lib_annix/build/build_tool/.package_hash
./build/macos/Build/Intermediates.noindex/Pods.build/Debug/rust_lib_annix.build/build_tool/.package_hash