Skip to content

uselesscherry/Crypto-Compose

Repository files navigation

Crypto-Compose

This app executes network call to CoinPaprika API and gets info about Cryptocurrencies. The goal of the sample is to showcase loading data from network with Retrofit, implementing DI and async programming with Coroutines.

What I used in this project:

Rotation of icon and visibility animation:

    var isVisible by remember { mutableStateOf(false) }
    val rotation by animateFloatAsState(targetValue = if (isVisible) 180f else 0f)
    
    Icon(imageVector = Icons.Rounded.ArrowDropDown, modifier = Modifier.rotate(rotation))
    
    AnimatedVisibility(visible = isVisible) {
    //content to be hidden and shown on Icon click
    }

*only 25 coins and tokens are loaded because API provides a huge list of coins. It takes too much time to load data.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages