How sudoxwill/second_life works
SecondLife is a Flutter recycling-rewards app. A user scans waste by photo to receive an analysis and estimated points, takes it to a relay point for agent weighing and validation, then spends points on partner vouchers; users can track deposits and vouchers. Agents also manage pending tickets, batch collection, and validation history. The graph preserves these documented capabilities and the app’s supporting auth, place discovery, and shared settings. Dart implementation files were not excerpted, so relationships beyond the README-described workflow are omitted.
Main entry points: submit_waste_info.dart Deposit tickets · analyze_waste_photo.dart Waste analysis · app_shell.dart App shell · login_page.dart Authentication
Components 20
App access
- App shell
lib/shared/presentation/pages/app_shell.dart - Authentication
lib/features/auth/presentation/pages/login_page.dart
User recycling
- Waste photo scan
lib/features/waste_analysis/presentation/pages/waste_scan_page.dart - Waste analysis
lib/features/waste_analysis/domain/usecases/analyze_waste_photo.dart - Deposit tickets
lib/features/waste_analysis/domain/usecases/submit_waste_info.dart - Relay map
lib/features/places/presentation/pages/places_map_page.dart
Relay operations
- Ticket validation
lib/features/ticket_validation/presentation/pages/agent_scanner_page.dart - Deposit weighing
lib/features/ticket_validation/presentation/pages/weighing_page.dart - Batch collection
lib/features/ticket_validation/domain/usecases/mark_batch_collected.dart - Agent history
lib/features/ticket_validation/presentation/pages/agent_history_page.dart
Rewards and history
- Reward catalog
lib/features/rewards/presentation/pages/rewards_catalog_page.dart - Point redemption
lib/features/rewards/domain/usecases/redeem_reward.dart - User history
lib/features/history/presentation/pages/user_history_page.dart
Shared services
- Notifications
lib/shared/data/services/notification_service.dart - App preferences
lib/shared/presentation/providers/locale_provider.dart
Other components
- User
- Relay agent
- Firebase
- AI analysis service
- Map data
Connections 22
- User → App shell: opens
README.md - Relay agent → App shell: opens
README.md - App shell → Authentication: authenticates through
- User → Waste photo scan: photographs waste
README.md - Waste photo scan → Waste analysis: submits photo
- Waste analysis → AI analysis service: analyzes photo
- Waste analysis → Deposit tickets: estimates points
README.md - User → Relay map: finds relay
README.md - Relay map → Map data: shows locations
- Relay agent → Ticket validation: scans QR
README.md - Ticket validation → Deposit weighing: weighs deposit
README.md - Deposit weighing → Deposit tickets: validates or refuses
README.md - Relay agent → Batch collection: records collection
README.md - Relay agent → Agent history: reviews validations
README.md - User → Reward catalog: browses rewards
README.md - Reward catalog → Point redemption: selects reward
- Point redemption → Deposit tickets: exchanges points
README.md - User → User history: tracks deposits and vouchers
README.md - Deposit tickets → Notifications: reports deposit status
- User → App preferences: sets language and theme
README.md - Authentication → Firebase: uses Auth
README.md - Deposit tickets → Firebase: uses Firestore