Fix text direction logic for material icon variants (#71852)
This commit is contained in:
@@ -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('_', ' ');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user