Greyed tag of model in model selector

This commit is contained in:
JHubi1 2024-06-08 22:12:44 +02:00
parent 0b04e89cc9
commit da95e2d106
No known key found for this signature in database
GPG Key ID: 7BF82570CBBBD050
1 changed files with 16 additions and 4 deletions

View File

@ -135,10 +135,22 @@ void setModel(BuildContext context, Function setState) {
models.length,
(int index) {
return ChoiceChip(
label: Text(
(prefs!.getBool("modelTags") ?? false)
? modelsReal[index]
: models[index]),
label: Row(
mainAxisSize: MainAxisSize.min,
children: [
Text(models[index]),
((prefs!.getBool("modelTags") ??
false) &&
modelsReal[index]
.split(":")
.length >
1)
? Text(
":${modelsReal[index].split(":")[1]}",
style: const TextStyle(
color: Colors.grey))
: const SizedBox.shrink()
]),
selected: usedIndex == index,
avatar: (usedIndex == index)
? null