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 LoremIpsumText(text: String, modifier: Modifier = Modifier) { | |
| Text( | |
| text = text, | |
| modifier = modifier | |
| ) | |
| } | |
| @Preview(showBackground = true) | |
| @Composable |
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
| import android.accessibilityservice.AccessibilityServiceInfo | |
| import android.content.Context | |
| import android.content.res.Configuration | |
| import android.graphics.fonts.FontStyle.FONT_WEIGHT_BOLD | |
| import android.graphics.fonts.FontStyle.FONT_WEIGHT_NORMAL | |
| import android.os.Build | |
| import android.provider.Settings | |
| import android.util.DisplayMetrics | |
| import android.view.accessibility.AccessibilityManager | |
| import java.lang.reflect.Method |
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.rumosoft.library_components.components | |
| import androidx.compose.foundation.gestures.detectTapGestures | |
| import androidx.compose.foundation.interaction.MutableInteractionSource | |
| import androidx.compose.foundation.interaction.PressInteraction | |
| import androidx.compose.foundation.layout.Column | |
| import androidx.compose.foundation.layout.padding | |
| import androidx.compose.foundation.text.ClickableText | |
| import androidx.compose.runtime.Composable | |
| import androidx.compose.runtime.remember |
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
| import android.content.Context | |
| import android.graphics.Canvas | |
| import android.graphics.LinearGradient | |
| import android.graphics.Matrix | |
| import android.graphics.Paint | |
| import android.graphics.Shader | |
| import android.util.AttributeSet | |
| import android.view.View | |
| private const val INITIAL_ROTATION = 90f |
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
| import androidx.compose.ui.Modifier | |
| import androidx.compose.ui.draw.drawBehind | |
| import androidx.compose.ui.geometry.Offset | |
| import androidx.compose.ui.graphics.Brush | |
| import androidx.compose.ui.graphics.Color | |
| import kotlin.math.PI | |
| import kotlin.math.pow | |
| // Initial code from https://gist.github.com/EmmanuelGuther/6075494d1f0599fe76a1e6cd0c6e42e5 |
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
| fun <T> MutableState<T>.update(produceValue: (T) -> T) { | |
| value = produceValue(value) | |
| } |