info: fixed metadata expansion panel list

This commit is contained in:
Thibault Deckers 2020-03-20 09:19:42 +09:00
parent 5771f5e20c
commit b48dc4cd56

View file

@ -65,11 +65,14 @@ class _MetadataSectionSliverState extends State<MetadataSectionSliver> with Auto
final directoriesWithoutTitle = _metadata.where((dir) => dir.name.isEmpty);
final directoriesWithTitle = _metadata.where((dir) => dir.name.isNotEmpty);
return SliverList(
delegate: SliverChildListDelegate.fixed(
delegate: SliverChildListDelegate(
[
const SectionRow('Metadata'),
...directoriesWithoutTitle.map((dir) => InfoRowGroup(dir.tags)),
ExpansionPanelList.radio(
Theme(
data: Theme.of(context).copyWith(cardColor: Colors.grey[900]),
child: ExpansionPanelList.radio(
key: ValueKey(widget.entry.uri),
expandedHeaderPadding: EdgeInsets.zero,
children: directoriesWithTitle.map<ExpansionPanelRadio>((dir) {
return ExpansionPanelRadio(
@ -87,6 +90,7 @@ class _MetadataSectionSliverState extends State<MetadataSectionSliver> with Auto
),
);
}).toList(),
),
)
],
),