Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

42 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages