{"repo":"valentinilk/compose-shimmer","free":true,"listed":false,"github":"https://github.com/valentinilk/compose-shimmer","clone":"git clone https://github.com/valentinilk/compose-shimmer.git","description":"A simple shimmer library for Jetpack Compose.","language":"Kotlin","stars":1065,"topics":["android","jetpack-compose"],"license":"Apache-2.0","category":"mobile-apps","readme_excerpt":"Shimmer for Jetpack Compose & Compose Multiplatform A library which offers a shimmering effect for Compose. Setup The library is available on mavenCentral() . Multiplatform Targets Supported CMP targets are: Android , iOS , JVM (Desktop) , JS (Browser) and Wasm (WebAssembly) . Compose Multiplatform Version In case of compatibility issues, select a library version that is based on the same compose version as your project. Shimmer Version Based on Compose ----------------- ------------------ 1.5.0 1.11 1.4.0 1.10.3 1.3.3 1.8.1 1.3.2 1.7.3 Quick Start Simply apply the shimmer modifier to any UI of your choice. The code below will emit the shimmering UI that can be seen in the GIF above. Modifier placement As usual with modifiers the order matters. Every UI component defined after the shimmer modifier will be affected by the animation. This includes child views and other modifiers: The first example demonstrates that only the inner Box is shimmering, even though the shimmer has been added to the outer Box 's modifier stack. The blue background is not shimmering, as it's sitting above the shimmer modifier. If the modifier, however, is applied earlier, the outer Box 's background modifier is affected by the shimmer as well. Theming The library includes a ShimmerTheme which can be provided as a local composition. A good practice would be to integrate the theming into your customized MaterialTheme. There is no need to wrap every single shimmer into a CompositionLocalProvider . The th","default_branch":null,"files":null,"tree":[],"storefront":"/r/valentinilk","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/valentinilk/compose-shimmer/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}