A modern Weather App built with Jetpack Compose, using real-time data from a public weather API. The app allows users to search for a city and get current weather conditions in a clean and responsive UI.
- 🔍 Search weather by city name
- 🌡️ View temperature, humidity, wind speed, UV index, and precipitation
- 🗺️ See location and local time/date
- 🖼️ Dynamic weather icons with condition text
- ⚙️ Built with MVVM architecture and LiveData
- Jetpack Compose – UI toolkit
- ViewModel & LiveData – State management
- Retrofit – Network requests
- Coil – Image loading (weather icons)
- Kotlin Coroutines – Asynchronous operations
- WeatherAPI.com
- Requires a free API key to fetch data.
- Modify your key in
Constant.kt
:const val API_KEY = "1260db2a1b7c44cda2342739252804"
- MVVM (Model-View-ViewModel)
- Clean separation of concerns
- Sealed class for API response handling:
Success
,Error
,Loading
- Clone the repository:
git clone https://github.com/your-username/weather-compose-app.git