We are using a dark theme .. but I can't for the life of me figure out how to get the open/close (trailing) icon to be a different color...
I tried setting what I THOUGHT were the right theme elements like the code below -- but -- they are insistent on staying a dark grey .. which on a dark background is not very good to see ..
If anyone has ideas on how to change just the color of the trailing icon .. I would be very very appreciative .. and learn something too!
_returnTile = Theme(
data: Theme.of(context).copyWith(
dividerColor: Colors.yellow,
unselectedWidgetColor: Colors.white,
accentColor: Colors.pink),
child: ExpansionTile(
key: PageStorageKey<ResourceEntry>(resourceEntry),
title: Text(
resourceEntry.resource.displayName,
style: TextStyle(color: Colors.white),
),
// trailing: RotationTransition(
// turns: _iconTurns,
// child: const Icon(Icons.expand_more),
// ),
children:
resourceEntry.children.map<Widget>(_buildResourceTile).toList(),