WeatherApp
WeatherApp copied to clipboard
Weather application using Flutter riverpod, freezed, openweather. A way to feature-based-project structure. Including DDD
UI
Landing Page | Landing Page Tap to see more | Search by city |
![]() |
![]() |
![]() |
Search Result 1 | Search Result 2 | |
![]() |
![]() |
|
Search with wrong cityname | Error Search Result | |
![]() |
![]() |
Problems I've faced while completing this app
1. Hiding credentials
Soln: git add . , then check the path of the tracked file you don't want to push. copy paste to .gitignore
2. Platform Exception
Soln: Restart the device
3. StateNotifier multiple state problem
Solved: Use Different function that returs different state. Riverpod Video Tutorial
4. More
- AsyncValue with FutureProvider
- https://stackoverflow.com/questions/67582335/how-to-get-the-old-state-before-updating-the-state-in-state-notifier-riverpod
- my git queries - https://github.com/rrousselGit/river_pod/issues/212
- await on asyncValue - https://stackoverflow.com/questions/66411312/riverpod-how-to-await-using-futureprovider-on-asyncvalue-not-in-widget/66955043#66955043
- cached refresh indicator https://github.com/rrousselGit/river_pod/issues/461
- Unhandled Exception: setState() or markNeedsBuild() called during build
https://github.com/rrousselGit/river_pod/issues/177
Know about riverpod (written tutorial)
https://codewithandrea.com/videos/flutter-state-management-riverpod/