mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-17 08:37:03 +05:30
app: switch to accompanist-flowlayout
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
a42012a958
commit
f26e8be3f4
3 changed files with 9 additions and 8 deletions
|
@ -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)
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -67,8 +67,9 @@ object Dependencies {
|
|||
|
||||
object ThirdParty {
|
||||
|
||||
const val accompanist = "com.google.accompanist:accompanist-coil:0.7.0"
|
||||
const val composeFlowLayout = "com.star-zero:compose-flowlayout:0.0.1"
|
||||
private const val accompanistVersion = "0.7.0"
|
||||
const val accompanistCoil = "com.google.accompanist:accompanist-coil:$accompanistVersion"
|
||||
const val accompanistFlow = "com.google.accompanist:accompanist-flowlayout:$accompanistVersion"
|
||||
const val kamel = "com.alialbaali.kamel:kamel-image:0.2.0"
|
||||
const val pullToRefresh = "com.puculek.pulltorefresh:pull-to-refresh-compose:1.0.1"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue