Skip to content

Sample project to demonstrate how to have clear and better interactions between composables and viewmodels.

Notifications You must be signed in to change notification settings

aqua30/FormValidation

Repository files navigation

Form Validation

Sample project to demonstrate how to have clear and better interactions between composables and viewmodels.

Concepts used

  • uiState concept to maintain the state for our composables inside view model and update the UI composables based on the state changes.
  • shared flow to fire events for result and displays toast message from composable.
  • launched effect to handle state change happening outside of the composable but in the same scope.

Medium Article

If you want to read more in detail, please read here: https://saurabhpant.medium.com/cleaner-way-to-interact-between-composable-and-viewmodel-in-jetpack-compose-14c8b3a74bbe

About

Sample project to demonstrate how to have clear and better interactions between composables and viewmodels.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages