parent
13f4fe4091
commit
5764404f5c
@ -7327,7 +7327,7 @@ class MaterialLocalizationEn extends GlobalMaterialLocalizations {
|
||||
String get expansionTileCollapsedTapHint => 'Expand for more details';
|
||||
|
||||
@override
|
||||
String get expansionTileExpandedHint => "double tap to collapse'";
|
||||
String get expansionTileExpandedHint => 'double tap to collapse';
|
||||
|
||||
@override
|
||||
String get expansionTileExpandedTapHint => 'Collapse';
|
||||
|
@ -454,7 +454,7 @@
|
||||
"description": "The verb which describes what happens when a collapsed ExpandIcon toggle button is pressed. This is used by TalkBack on Android to replace the default hint on the accessibility action. The verb will be concatenated with a prefix string which describes how to perform the action, which by default is 'double tap to activate'. In the case of US english, this would be 'double tap to expand.' The exact phrasing of the hint will vary based on locale"
|
||||
},
|
||||
|
||||
"expansionTileExpandedHint": "double tap to collapse'",
|
||||
"expansionTileExpandedHint": "double tap to collapse",
|
||||
"@expansionTileExpandedHint": {
|
||||
"description": "The verb which describes the tap action on an expanded ExpansionTile. This is used by VoiceOver on iOS and macOS. This string will be appended to the collapsedHint string which describes the action to be performed on an expanded ExpansionTile. In the case of US english, this would be 'Expanded\n double tap to collapse.' The exact phrasing of the hint will vary based on locale"
|
||||
},
|
||||
|
@ -118,6 +118,14 @@ void main() {
|
||||
expect(localizations.lastPageTooltip, 'Ikhasi lokugcina');
|
||||
});
|
||||
|
||||
testWidgets('translations spot check expansionTileExpandedHint', (WidgetTester tester) async {
|
||||
const Locale locale = Locale.fromSubtags(languageCode: 'en');
|
||||
expect(GlobalMaterialLocalizations.delegate.isSupported(locale), isTrue);
|
||||
final MaterialLocalizations localizations = await GlobalMaterialLocalizations.delegate.load(locale);
|
||||
expect(localizations, isA<MaterialLocalizationEn>());
|
||||
expect(localizations.expansionTileExpandedHint, 'double tap to collapse');
|
||||
});
|
||||
|
||||
testWidgets('spot check selectedRowCount translations', (WidgetTester tester) async {
|
||||
MaterialLocalizations localizations = await GlobalMaterialLocalizations.delegate.load(const Locale('en'));
|
||||
expect(localizations.selectedRowCountTitle(0), 'No items selected');
|
||||
|
Loading…
x
Reference in New Issue
Block a user