File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed
app/src/main/java/to/bitkit/ui/screens/transfer/components Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change 11package to.bitkit.ui.screens.transfer.components
22
3+ import androidx.annotation.DrawableRes
34import androidx.compose.animation.core.EaseInOut
45import androidx.compose.animation.core.RepeatMode
56import androidx.compose.animation.core.animateFloat
@@ -17,13 +18,15 @@ import androidx.compose.ui.Modifier
1718import androidx.compose.ui.draw.rotate
1819import androidx.compose.ui.layout.ContentScale
1920import androidx.compose.ui.res.painterResource
21+ import androidx.compose.ui.tooling.preview.Preview
2022import androidx.compose.ui.unit.dp
2123import to.bitkit.R
24+ import to.bitkit.ui.theme.AppThemeSurface
2225
2326@Composable
2427fun TransferAnimationView (
25- largeCircleRes : Int ,
26- smallCircleRes : Int ,
28+ @DrawableRes largeCircleRes : Int ,
29+ @DrawableRes smallCircleRes : Int ,
2730) {
2831 Box (
2932 contentAlignment = Alignment .Center ,
@@ -79,3 +82,14 @@ fun TransferAnimationView(
7982 )
8083 }
8184}
85+
86+ @Preview
87+ @Composable
88+ private fun Preview () {
89+ AppThemeSurface {
90+ TransferAnimationView (
91+ largeCircleRes = R .drawable.ln_sync_large,
92+ smallCircleRes = R .drawable.ln_sync_small,
93+ )
94+ }
95+ }
You can’t perform that action at this time.
0 commit comments