https://kotlinlang.org logo
Title
u

user

07/20/2022, 12:01 PM
Save User input on a screen composable and in a room database using Compose My goal is to save data that the user inputs in a field ( my case outlinedtextfield ) and store that data both on screen for the user to see and in a local database using room. I have created the basics of room ( Database, Dao, Data class, Repository, RepositoryImpl and a viewmodel ), but I cant figure out how to save the user input into it/ take user input and save it to the database I created. I want to save both string input and Int input. How can I achieve this while following best...