app: switch to accompanist-flowlayout

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2021-03-25 03:23:54 +05:30
parent a42012a958
commit f26e8be3f4
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80
3 changed files with 9 additions and 8 deletions

View file

@ -42,8 +42,8 @@ dependencies {
implementation(Dependencies.AndroidX.Lifecycle.runtimeKtx)
implementation(Dependencies.AndroidX.Lifecycle.viewmodelKtx)
implementation(Dependencies.Kotlin.Coroutines.android)
implementation(Dependencies.ThirdParty.accompanist)
implementation(Dependencies.ThirdParty.composeFlowLayout)
implementation(Dependencies.ThirdParty.accompanistCoil)
implementation(Dependencies.ThirdParty.accompanistFlow)
implementation(Dependencies.ThirdParty.Moshi.lib)
implementation(Dependencies.ThirdParty.pullToRefresh)
implementation(Dependencies.ThirdParty.Retrofit.moshi)

View file

@ -28,8 +28,8 @@ import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import coil.transform.CircleCropTransformation
import com.star_zero.compose.flowlayout.FlowLayout
import com.google.accompanist.coil.CoilImage
import com.google.accompanist.flowlayout.FlowRow
import dev.msfjarvis.lobsters.R
import dev.msfjarvis.lobsters.data.api.LobstersApi
import dev.msfjarvis.lobsters.data.local.SavedPost
@ -213,9 +213,9 @@ fun TagRow(
Box(
modifier = Modifier.then(modifier),
) {
FlowLayout(
horizontalSpacing = 8.dp,
verticalSpacing = 8.dp,
FlowRow(
mainAxisSpacing = 8.dp,
crossAxisSpacing = 8.dp,
) {
tags.forEach { tag ->
Text(