info: fixed metadata header selection color
This commit is contained in:
parent
6b68004806
commit
033dd84282
1 changed files with 20 additions and 15 deletions
|
@ -81,7 +81,12 @@ class _MetadataSectionSliverState extends State<MetadataSectionSliver> with Auto
|
||||||
return InfoRowGroup(dir.tags);
|
return InfoRowGroup(dir.tags);
|
||||||
}
|
}
|
||||||
final dir = directoriesWithTitle[index - 1 - untitledDirectoryCount];
|
final dir = directoriesWithTitle[index - 1 - untitledDirectoryCount];
|
||||||
return ExpansionTileCard(
|
return Theme(
|
||||||
|
data: Theme.of(context).copyWith(
|
||||||
|
// color used by the `ExpansionTileCard` for selected text and icons
|
||||||
|
accentColor: Colors.white,
|
||||||
|
),
|
||||||
|
child: ExpansionTileCard(
|
||||||
value: dir.name,
|
value: dir.name,
|
||||||
expandedNotifier: _expandedDirectoryNotifier,
|
expandedNotifier: _expandedDirectoryNotifier,
|
||||||
title: _DirectoryTitle(dir.name),
|
title: _DirectoryTitle(dir.name),
|
||||||
|
@ -95,6 +100,7 @@ class _MetadataSectionSliverState extends State<MetadataSectionSliver> with Auto
|
||||||
],
|
],
|
||||||
baseColor: Colors.grey[900],
|
baseColor: Colors.grey[900],
|
||||||
expandedColor: Colors.grey[850],
|
expandedColor: Colors.grey[850],
|
||||||
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
childCount: 1 + _metadata.length,
|
childCount: 1 + _metadata.length,
|
||||||
|
@ -148,7 +154,6 @@ class _DirectoryTitle extends StatelessWidget {
|
||||||
child: Text(
|
child: Text(
|
||||||
name,
|
name,
|
||||||
style: const TextStyle(
|
style: const TextStyle(
|
||||||
color: Colors.white,
|
|
||||||
shadows: [
|
shadows: [
|
||||||
Shadow(
|
Shadow(
|
||||||
color: Colors.black,
|
color: Colors.black,
|
||||||
|
|
Loading…
Reference in a new issue