Added Localizations and ran small fixes
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user