Query network stats

This commit is contained in:
BinTianqi
2025-01-19 13:14:23 +08:00
parent 426311ecfe
commit 2dc760dbe3
8 changed files with 646 additions and 21 deletions

View File

@@ -314,15 +314,10 @@ fun MyScaffold(
}
@Composable
fun UpOrDownTextFieldTrailingIconButton(active: Boolean, onClick: () -> Unit) {
fun ExpandExposedTextFieldIcon(active: Boolean) {
val degrees by animateFloatAsState(if(active) 180F else 0F)
IconButton(
onClick = onClick,
modifier = Modifier.clip(RoundedCornerShape(50))
) {
Icon(
imageVector = Icons.Default.ArrowDropDown, contentDescription = null,
modifier = Modifier.rotate(degrees)
)
}
Icon(
imageVector = Icons.Default.ArrowDropDown, contentDescription = null,
modifier = Modifier.rotate(degrees)
)
}