buildEditor method
Implementation
@override
Widget buildEditor(BuildContext context) {
return Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
const Text('Theme'),
const SizedBox(height: 8),
ListenableBuilder(
listenable: this,
builder: (context, child) => Wrap(
spacing: 8,
runSpacing: 8,
children: [
for (final theme in themes.entries)
ChoiceChip(
label: Text(theme.key),
selected: theme.value == value,
onSelected: (value) => this.value = theme.value,
)
],
),
),
],
);
}