Fix text direction logic for material icon variants (#71852)

This commit is contained in:
Pierre-Louis
2020-12-08 18:08:05 +01:00
committed by GitHub
parent 2cb652600c
commit a51b8e4309
3 changed files with 225 additions and 214 deletions

View File

@@ -383,8 +383,7 @@ class _Icon {
// e.g. e547
String hexCodepoint;
// TODO(guidezpl): will be fixed in a future PR to be shortId instead of id
String get mirroredInRTL => _iconsMirroredWhenRTL.contains(id) ? ', matchTextDirection: true' : '';
String get mirroredInRTL => _iconsMirroredWhenRTL.contains(shortId) ? ', matchTextDirection: true' : '';
String get name => id.replaceAll('_', ' ');