Cloudy icon indicating copy to clipboard operation
Cloudy copied to clipboard

update blur while scrolling LazyColumn below blur

Open MaximCemencov opened this issue 1 year ago • 1 comments

I wanna create a screen with your really cool library but I got a issue with blur I wanna create a blue anything below my textField and I do it but while I scroll my list of items the blur does not update by the scroll and the scroll displays the outdated blur info

https://github.com/skydoves/Cloudy/assets/112812079/2966f526-5c59-4cf4-ac85-9d6798623285

and I wanna create some effect like on telegram with blur:

https://github.com/skydoves/Cloudy/assets/112812079/6ae0905f-5dbc-4eae-8e12-438995497213

my code:

var text by remember { mutableStateOf("") } val rememberLazyColumnState = rememberLazyListState()

Box {
    LazyColumn(
        state = rememberLazyColumnState
    ) {
        items(100) { index ->
            Text(text = "Itemasd;klfja;kdfjka;lsjdfl;ajsdflasdlkf;alskdjf: $index")
        }
    }

    Box (
        modifier = Modifier.height(80.dp)
    ) {
        Cloudy(
            radius = 20,
            key2 = rememberLazyColumnState.firstVisibleItemIndex
        ) {
            Box(modifier = Modifier
                .fillMaxWidth()
                .fillMaxHeight())
        }
        OutlinedTextField(
            value = text,
            onValueChange = { text = it },
            placeholder = { Text("Search...") },
            modifier = Modifier
                .fillMaxWidth()
                .padding(10.dp)
        )
    }
}

MaximCemencov avatar Jul 02 '24 18:07 MaximCemencov

Hey @MaximCemencov, for now, Cloudy doesn't support the window blurring feature. It's one of my plans for the next release.

skydoves avatar Jul 17 '24 01:07 skydoves