How farmassistx/farmassist works
Farmassist is a Flutter smart-farming app whose user-facing workflows cover authentication, farm records and information, IoT telemetry, and on-device plant-disease detection. The README documents the backend services and major capabilities; Dart source was not excerpted, so edges describe documented relationships rather than unverified implementation calls.
Main entry points: authentication_repository.dart Auth Repository · farm Farm Records · main.dart App Entry · login_page.dart Login and Signup
Components 24
Authentication
- Login and Signup
lib/ui/login/login_page.dart - Auth State
lib/bloc/authentication/bloc/authentication_bloc.dart - Auth Repository
lib/data/authentication/repositories/authentication_repository.dart - User Profile
lib/ui/profile/user_profile_page.dart - Firebase Auth
Farm Management
- Farm Records
lib/ui/farm - Planting Storage
lib/data/farm/repositories/storeData.dart - Harvest Storage
lib/data/farm/repositories/harvest_storeData.dart - Agricultural News
lib/ui/farm/news/news_home.dart - News API
lib/data/farm/resources/newsAPI.dart - Farm Weather
lib/ui/farm/weather/weatherHome.dart - Weather API
lib/data/farm/api/openweathermap_weather_api.dart
IoT Monitoring
- Telemetry Views
lib/ui/IoT/IoT_monitoring_page.dart - Telemetry Repository
lib/data/IoT/repositories/telemetry_data_repository.dart - Realtime Database
- Cloud Functions
- Cloud Messaging
Disease Detection
- Disease Diagnosis
lib/ui/diseases/disease_detection_page.dart - Disease Classifier
lib/data/diseases/classifier.dart - TFLite Model
assets/model.tflite
Other components
- Farmer
- Cloud Firestore
Connections 25
- Farmer → App Entry: opens app
- App Entry → App Shell: starts
- Farmer → Login and Signup: signs in
README.md - Login and Signup → Auth State: uses Bloc
README.md - Auth State → Auth Repository: authenticates
README.md - Auth Repository → Firebase Auth: uses
README.md - Auth Repository → Cloud Firestore: stores profile
README.md - Farmer → User Profile: views profile
- Farmer → Farm Records: manages farm
README.md - Farm Records → Planting Storage: manages planting
- Farm Records → Harvest Storage: manages harvests
- Planting Storage → Cloud Firestore: stores records
README.md - Harvest Storage → Cloud Firestore: stores records
README.md - Farmer → Agricultural News: views news
README.md - Agricultural News → News API: fetches headlines
README.md - Farmer → Farm Weather: checks weather
README.md - Farm Weather → Weather API: requests weather
README.md - Farmer → Telemetry Views: views telemetry
README.md - Telemetry Views → Telemetry Repository: reads telemetry
- Telemetry Repository → Realtime Database: synchronizes data
README.md - Realtime Database → Cloud Functions: triggers on updates
README.md - Cloud Functions → Cloud Messaging: sends alerts
README.md - Farmer → Disease Diagnosis: submits plant image
README.md - Disease Diagnosis → Disease Classifier: detects disease
- Disease Classifier → TFLite Model: uses model
README.md