How avatgit/inventory-lite works
This is a Flutter inventory app. The tree indicates a workflow for viewing a catalog, editing products, scanning barcodes, and recording stock movements, backed by repository implementations and providers. The README is only Flutter starter text, and the available source excerpts cover platform runners rather than Dart runtime code; therefore, relationships among inventory components are shown as unverified, and their exact call flow cannot be confirmed.
Main entry points: catalog_providers.dart Catalog providers · catalog_screen.dart Product catalog · product_repository.dart Product repository contract · category_repository.dart Category repository contract
Components 19
Inventory UI
- Flutter app entry
lib/main.dart - Main navigation
lib/presentation/screens/main_shell.dart - Home screen
lib/presentation/screens/home_screen.dart - Product catalog
lib/presentation/screens/catalog_screen.dart - Product editor
lib/presentation/screens/add_edit_product_screen.dart - Stock movement entry
lib/presentation/screens/add_movement_screen.dart - Barcode scanner
lib/presentation/screens/barcode_scanner_screen.dart - Product card
lib/presentation/widgets/product_card.dart
App State
- Catalog providers
lib/providers/catalog_providers.dart
Inventory Data
- Product model
lib/data/models/product.dart - Category model
lib/data/models/category.dart - Stock movement model
lib/data/models/stock_movement.dart
Data Sources
- Product repository contract
lib/data/repositories/product_repository.dart - Category repository contract
lib/data/repositories/category_repository.dart - Movement repository contract
lib/data/repositories/stock_movement_repository.dart - Firestore repositories
lib/data/repositories - Mock repositories
lib/data/repositories - Mock inventory data
lib/data/mock/mock_data.dart
Other components
- Inventory user
Connections 23
- Inventory user → Flutter app entry: opens
- Flutter app entry → Main navigation: starts
- Main navigation → Home screen: navigates
- Main navigation → Product catalog: navigates
- Product catalog → Product editor: edits products
- Product catalog → Product card: renders
- Product catalog → Barcode scanner: scans barcodes
- Home screen → Stock movement entry: records stock
- Product catalog → Catalog providers: uses state
- Product editor → Catalog providers: uses state
- Stock movement entry → Catalog providers: uses state
- Catalog providers → Product repository contract: uses products
- Catalog providers → Category repository contract: uses categories
- Catalog providers → Movement repository contract: uses movements
- Product repository contract → Firestore repositories: implemented by
- Category repository contract → Firestore repositories: implemented by
- Movement repository contract → Firestore repositories: implemented by
- Product repository contract → Mock repositories: implemented by
- Category repository contract → Mock repositories: implemented by
- Mock repositories → Mock inventory data: uses sample data
- Product repository contract → Product model: handles
- Category repository contract → Category model: handles
- Movement repository contract → Stock movement model: handles