Use ComposeStars from RatingBar library.
(cherry picked from commit 01e8c6cc12f6345ad780d31033b2ef739bf959b3)
This commit is contained in:
parent
1ac96825c4
commit
8828da80b7
1 changed files with 6 additions and 5 deletions
|
|
@ -30,7 +30,7 @@ import androidx.compose.ui.unit.sp
|
|||
import androidx.compose.ui.util.fastAny
|
||||
import androidx.paging.LoadState
|
||||
import androidx.paging.compose.LazyPagingItems
|
||||
import com.gowtham.ratingbar.RatingBar
|
||||
import com.gowtham.ratingbar.ComposeStars
|
||||
import com.gowtham.ratingbar.RatingBarStyle
|
||||
import dev.icerock.moko.resources.StringResource
|
||||
import eu.kanade.presentation.library.components.CommonMangaItemDefaults
|
||||
|
|
@ -267,14 +267,15 @@ fun BrowseSourceEHentaiListItem(
|
|||
verticalArrangement = Arrangement.spacedBy(MaterialTheme.padding.small),
|
||||
horizontalAlignment = Alignment.Start,
|
||||
) {
|
||||
RatingBar(
|
||||
ComposeStars(
|
||||
value = rating,
|
||||
onValueChange = {},
|
||||
onRatingChanged = {},
|
||||
isIndicator = true,
|
||||
numOfStars = 5,
|
||||
size = 18.dp,
|
||||
spaceBetween = 2.dp,
|
||||
hideInactiveStars = false,
|
||||
style = RatingBarStyle.Fill(),
|
||||
painterEmpty = null,
|
||||
painterFilled = null,
|
||||
)
|
||||
val color = genre?.first?.color
|
||||
// KMK -->
|
||||
|
|
|
|||
Loading…
Reference in a new issue