Tapping an inventory item now opens its detail (the /variety/:id route was a
placeholder). Read + edit one variety end-to-end:
- Detail view: photo, category, "also known as" names, notes and lots, driven
by a reactive VarietyDetailCubit.
- Edit core fields (label/category/notes, LWW) via a bottom sheet.
- Add a lot (harvest year + quantity) — the list refreshes reactively.
- Soft-delete (tombstone) with a confirm dialog.
Repository:
- watchVariety(id): merges Drift table-change streams (variety, lots, names,
attachments) via StreamGroup and reloads the full detail on any change, so a
lot added to a *different* table still refreshes the view.
- updateVariety (LWW), addLot, softDeleteVariety.
i18n: detail/edit/addLot strings (ES/EN); switched slang to {param} braces
interpolation (translator- and Weblate-friendly).
Tests: repository (reactive watchVariety, update, soft-delete) and widget tests
(render, edit updates title, add-lot appears, delete shows not-found). Full
suite green: 23 passing, 1 skipped (SQLCipher-only encryption guard).
65 lines
1.3 KiB
YAML
65 lines
1.3 KiB
YAML
name: tane
|
|
description: "Tanemaki — local-first, encrypted, decentralized traditional-seed inventory."
|
|
publish_to: 'none'
|
|
version: 0.1.0+1
|
|
|
|
environment:
|
|
sdk: ^3.11.5
|
|
|
|
resolution: workspace
|
|
|
|
dependencies:
|
|
flutter:
|
|
sdk: flutter
|
|
flutter_localizations:
|
|
sdk: flutter
|
|
|
|
commons_core:
|
|
path: ../../packages/commons_core
|
|
|
|
# State management (Cubit-first). Drift streams are the source of truth.
|
|
flutter_bloc: ^9.1.1
|
|
equatable: ^2.0.5
|
|
|
|
# Stream combinators (StreamGroup) for reactive multi-table reads.
|
|
async: ^2.11.0
|
|
|
|
# Encrypted local database.
|
|
drift: ^2.28.0
|
|
drift_flutter: ^0.2.4
|
|
sqlite3: ^2.7.5
|
|
sqlcipher_flutter_libs: ^0.6.5
|
|
|
|
# Dependency injection composition root.
|
|
get_it: ^8.0.3
|
|
|
|
# i18n (Weblate-friendly JSON per locale).
|
|
slang: ^4.7.0
|
|
slang_flutter: ^4.7.0
|
|
|
|
# Secure key storage (OS keystore).
|
|
flutter_secure_storage: ^9.2.4
|
|
|
|
# Routing + media + paths.
|
|
go_router: ^14.6.2
|
|
image_picker: ^1.1.2
|
|
path: ^1.9.0
|
|
path_provider: ^2.1.5
|
|
|
|
cupertino_icons: ^1.0.8
|
|
|
|
dev_dependencies:
|
|
flutter_test:
|
|
sdk: flutter
|
|
integration_test:
|
|
sdk: flutter
|
|
|
|
flutter_lints: ^6.0.0
|
|
build_runner: ^2.4.13
|
|
drift_dev: ^2.28.0
|
|
slang_build_runner: ^4.7.0
|
|
mocktail: ^1.0.4
|
|
|
|
flutter:
|
|
uses-material-design: true
|
|
# Seed strings for slang live under lib/i18n (not a Flutter asset; compiled).
|