Jetpack Compose

Oct 22 2020 Kotlin 1.4, Android 11, Android Studio 4.2

Part 1: Jetpack Compose Basics

8. Build Common UI Components: Part 2

Episode complete

Play next episode

Next
About this episode
See versions
Leave a rating/review
See forum comments
Cinema mode Mark complete Download course materials
Previous episode: 7. Build Common UI Components: Part 1 Next episode: 9. Build Common UI Components: Part 3

Get immediate access to this and 4,000+ other videos and books.

Take your career further with a Kodeco Pro subscription. With unlimited access to over 40+ books and 4,000+ professional videos in a single subscription, it's simply the best investment you can make in your development career.

Learn more Already a subscriber? Sign in.

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.