Skip to content

Instantly share code, notes, and snippets.

View Micoder-dev's full-sized avatar
♦️
Eat😋| Code👨‍💻| Sleep 😴| Repeat ♾️ | Achieve 🚀

Mugunthan Micoder-dev

♦️
Eat😋| Code👨‍💻| Sleep 😴| Repeat ♾️ | Achieve 🚀
  • Vexora Solutions
  • TamilNadu, India
  • 14:45 (UTC -12:00)
  • Instagram mi_coder
View GitHub Profile
@stevdza-san
stevdza-san / MainScreen.kt
Created September 16, 2022 09:18
Disappearing and Animated Top Bar - Jetpack Compose
import android.annotation.SuppressLint
import androidx.compose.animation.animateContentSize
import androidx.compose.animation.core.animateDpAsState
import androidx.compose.animation.core.tween
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.LazyListState
import androidx.compose.foundation.lazy.items
import androidx.compose.foundation.lazy.rememberLazyListState
@developerchunk
developerchunk / switchButton.kt
Last active March 12, 2025 12:26
Create Custom Switch Button Jetpack in Compose | Full Documentation on Medium- https://link.medium.com/eWGtmZ8Auub
import androidx.compose.animation.core.LinearOutSlowInEasing
import androidx.compose.animation.core.animateDpAsState
import androidx.compose.animation.core.tween
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.runtime.*
import androidx.compose.ui.Modifier
@jmadaminov
jmadaminov / BackgroundShader
Created April 20, 2023 10:43
Liquid like AGSL shader effect
import android.graphics.Bitmap
import android.graphics.BitmapShader
import android.graphics.RuntimeShader
import android.graphics.Shader
import android.os.Build
import androidx.compose.animation.core.withInfiniteAnimationFrameMillis
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.runtime.getValue
import androidx.compose.runtime.produceState
import androidx.compose.ui.Modifier
@oianmol
oianmol / platform.android.kt
Created May 19, 2023 10:01
Jetpack Compose Side Effect to update Android or iOS status-bar and navigation-bar color
@Composable
actual fun PlatformColors(statusBarColor: Color, navBarColor: Color){
val sysUiController = rememberSystemUiController()
SideEffect {
sysUiController.setSystemBarsColor(color = topColor)
sysUiController.setNavigationBarColor(color = bottomColor)
}
}
@stevdza-san
stevdza-san / AnimatedBorderCard.kt
Last active October 9, 2024 12:23
Card with Animated Border built with Jetpack Compose.
@Composable
fun AnimatedBorderCard(
modifier: Modifier = Modifier,
shape: Shape = RoundedCornerShape(size = 0.dp),
borderWidth: Dp = 2.dp,
gradient: Brush = Brush.sweepGradient(listOf(Color.Gray, Color.White)),
animationDuration: Int = 10000,
onCardClick: () -> Unit = {},
content: @Composable () -> Unit
) {
@KvRae
KvRae / VerticalDashedDivider.kt
Created May 24, 2024 14:04
A vertical dashed divider implementation for jetpack compose
/**
* A vertical dashed divider that can be used to separate content in a composable
* @param modifier the modifier to apply to the divider
* @param thickness the thickness of the divider
* @param color the color of the divider
* @author KvRae
*/
@Composable
fun VerticalDashedDivider(
modifier: Modifier = Modifier,