Greyed tag of model in model selector
This commit is contained in:
parent
0b04e89cc9
commit
da95e2d106
|
@ -135,10 +135,22 @@ void setModel(BuildContext context, Function setState) {
|
||||||
models.length,
|
models.length,
|
||||||
(int index) {
|
(int index) {
|
||||||
return ChoiceChip(
|
return ChoiceChip(
|
||||||
label: Text(
|
label: Row(
|
||||||
(prefs!.getBool("modelTags") ?? false)
|
mainAxisSize: MainAxisSize.min,
|
||||||
? modelsReal[index]
|
children: [
|
||||||
: models[index]),
|
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,
|
selected: usedIndex == index,
|
||||||
avatar: (usedIndex == index)
|
avatar: (usedIndex == index)
|
||||||
? null
|
? null
|
||||||
|
|
Loading…
Reference in New Issue