Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update blur while scrolling LazyColumn below blur #26

Open
MaximCemencov opened this issue Jul 2, 2024 · 1 comment
Open

update blur while scrolling LazyColumn below blur #26

MaximCemencov opened this issue Jul 2, 2024 · 1 comment

Comments

@MaximCemencov
Copy link

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

Screen.Recording.2024-07-02.at.21.31.31.mov

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

Screen_Recording_20240702-214136_Telegram.mp4

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 MaximCemencov changed the title update blue while scrolling LazyColumn below blur update blur while scrolling LazyColumn below blur Jul 2, 2024
@skydoves
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants