WMTCountryList is an Android application that fetches and displays country data using MVVM with Clean architecture, Hilt for dependency injection, Retrofit for API calls, and Coroutines for async processing.
- Fetches country data from an API.
- Displays a list of countries with their name, region, and capital.
- Uses StateFlow to manage UI state.
- Handles Loading, Success, Network Error, and Server Error states.
Below are the different states of the application:
- Indicates that the data is being fetched.
- A progress bar is shown to inform the user.
- The data is successfully fetched and displayed in the UI.
- Occurs when the device has no internet connection.
- Displays an error message prompting the user to check their connection.
- Happens when the API returns an error response.
- Displays an appropriate message to notify the user.