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 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(),
|
||||
),
|
||||
)
|
||||
],
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue