How ade-nugraha306/smartphone-price-predictions works
Smartphone Price Predict is a Flutter client backed by a FastAPI service and a Random Forest classifier. Its main workflow is: the user enters phone specifications, the client sends them as JSON, the backend predicts a price category and estimated range, and the client displays the result. The tree also shows About and license screens. Backend implementation details beyond the documented model workflow were not sampled, so those internal relationships are limited to what the README states.
Main entry points: predict_screen.dart Prediction screen · api_services.dart API client · app.py Prediction API · main.dart Flutter app
Components 8
Flutter client
- Flutter app
frontend/lib/main.dart - Prediction screen
frontend/lib/screens/predict_screen.dart - API client
frontend/lib/services/api_services.dart - Prediction result
frontend/lib/models/prediction.dart - About and license
frontend/lib/screens/about
Prediction service
- Prediction API
backend/app.py
Classifier
- Random Forest
backend/data/rf_price_model.pkl
Other components
- App user
Connections 9
- App user → Prediction screen: enters specs
README.md - Flutter app → Prediction screen: provides UI
README.md - Flutter app → About and license: offers information
- Prediction screen → API client: submits specs
README.md - API client → Prediction API: sends JSON
README.md - Prediction API → Random Forest: predicts category
README.md - Prediction API → API client: returns category and range
README.md - API client → Prediction result: provides result
- Prediction screen → App user: displays result
README.md