Added Localizations and ran small fixes

This commit is contained in:
Arseni
2025-11-25 08:20:09 +03:00
parent 72d8da1fe8
commit fcb5ab4f2c
41 changed files with 444 additions and 233 deletions

View File

@@ -78,14 +78,21 @@ class SelectValueTile<T> extends BaseEditTile<T> {
),
),
Flexible(
child: ListView(
shrinkWrap: true,
children: displayedOptions.map((o) => RadioListTile<T>(
value: o,
groupValue: initial,
title: Text(labelBuilder(o)),
onChanged: isSaving ? null : (v) { if (v != null) onSave(v); },
)).toList(),
child: RadioGroup<T>(
groupValue: initial,
onChanged: (value) {
if (value != null && !isSaving) {
onSave(value);
}
},
child: ListView(
shrinkWrap: true,
children: displayedOptions.map((o) => RadioListTile<T>(
value: o,
title: Text(labelBuilder(o)),
enabled: !isSaving,
)).toList(),
),
),
),
const Divider(),