info: fixed metadata expansion panel list
This commit is contained in:
parent
5771f5e20c
commit
b48dc4cd56
1 changed files with 23 additions and 19 deletions
|
@ -65,11 +65,14 @@ class _MetadataSectionSliverState extends State<MetadataSectionSliver> with Auto
|
||||||
final directoriesWithoutTitle = _metadata.where((dir) => dir.name.isEmpty);
|
final directoriesWithoutTitle = _metadata.where((dir) => dir.name.isEmpty);
|
||||||
final directoriesWithTitle = _metadata.where((dir) => dir.name.isNotEmpty);
|
final directoriesWithTitle = _metadata.where((dir) => dir.name.isNotEmpty);
|
||||||
return SliverList(
|
return SliverList(
|
||||||
delegate: SliverChildListDelegate.fixed(
|
delegate: SliverChildListDelegate(
|
||||||
[
|
[
|
||||||
const SectionRow('Metadata'),
|
const SectionRow('Metadata'),
|
||||||
...directoriesWithoutTitle.map((dir) => InfoRowGroup(dir.tags)),
|
...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,
|
expandedHeaderPadding: EdgeInsets.zero,
|
||||||
children: directoriesWithTitle.map<ExpansionPanelRadio>((dir) {
|
children: directoriesWithTitle.map<ExpansionPanelRadio>((dir) {
|
||||||
return ExpansionPanelRadio(
|
return ExpansionPanelRadio(
|
||||||
|
@ -87,6 +90,7 @@ class _MetadataSectionSliverState extends State<MetadataSectionSliver> with Auto
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}).toList(),
|
}).toList(),
|
||||||
|
),
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue