mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-17 16:47:01 +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.runtimeKtx)
|
||||||
implementation(Dependencies.AndroidX.Lifecycle.viewmodelKtx)
|
implementation(Dependencies.AndroidX.Lifecycle.viewmodelKtx)
|
||||||
implementation(Dependencies.Kotlin.Coroutines.android)
|
implementation(Dependencies.Kotlin.Coroutines.android)
|
||||||
implementation(Dependencies.ThirdParty.accompanist)
|
implementation(Dependencies.ThirdParty.accompanistCoil)
|
||||||
implementation(Dependencies.ThirdParty.composeFlowLayout)
|
implementation(Dependencies.ThirdParty.accompanistFlow)
|
||||||
implementation(Dependencies.ThirdParty.Moshi.lib)
|
implementation(Dependencies.ThirdParty.Moshi.lib)
|
||||||
implementation(Dependencies.ThirdParty.pullToRefresh)
|
implementation(Dependencies.ThirdParty.pullToRefresh)
|
||||||
implementation(Dependencies.ThirdParty.Retrofit.moshi)
|
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.tooling.preview.Preview
|
||||||
import androidx.compose.ui.unit.dp
|
import androidx.compose.ui.unit.dp
|
||||||
import coil.transform.CircleCropTransformation
|
import coil.transform.CircleCropTransformation
|
||||||
import com.star_zero.compose.flowlayout.FlowLayout
|
|
||||||
import com.google.accompanist.coil.CoilImage
|
import com.google.accompanist.coil.CoilImage
|
||||||
|
import com.google.accompanist.flowlayout.FlowRow
|
||||||
import dev.msfjarvis.lobsters.R
|
import dev.msfjarvis.lobsters.R
|
||||||
import dev.msfjarvis.lobsters.data.api.LobstersApi
|
import dev.msfjarvis.lobsters.data.api.LobstersApi
|
||||||
import dev.msfjarvis.lobsters.data.local.SavedPost
|
import dev.msfjarvis.lobsters.data.local.SavedPost
|
||||||
|
@ -213,9 +213,9 @@ fun TagRow(
|
||||||
Box(
|
Box(
|
||||||
modifier = Modifier.then(modifier),
|
modifier = Modifier.then(modifier),
|
||||||
) {
|
) {
|
||||||
FlowLayout(
|
FlowRow(
|
||||||
horizontalSpacing = 8.dp,
|
mainAxisSpacing = 8.dp,
|
||||||
verticalSpacing = 8.dp,
|
crossAxisSpacing = 8.dp,
|
||||||
) {
|
) {
|
||||||
tags.forEach { tag ->
|
tags.forEach { tag ->
|
||||||
Text(
|
Text(
|
||||||
|
|
|
@ -67,8 +67,9 @@ object Dependencies {
|
||||||
|
|
||||||
object ThirdParty {
|
object ThirdParty {
|
||||||
|
|
||||||
const val accompanist = "com.google.accompanist:accompanist-coil:0.7.0"
|
private const val accompanistVersion = "0.7.0"
|
||||||
const val composeFlowLayout = "com.star-zero:compose-flowlayout:0.0.1"
|
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 kamel = "com.alialbaali.kamel:kamel-image:0.2.0"
|
||||||
const val pullToRefresh = "com.puculek.pulltorefresh:pull-to-refresh-compose:1.0.1"
|
const val pullToRefresh = "com.puculek.pulltorefresh:pull-to-refresh-compose:1.0.1"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue