How xcaim04/tusolution works
Tu Solution is an offline Android repair-shop management app. A user works through the Flutter shell into dashboard, order, inventory, or history screens; the presentation layer exposes state through Riverpod ViewModels and providers, while domain contracts and data code implement operations backed by on-device SQLite. The README documents order assignment, status changes, work and parts, derived totals, inventory, and history as core capabilities. Edges below reflect that documented architecture; the sampled source excerpts do not include the Dart runtime, so specific call paths are not independently verified.
Main entry points: screens Screen views · repository_impl.dart Repository implementation · app.dart App shell · database.dart SQLite database
Components 19
Presentation
- App entry
lib/main.dart - App shell
lib/app.dart - Providers
lib/presentation/providers.dart - Screen views
lib/presentation/screens - Dashboard state
lib/presentation/viewmodels/dashboard_viewmodel.dart - Order state
lib/presentation/viewmodels/orders_viewmodel.dart - New order state
lib/presentation/viewmodels/new_order_viewmodel.dart - History state
lib/presentation/viewmodels/history_viewmodel.dart - Inventory state
lib/presentation/viewmodels/inventory_viewmodel.dart
Domain
- Repository contract
lib/domain/repository.dart - Order rules
lib/domain/order_status.dart - Domain models
lib/domain/models.dart
Data
- Repository implementation
lib/data/repository_impl.dart - Drift queries
lib/data/dao.dart - SQLite database
lib/data/database.dart - Database tables
lib/data/tables.dart - Demo data seed
lib/data/seed.dart
Platform
- Flutter host
android/app/src/main/kotlin/com/tusolution/tu_solution/MainActivity.kt
Other components
- Workshop user
Connections 18
- Workshop user → App shell: uses
README.md - Flutter host → App entry: hosts
- App entry → App shell: starts
README.md - App shell → Screen views: navigates
README.md - Screen views → Dashboard state: presents state
README.md - Screen views → Order state: presents state
README.md - Screen views → New order state: presents state
README.md - Screen views → History state: presents state
README.md - Screen views → Inventory state: presents state
README.md - Providers → Repository implementation: provides repository
README.md - Providers → Demo data seed: runs seed
README.md - Repository implementation → Repository contract: implements
README.md - Repository implementation → Drift queries: uses queries
README.md - Repository implementation → Order rules: enforces
README.md - Repository implementation → Domain models: uses models
README.md - Drift queries → SQLite database: queries
README.md - SQLite database → Database tables: stores
README.md - Demo data seed → SQLite database: inserts demo data
README.md