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 SimpleSplitFlap( | |
| texts: List<String>, | |
| index: Int, | |
| modifier: Modifier = Modifier, | |
| width: Dp, | |
| height: Dp | |
| ) { | |
| var currentIndex by remember { mutableIntStateOf(0) } | |
| val rotation = remember { Animatable(0f) } |
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
| #!/bin/bash | |
| # Exit immediately if a command exits with a non-zero status | |
| set -e | |
| # === Configuration === | |
| BINARY_NAME="android" | |
| INSTALL_DIR="/usr/local/bin" | |
| OS="$(uname -s)" |
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
| @Serializable | |
| sealed interface AppDestination { | |
| val label: String | |
| @get:DrawableRes val iconRes: Int | |
| } | |
| @Serializable | |
| data object HomeDestination : AppDestination { | |
| override val label = "Home"; override val iconRes = R.drawable.ic_home | |
| } |
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
| @Serializable | |
| sealed interface AppDestination { | |
| val label: String | |
| @get:DrawableRes val iconRes: Int | |
| @Serializable | |
| data object Home : AppDestination { | |
| override val label = "Home" | |
| override val iconRes = R.drawable.ic_home | |
| } |
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
| // ========================================================== | |
| // 【DEFINITION AREA】 | |
| // Must be defined at the TOP-LEVEL (Outside of any @Composable) | |
| // ========================================================== | |
| // A. object: A global, immutable box (Constants) | |
| object AppDesignConfig { | |
| val BrandColor = Color(0xFF6200EE) // Fixed brand color | |
| val CornerRadius = 12.dp | |
| } |
NewerOlder