Skip to content

Instantly share code, notes, and snippets.

@Composable
fun AnimatedCircles(numberOfDots: Int = 3) {
val animationSpec = remember {
infiniteRepeatable<Float>(
animation = tween(durationMillis = 1400, easing = LinearEasing),
repeatMode = RepeatMode.Restart
)
}
@muhammetkdr
muhammetkdr / PermissionManager.kt
Last active May 30, 2024 11:38
now the dialog works dynamically
data class DialogParams(
@StyleRes val dialogTheme: Int,
@StringRes val dialogTitle: Int,
@StringRes val dialogMsg: Int,
@StringRes val dialogPositiveButton:Int,
@StringRes val dialogNegativeButton:Int,
)
class PermissionManager(
private val fragment: Fragment,
[
{
"id": 1,
"name": "Adana",
"latitude": "37.0000",
"longitude": "35.3213",
"population": 2183167,
"region": "Akdeniz"
},
{