Skip to content

Commit

Permalink
Apply marquee for MetricsBoard
Browse files Browse the repository at this point in the history
  • Loading branch information
abdrasulov committed Jun 12, 2024
1 parent b8124ff commit acaaa1e
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
package io.horizontalsystems.bankwallet.modules.market

import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.MarqueeSpacing
import androidx.compose.foundation.background
import androidx.compose.foundation.basicMarquee
import androidx.compose.foundation.clickable
import androidx.compose.foundation.horizontalScroll
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.pager.HorizontalPager
import androidx.compose.foundation.pager.rememberPagerState
import androidx.compose.foundation.rememberScrollState
import androidx.compose.material.Divider
import androidx.compose.material.Scaffold
import androidx.compose.runtime.Composable
Expand Down Expand Up @@ -159,6 +159,7 @@ fun TabsSection(
}
}

@OptIn(ExperimentalFoundationApi::class)
@Composable
fun MetricsBoard(
navController: NavController,
Expand All @@ -169,7 +170,10 @@ fun MetricsBoard(
.fillMaxWidth()
.height(40.dp)
.background(ComposeAppTheme.colors.tyler)
.horizontalScroll(rememberScrollState()),
.basicMarquee(
iterations = Int.MAX_VALUE,
spacing = MarqueeSpacing(0.dp)
),
verticalAlignment = androidx.compose.ui.Alignment.CenterVertically
) {
HSpacer(4.dp)
Expand Down

0 comments on commit acaaa1e

Please sign in to comment.