tane/apps/app_seeds/pubspec.yaml
vjrj 4e8b8293e0 feat(block1): bundled species catalog + autocomplete link
Add a small curated catalog of Iberian horticultural species and let a variety
be linked to it from the edit sheet.

- assets/catalog/species.json: 14 species with botanical family and ES/EN
  common names (wikidata_qid/gbif_key deferred to the varilla enrichment).
- SpeciesRepository: idempotent seedBundled (is_bundled rows, keyed by
  scientific name) + search by scientific/common name with a locale-best label.
  Seeded on startup from DI.
- VarietyRepository.linkSpecies: sets species_id and prefills category from the
  species' family when empty (never overwrites an existing category).
  VarietyDetail now carries the scientific name.
- Edit sheet gains a live species-search field; the detail view shows the
  scientific name (italic). i18n strings added (ES/EN).

Tests: catalog parse, idempotent seeding, search by scientific/common name,
linkSpecies prefill semantics, and a widget test for the autocomplete → link →
scientific-name-shown flow. Full suite: 32 passing, 0 skipped.
2026-07-07 21:21:59 +02:00

67 lines
1.4 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).
assets:
- assets/catalog/species.json