INNER CODE UNIT · Kotlin

models

1812z/HyperIsland · android/app/src/main/kotlin/io/github/hyperisland/compose/component/AiConfigDialogs.kt:104

                models == null -> Row(
                    modifier = Modifier.fillMaxWidth(),
                    horizontalArrangement = Arrangement.Center,
                ) {
                    CircularProgressIndicator()
                }
                filtered.isEmpty() -> Text(
                    text = stringResource(R.string.ai_model_picker_empty),
                    color = MiuixTheme.colorScheme.onSurfaceVariantSummary,
                )
                else -> Card {
                    LazyColumn(modifier = Modifier.fillMaxWidth().heightIn(max = 360.dp)) {
                        items(filtered, key = { it }) { model ->
                            BasicComponent(
                                title = model,
                                summary = if (model == currentModel) {
                                    stringResource(R.string.selected)
                                } else {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…