Build Common UI Components - Part 2 Pro
When building the AddBookReview
feature, specifically the RatingBar
handler for rating selection, make sure to also add the following line of code to the lambda function: _bookReviewState.value = _bookReviewState.value.copy(rating = newRating)
. This will store the data within the ReviewState
, to save the rating to the database when you finish adding a review.
Build lists of items and common Android components, such as RatingBar
s, to style your application.
Comments