Skip to content

Android application that fetches and displays country data using MVVM with Clean architecture

Notifications You must be signed in to change notification settings

0xCTF/WMTCountryList

Repository files navigation

🌍 WMTCountryList

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.

✨ Features

  • 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.

📷 UI States

Below are the different states of the application:

🔄 Loading State

  • Indicates that the data is being fetched.
  • A progress bar is shown to inform the user.

Loading State


Success State

  • The data is successfully fetched and displayed in the UI.

App UI


🌐 Network Error

  • Occurs when the device has no internet connection.
  • Displays an error message prompting the user to check their connection.

Network Error


🔥 Server Error

  • Happens when the API returns an error response.
  • Displays an appropriate message to notify the user.

Server Error

About

Android application that fetches and displays country data using MVVM with Clean architecture

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages