Skip to content

feevlic/justresponsiveui

Repository files navigation

JustResponsiveUi

License

JustResponsiveUi is a minimal Android app that demonstrates building adaptive Jetpack Compose UIs for phones and tablets (portrait and landscape). It includes separate Login and Register flows with shared domain validation, MVVM ViewModel + StateFlow, and Dagger Hilt dependency injection.

Overview

  • Small, focused codebase that illustrates adaptive Compose layouts, MVVM separation, and single-source validation logic for authentication.

Screenshots

Portrait — Mobile phone

Phone Portrait Login Phone Portrait Login Error

Phone Portrait Register Phone Portrait Register Error

Portrait — Tablet

Tablet Portrait Login Tablet Portrait Login Error

Tablet Portrait Register Tablet Portrait Register Error

Landscape — Mobile phone

Phone Landscape Login Phone Landscape Login Error

Phone Landscape Register Phone Landscape Register Error

Landscape — Tablet

Tablet Landscape Login Tablet Landscape Login Error

Tablet Landscape Register Tablet Landscape Register Error

Architecture

  • Pattern: MVVM — ViewModel holds UI state and exposes StateFlow; composables render state and emit events.
  • Layers: domain (use-cases), presentation (Compose screens + ViewModels), DI modules.

Tech Stack

  • Kotlin
  • Jetpack Compose (Material3)
  • Dagger Hilt (DI)
  • Navigation3 (compose-compatible)
  • Kotlin Coroutines, StateFlow
  • Gradle (wrapper)

Key Locations

  • Auth root: app/src/main/java/com/feevlic/justresponsiveui/auth
  • Screens: auth/login and auth/register
  • Shared domain use-cases: auth/shared/domain/usecase
  • Navigation entry: auth/shared/navigation/AuthNavigation.kt
  • Shared state: auth/shared/presentation/SharedAuthViewModel.kt

Build and run

  • Prerequisites: Android Studio, Android SDK, emulator or physical device
  • Build:
./gradlew clean assembleDebug
  • Install on device/emulator:
./gradlew installDebug

About

a minimal Android app that demonstrates building adaptive Jetpack Compose UIs for phones and tablets (portrait and landscape). It includes separate Login and Register flows with shared domain validation, MVVM ViewModel + StateFlow, and Dagger Hilt dependency injection

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors