Skip to content

Sharing a View Model between composables inside Jetpack Compose Navigation.

Notifications You must be signed in to change notification settings

rawhasan/compose-exercise-viewmodel-sharing

Repository files navigation

Compose Exercise: Viewmodel Sharing

  • Sharing a View Model between composables inside Jetpack Compose Navigation.
  • Providing a numeric keyboard for number input.
  • Showing number format conditionally based on the floating point digits (0.0 or 0).

Dependencies

// Compose Navigation
implementation "androidx.navigation:navigation-compose:2.4.0-alpha05"

// Compose ViewModel
implementation "androidx.lifecycle:lifecycle-viewmodel-compose:1.0.0-alpha07"

Input Screen Result Screen
input-screen result-screen

About

Sharing a View Model between composables inside Jetpack Compose Navigation.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages