@@ -35,19 +35,28 @@ const Map<String, List<String>> _platformAdaptiveIdentifiers = <String, List<Str
35
35
'share' : < String > ['share' , 'ios_share' ],
36
36
};
37
37
38
- // Rewrite certain Flutter IDs (reserved keywords, numbers) using prefix matching.
38
+ // Rewrite certain Flutter IDs (reserved keywords, numbers) using exact matching.
39
39
const Map <String , String > identifierRewrites = < String , String > {
40
40
'1x' : 'one_x' ,
41
+ '1x_mobiledata' : 'one_x_mobiledata' ,
41
42
'360' : 'threesixty' ,
42
43
'2d' : 'twod' ,
43
44
'3d' : 'threed' ,
45
+ '3d_rotation' : 'threed_rotation' ,
44
46
'3p' : 'three_p' ,
45
47
'6_ft' : 'six_ft' ,
48
+ '6_ft_apart' : 'six_ft_apart' ,
46
49
'3g' : 'three_g' ,
50
+ '3g_mobiledata' : 'three_g_mobiledata' ,
47
51
'4g' : 'four_g' ,
52
+ '4g_mobiledata' : 'four_g_mobiledata' ,
53
+ '4g_plus' : 'four_g_plus' ,
54
+ '4g_plus_mobiledata' : 'four_g_plus_mobiledata' ,
48
55
'5g' : 'five_g' ,
49
56
'30fps' : 'thirty_fps' ,
57
+ '30fps_select' : 'thirty_fps_select' ,
50
58
'60fps' : 'sixty_fps' ,
59
+ '60fps_select' : 'sixty_fps_select' ,
51
60
'1k' : 'one_k' ,
52
61
'2k' : 'two_k' ,
53
62
'3k' : 'three_k' ,
@@ -58,6 +67,15 @@ const Map<String, String> identifierRewrites = <String, String>{
58
67
'8k' : 'eight_k' ,
59
68
'9k' : 'nine_k' ,
60
69
'10k' : 'ten_k' ,
70
+ '1k_plus' : 'one_k_plus' ,
71
+ '2k_plus' : 'two_k_plus' ,
72
+ '3k_plus' : 'three_k_plus' ,
73
+ '4k_plus' : 'four_k_plus' ,
74
+ '5k_plus' : 'five_k_plus' ,
75
+ '6k_plus' : 'six_k_plus' ,
76
+ '7k_plus' : 'seven_k_plus' ,
77
+ '8k_plus' : 'eight_k_plus' ,
78
+ '9k_plus' : 'nine_k_plus' ,
61
79
'1mp' : 'one_mp' ,
62
80
'2mp' : 'two_mp' ,
63
81
'3mp' : 'three_mp' ,
@@ -83,6 +101,8 @@ const Map<String, String> identifierRewrites = <String, String>{
83
101
'23mp' : 'twenty_three_mp' ,
84
102
'24mp' : 'twenty_four_mp' ,
85
103
'class' : 'class_' ,
104
+ 'new' : 'new_' ,
105
+ 'switch' : 'switch_' ,
86
106
'try' : 'try_sms_star' ,
87
107
};
88
108
@@ -346,7 +366,7 @@ class _Icon {
346
366
347
367
flutterId = id;
348
368
for (final MapEntry <String , String > rewritePair in identifierRewrites.entries) {
349
- if (id. startsWith ( rewritePair.key) ) {
369
+ if (shortId == rewritePair.key) {
350
370
flutterId = id.replaceFirst (rewritePair.key, identifierRewrites[rewritePair.key]! );
351
371
}
352
372
}
0 commit comments