How rehyanyadav/gear_stock works
GearStock is a Flutter inventory app for bicycle-parts shops. Shop staff sign in, manage catalog and suppliers, record stock movements or scan barcodes, then review dashboard and report views. The app stores inventory locally and synchronizes it with Supabase. The graph preserves the README’s documented capabilities and uses paths from the repository tree; Dart implementation details were not sampled, so feature-to-feature calls are omitted. Native desktop and plugin-host nodes reflect the sampled platform entry-point code, not the inventory workflow.
Main entry points: app_database.dart Local inventory · products_notifier.dart Products · win32_window.cpp Win32 window · main.cpp Windows entry
Components 28
Inventory workflows
- Authentication
lib/features/auth/data/supabase_auth_repo.dart - Products
lib/features/products/data/products_notifier.dart - Categories
lib/features/categories/data/categories_notifier.dart - Suppliers
lib/features/suppliers/data/suppliers_notifier.dart - Stock movements
lib/features/stock/data/stock_notifier.dart - Barcode scanning
lib/screens/barcode_scanner_screen.dart - Dashboard
lib/features/dashboard/presentation/dashboard_screen.dart - Inventory reports
lib/screens/reports_screen.dart - PDF export
lib/features/reports/data/inventory_pdf_exporter.dart
Data and sync
- Product image sync
lib/features/products/data/product_image_sync_service.dart - Synchronization
lib/features/sync/data/sync_runner.dart - Sync queue
lib/features/sync/data/sync_queue_repository.dart - Local inventory
lib/database/app_database.dart - Supabase
App experience
- Localization
lib/l10n/app_en.arb - Theme settings
lib/theme/theme_mode_provider.dart
Platform hosts
- Windows entry
windows/runner/main.cpp - Flutter window
windows/runner/flutter_window.h - Win32 window
windows/runner/win32_window.cpp - Window interface
windows/runner/win32_window.h - Linux entry
linux/runner/main.cc - Linux application
linux/runner/my_application.h - Linux plugins
linux/flutter/generated_plugin_registrant.cc - Linux plugin API
linux/flutter/generated_plugin_registrant.h - Windows plugins
windows/flutter/generated_plugin_registrant.cc - Windows plugin API
windows/flutter/generated_plugin_registrant.h - macOS plugins
macos/Flutter/GeneratedPluginRegistrant.swift
Other components
- Shop staff
Connections 25
- Shop staff → Authentication: signs in
README.md - Shop staff → Products: manages products
README.md - Shop staff → Categories: manages categories
README.md - Shop staff → Suppliers: manages suppliers
README.md - Shop staff → Stock movements: records movements
README.md - Shop staff → Barcode scanning: scans barcodes
README.md - Shop staff → Dashboard: views dashboard
README.md - Shop staff → Inventory reports: reviews reports
README.md - Inventory reports → PDF export: exports PDF
- Products → Local inventory: stores inventory
README.md - Stock movements → Local inventory: stores inventory
README.md - Suppliers → Local inventory: stores inventory
README.md - Local inventory → Synchronization: synchronizes data
README.md - Synchronization → Supabase: syncs with
README.md - Authentication → Supabase: authenticates with
README.md - Products → Product image sync: manages images
- Shop staff → Localization: uses language
README.md - Shop staff → Theme settings: selects theme
README.md - Windows entry → Flutter window: creates window
windows/runner/main.cpp - Flutter window → Win32 window: extends window
windows/runner/flutter_window.h - Windows entry → Win32 window: creates window
windows/runner/main.cpp - Win32 window → Window interface: implements interface
windows/runner/win32_window.h - Linux entry → Linux application: creates application
linux/runner/main.cc - Linux plugins → Linux plugin API: declares registration
linux/flutter/generated_plugin_registrant.cc - Windows plugins → Windows plugin API: declares registration
windows/flutter/generated_plugin_registrant.cc