This file contains 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
SM1:BL:511f6b:81ca2f;FEAT:A0F83180:20282000;POC:F;RCY:0;EMMC:0;READ:0;0.0;CHK:0; | |
bl2_stage_init 0x01 | |
bl2_stage_init 0x81 | |
hw id: 0x0000 - pwm id 0x01 | |
bl2_stage_init 0xc1 | |
bl2_stage_init 0x02 | |
L0:00000000 | |
L1:00000703 | |
L2:00008067 |
This file contains 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 TextField( | |
value: String, | |
onValueChange: (String) -> Unit, | |
//... | |
) { | |
var textFieldValueState by remember { mutableStateOf(TextFieldValue(text = value)) } | |
val textFieldValue = textFieldValueState.copy(text = value) |
This file contains 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
androidx.compose.material.TextField( | |
// ... | |
trailingIcon = if (isError) errorIcon else trailingIcon, | |
// ... | |
) |
This file contains 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
Box( | |
modifier = Modifier | |
.requiredHeight(16.dp) | |
.padding(start = 16.dp, end = 12.dp) | |
) { | |
CompositionLocalProvider( | |
LocalTextStyle provides LocalTextStyle.current.copy( | |
fontSize = 12.sp, | |
color = if (isError) MaterialTheme.colors.error else LocalTextStyle.current.color | |
) |
This file contains 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 TextField( | |
//Parameters omitted | |
) { | |
Column( | |
modifier = modifier | |
) { | |
androidx.compose.material.TextField( | |
//Parameters omitted | |
) |
This file contains 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 TextField( | |
value: TextFieldValue, | |
onValueChange: (TextFieldValue) -> Unit, | |
modifier: Modifier = Modifier, | |
enabled: Boolean = true, | |
readOnly: Boolean = false, | |
textStyle: TextStyle = LocalTextStyle.current, | |
label: @Composable (() -> Unit)? = null, | |
placeholder: @Composable (() -> Unit)? = null, |
This file contains 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
@ExperimentalMaterialApi | |
@Composable | |
fun Scaffold( | |
modifier: Modifier = Modifier, | |
scaffoldState: ScaffoldState = rememberScaffoldState(), | |
topBar: @Composable () -> Unit = {}, | |
bottomBar: @Composable () -> Unit = {}, | |
snackbarHost: @Composable (SnackbarHostState) -> Unit = { SnackbarHost(it) }, | |
floatingActionButton: @Composable () -> Unit = {}, | |
floatingActionButtonPosition: FabPosition = FabPosition.End, |
This file contains 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
systemUiController.setNavigationBarColor( | |
color = Color.Transparent, | |
darkIcons = true, | |
navigationBarContrastEnforced = false | |
) |
NewerOlder