This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Composable | |
| fun SweepGradientImage( | |
| imgResId: Int, | |
| maxImgSize: Dp = 250.dp, | |
| maxImgRotation: Float = -10f | |
| ) { | |
| var animationPlayed by remember { mutableStateOf(false) } | |
| val lineOffset by animateFloatAsState( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| data class Place( | |
| val name: String, | |
| val resId: Int | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.vishal2376.animations | |
| import androidx.compose.animation.Crossfade | |
| import androidx.compose.animation.core.animateFloatAsState | |
| import androidx.compose.animation.core.tween | |
| import androidx.compose.foundation.ExperimentalFoundationApi | |
| import androidx.compose.foundation.Image | |
| import androidx.compose.foundation.background | |
| import androidx.compose.foundation.layout.Arrangement | |
| import androidx.compose.foundation.layout.Box |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.vishal2376.animations.ui.theme | |
| import androidx.compose.animation.animateColorAsState | |
| import androidx.compose.animation.core.EaseInOut | |
| import androidx.compose.animation.core.animateFloatAsState | |
| import androidx.compose.animation.core.tween | |
| import androidx.compose.foundation.background | |
| import androidx.compose.foundation.clickable | |
| import androidx.compose.foundation.layout.Arrangement | |
| import androidx.compose.foundation.layout.Box |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //settings.gradle.kts | |
| dependencyResolutionManagement { | |
| repositories { | |
| maven { url = uri("https://androidx.dev/snapshots/builds/11670047/artifacts/repository/") } | |
| google() | |
| mavenCentral() | |
| maven(url = "https://plugins.gradle.org/m2/") | |
| maven(url = "https://maven.pkg.jetbrains.space/public/p/compose/dev") | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package io.untec.utils.masks | |
| import android.util.Log | |
| import androidx.compose.ui.text.AnnotatedString | |
| import androidx.compose.ui.text.TextRange | |
| import androidx.compose.ui.text.input.OffsetMapping | |
| import androidx.compose.ui.text.input.TextFieldValue | |
| import androidx.compose.ui.text.input.TransformedText | |
| import androidx.compose.ui.text.input.VisualTransformation | |
| import java.math.BigDecimal |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package bagus2x.sosmed.presentation.common.components | |
| import androidx.compose.foundation.ExperimentalFoundationApi | |
| import androidx.compose.foundation.layout.PaddingValues | |
| import androidx.compose.foundation.layout.Row | |
| import androidx.compose.foundation.layout.size | |
| import androidx.compose.foundation.layout.wrapContentSize | |
| import androidx.compose.foundation.pager.VerticalPager | |
| import androidx.compose.foundation.pager.rememberPagerState | |
| import androidx.compose.material.MaterialTheme |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private val TickerCycleMillis = 150 | |
| private object AlphabetMapper { | |
| private val Alphabet = " ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789β’".toList() | |
| val size: Int = Alphabet.size | |
| fun getLetterAt(index: Int): Char = Alphabet[index % size] | |
| fun getIndexOf(letter: Char, offset: Int = 0): TickerIndex { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @OptIn(ExperimentalMaterial3Api::class) | |
| @Composable | |
| fun DatePickerWithDialog( | |
| value: LocalDate?, | |
| dateFormatter: (LocalDate) -> String, | |
| enabled: Boolean = true, | |
| placeholder: @Composable (() -> Unit)? = null, | |
| dateValidator: (Long) -> Boolean = { true }, | |
| onChange: (LocalDate?) -> Unit |
NewerOlder