Skip to content

Commit

Permalink
[add-restaurant-list-item-component] Fix code format
Browse files Browse the repository at this point in the history
  • Loading branch information
ronaldocoding committed Oct 11, 2023
1 parent b4c4af3 commit 43ff3bb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ fun RestaurantListItem(
restaurant: RestaurantDomain,
borderColor: Color = ColorReference.chineseSilver,
backgroundColor: Color = ColorReference.white,
onClick: () -> Unit = {},
onClick: () -> Unit = {}
) {
val showShimmer = rememberSaveable { mutableStateOf(true) }

Expand Down Expand Up @@ -138,4 +138,3 @@ fun RestaurantListItemPreview() {
)
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,18 @@ fun shimmerBrush(showShimmer: Boolean = true, targetValue: Float = 1000f): Brush
val shimmerColors = listOf(
Color.LightGray.copy(alpha = 0.6f),
Color.LightGray.copy(alpha = 0.2f),
Color.LightGray.copy(alpha = 0.6f),
Color.LightGray.copy(alpha = 0.6f)
)

val transition = rememberInfiniteTransition(label = "")

Check failure on line 22 in app/src/main/java/br/com/sommelier/ui/component/ShimmerBrush.kt

View workflow job for this annotation

GitHub Actions / Setup Env and build

Cannot find a parameter with this name: label
val translateAnimation = transition.animateFloat(
initialValue = 0f,
targetValue = targetValue,
animationSpec = infiniteRepeatable(
animation = tween(800), repeatMode = RepeatMode.Reverse
), label = ""
animation = tween(800),
repeatMode = RepeatMode.Reverse
),
label = ""

Check failure on line 30 in app/src/main/java/br/com/sommelier/ui/component/ShimmerBrush.kt

View workflow job for this annotation

GitHub Actions / Setup Env and build

Cannot find a parameter with this name: label
)
Brush.linearGradient(
colors = shimmerColors,
Expand Down

0 comments on commit 43ff3bb

Please sign in to comment.