Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
r0adkll committed Aug 17, 2023
1 parent c9b138c commit f591e53
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ package app.deckbox.features.cards.ui.composables

import androidx.compose.animation.animateColorAsState
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.height
Expand All @@ -14,7 +12,6 @@ import androidx.compose.material3.Card
import androidx.compose.material3.CardDefaults
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.OutlinedCard
import androidx.compose.material3.ProvideTextStyle
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
Expand All @@ -30,7 +27,6 @@ import app.deckbox.common.compose.theme.PokemonTypeColor.toBackgroundColor
import app.deckbox.common.compose.theme.PokemonTypeColor.toColor
import app.deckbox.core.model.Card
import app.deckbox.core.model.Type
import com.seiko.imageloader.rememberImagePainter

@Composable
internal fun InfoCard(
Expand Down Expand Up @@ -128,7 +124,7 @@ internal fun InfoCard(
if (!card.weaknesses.isNullOrEmpty()) {
InfoChip("Weaknesses") {
Row(
horizontalArrangement = Arrangement.spacedBy(2.dp)
horizontalArrangement = Arrangement.spacedBy(2.dp),
) {
card.weaknesses?.forEach { effect ->
TypeIcon(
Expand All @@ -144,7 +140,7 @@ internal fun InfoCard(
if (!card.resistances.isNullOrEmpty()) {
InfoChip("Resistances") {
Row(
horizontalArrangement = Arrangement.spacedBy(4.dp)
horizontalArrangement = Arrangement.spacedBy(4.dp),
) {
card.resistances?.forEach { effect ->
TypeIcon(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ internal fun InfoChipGroup(
val rows = ceil(measurables.size.toFloat() / columns.toFloat()).roundToInt()
val columnHeights = (0 until rows).map { row ->
val from = row * columns
val to = (from + columns).coerceAtMost(measurables.size)
val to = (from + columns).coerceAtMost(measurables.size)
placeables.subList(from, to)
.maxBy { it.height }
.height
Expand Down

0 comments on commit f591e53

Please sign in to comment.