This class will help to add bur effect on coil AsyncImage
Copy BlurTranformation.kt file to your repository and you are ready to engage!
//Usage example AsyncImage( model = "https://avatars.githubusercontent.com/u/52178347?v=4", modifier = Modifier.size(100.dp), transfomations = listOf( BlurTransformation( scale = 0.5f, radius = 25 ) ) /*your other params*/ )
Also remember to add this dependencies to local build.gradle folder
//Coil implementation("io.coil-kt:coil:2.2.2") implementation("io.coil-kt:coil-compose:2.2.2")
Find this repository useful? ❤️
Support it by joining stargazers for this repository. ⭐ And follow me for my next creations! 🤩
Designed and developed by 2022 T8RIN Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.