Package com.keygenqt.viewer.android.extensions

Types

AnimatedNavGraphState
Link copied to clipboard
enum AnimatedNavGraphState : Enum<AnimatedNavGraphState>

States animation

DarkenColorLabel
Link copied to clipboard
object DarkenColorLabel

Get darken color label for light theme

Functions

capitalize
Link copied to clipboard
fun String.capitalize(): String

Returns a copy of this string having its first letter titlecased using the rules of the default locale, or the original string if it's empty or already starts with a title case letter.

composableAnimation
Link copied to clipboard
fun NavGraphBuilder.composableAnimation(route: String, arguments: List<NamedNavArgument> = emptyList(), deepLinks: List<NavDeepLink> = emptyList(), enterTransition: AnimatedContentScope<NavBackStackEntry>.() -> EnterTransition? = { fadeIn(animationSpec = tween(500)) }, exitTransition: AnimatedContentScope<NavBackStackEntry>.() -> ExitTransition?? = { fadeOut(animationSpec = tween(500)) }, popEnterTransition: AnimatedContentScope<NavBackStackEntry>.() -> EnterTransition? = { fadeIn(animationSpec = tween(500)) }, popExitTransition: AnimatedContentScope<NavBackStackEntry>.() -> ExitTransition?? = { fadeOut(animationSpec = tween(500)) }, content: @Composable AnimatedVisibilityScope.(NavBackStackEntry) -> Unit): <ERROR CLASS>

Animation navigator app

darkenColor
Link copied to clipboard
fun Color.darkenColor(value: Float = 0.3f): Color

Darken the color

dateFormat
Link copied to clipboard
fun Long.dateFormat(format: String): String

Format timestamp

getDeeplink
Link copied to clipboard
fun Intent.getDeeplink(): Uri?

Get uri deeplink is has

LaunchedEffectAnimation
Link copied to clipboard
@Composable
fun LaunchedEffectAnimation(block: suspend CoroutineScope.(AnimatedNavGraphState) -> Unit)

LaunchedEffectAnimation for state animation

textFieldColors
Link copied to clipboard
@Composable
fun MaterialTheme.textFieldColors(useDarkTheme: Boolean = isSystemInDarkTheme()): TextFieldColors

Custom colors for material 3 theme for material 2

withTransaction
Link copied to clipboard
suspend fun <T> IAppDatabase.withTransaction(body: suspend T.() -> Unit)

Extensions for easy transaction

Properties

stateAnimation
Link copied to clipboard
private val stateAnimation: MutableSharedFlow<AnimatedNavGraphState>

SharedFlow state animation