From f9cf5a1f3dd1818eb7c4b7100bb98bcde5800897 Mon Sep 17 00:00:00 2001 From: Michael Goderbauer Date: Thu, 14 Dec 2017 15:03:51 -0800 Subject: [PATCH] Add a11y label to modal barrier (#13543) --- packages/flutter/lib/src/cupertino/route.dart | 3 ++ .../lib/src/material/bottom_sheet.dart | 6 +++ packages/flutter/lib/src/material/dialog.dart | 6 +++ .../flutter/lib/src/material/dropdown.dart | 6 +++ .../src/material/material_localizations.dart | 16 +++++- packages/flutter/lib/src/material/page.dart | 3 ++ .../flutter/lib/src/material/popup_menu.dart | 7 ++- .../lib/src/widgets/modal_barrier.dart | 50 +++++++++++++++---- packages/flutter/lib/src/widgets/pages.dart | 4 ++ packages/flutter/lib/src/widgets/routes.dart | 27 +++++++++- .../flutter/test/material/dialog_test.dart | 10 ++-- .../flutter/test/material/dropdown_test.dart | 31 +++++++----- .../test/material/localizations_test.dart | 1 + .../material/modal_bottom_sheet_test.dart | 37 ++++++++------ .../test/material/popup_menu_test.dart | 35 +++++++------ .../test/widgets/app_overrides_test.dart | 3 ++ .../test/widgets/modal_barrier_test.dart | 20 ++++---- .../page_forward_transitions_test.dart | 3 ++ .../lib/src/l10n/localizations.dart | 26 +++++++++- .../lib/src/l10n/material_ar.arb | 3 +- .../lib/src/l10n/material_de.arb | 3 +- .../lib/src/l10n/material_de_CH.arb | 5 +- .../lib/src/l10n/material_en.arb | 5 ++ .../lib/src/l10n/material_en_AU.arb | 3 +- .../lib/src/l10n/material_en_CA.arb | 3 +- .../lib/src/l10n/material_en_GB.arb | 3 +- .../lib/src/l10n/material_en_IE.arb | 3 +- .../lib/src/l10n/material_en_IN.arb | 3 +- .../lib/src/l10n/material_en_SG.arb | 3 +- .../lib/src/l10n/material_en_ZA.arb | 3 +- .../lib/src/l10n/material_es.arb | 3 +- .../lib/src/l10n/material_fa.arb | 3 +- .../lib/src/l10n/material_fr.arb | 3 +- .../lib/src/l10n/material_gsw.arb | 3 +- .../lib/src/l10n/material_he.arb | 3 +- .../lib/src/l10n/material_it.arb | 3 +- .../lib/src/l10n/material_ja.arb | 3 +- .../lib/src/l10n/material_ps.arb | 3 +- .../lib/src/l10n/material_pt.arb | 3 +- .../lib/src/l10n/material_pt_PT.arb | 3 +- .../lib/src/l10n/material_ru.arb | 3 +- .../lib/src/l10n/material_ur.arb | 3 +- .../lib/src/l10n/material_zh.arb | 3 +- .../lib/src/material_localizations.dart | 3 ++ 44 files changed, 279 insertions(+), 94 deletions(-) diff --git a/packages/flutter/lib/src/cupertino/route.dart b/packages/flutter/lib/src/cupertino/route.dart index 312c9d57de..d651a80ccc 100644 --- a/packages/flutter/lib/src/cupertino/route.dart +++ b/packages/flutter/lib/src/cupertino/route.dart @@ -115,6 +115,9 @@ class CupertinoPageRoute extends PageRoute { @override Color get barrierColor => null; + @override + String get barrierLabel => null; + @override bool canTransitionFrom(TransitionRoute previousRoute) { return previousRoute is CupertinoPageRoute; diff --git a/packages/flutter/lib/src/material/bottom_sheet.dart b/packages/flutter/lib/src/material/bottom_sheet.dart index ce8448a5f7..b9c4959e0b 100644 --- a/packages/flutter/lib/src/material/bottom_sheet.dart +++ b/packages/flutter/lib/src/material/bottom_sheet.dart @@ -9,6 +9,7 @@ import 'package:flutter/widgets.dart'; import 'colors.dart'; import 'material.dart'; +import 'material_localizations.dart'; import 'scaffold.dart'; import 'theme.dart'; @@ -209,6 +210,7 @@ class _ModalBottomSheetRoute extends PopupRoute { _ModalBottomSheetRoute({ this.builder, this.theme, + this.barrierLabel, }); final WidgetBuilder builder; @@ -220,6 +222,9 @@ class _ModalBottomSheetRoute extends PopupRoute { @override bool get barrierDismissible => true; + @override + final String barrierLabel; + @override Color get barrierColor => Colors.black54; @@ -282,6 +287,7 @@ Future showModalBottomSheet({ return Navigator.push(context, new _ModalBottomSheetRoute( builder: builder, theme: Theme.of(context, shadowThemeOnly: true), + barrierLabel: MaterialLocalizations.of(context).modalBarrierDismissLabel, )); } diff --git a/packages/flutter/lib/src/material/dialog.dart b/packages/flutter/lib/src/material/dialog.dart index 6aadb566e0..78068c2e97 100644 --- a/packages/flutter/lib/src/material/dialog.dart +++ b/packages/flutter/lib/src/material/dialog.dart @@ -12,6 +12,7 @@ import 'button_bar.dart'; import 'colors.dart'; import 'ink_well.dart'; import 'material.dart'; +import 'material_localizations.dart'; import 'theme.dart'; // Examples can assume: @@ -408,6 +409,7 @@ class _DialogRoute extends PopupRoute { _DialogRoute({ @required this.theme, bool barrierDismissible: true, + this.barrierLabel, @required this.child, }) : assert(barrierDismissible != null), _barrierDismissible = barrierDismissible; @@ -425,6 +427,9 @@ class _DialogRoute extends PopupRoute { @override Color get barrierColor => Colors.black54; + @override + final String barrierLabel; + @override Widget buildPage(BuildContext context, Animation animation, Animation secondaryAnimation) { return new MediaQuery.removePadding( @@ -480,5 +485,6 @@ Future showDialog({ child: child, theme: Theme.of(context, shadowThemeOnly: true), barrierDismissible: barrierDismissible, + barrierLabel: MaterialLocalizations.of(context).modalBarrierDismissLabel, )); } diff --git a/packages/flutter/lib/src/material/dropdown.dart b/packages/flutter/lib/src/material/dropdown.dart index 6945018542..33f07b0bed 100644 --- a/packages/flutter/lib/src/material/dropdown.dart +++ b/packages/flutter/lib/src/material/dropdown.dart @@ -13,6 +13,7 @@ import 'debug.dart'; import 'icons.dart'; import 'ink_well.dart'; import 'material.dart'; +import 'material_localizations.dart'; import 'scrollbar.dart'; import 'shadows.dart'; import 'theme.dart'; @@ -283,6 +284,7 @@ class _DropdownRoute extends PopupRoute<_DropdownRouteResult> { this.elevation: 8, this.theme, @required this.style, + this.barrierLabel, }) : assert(style != null); final List> items; @@ -303,6 +305,9 @@ class _DropdownRoute extends PopupRoute<_DropdownRouteResult> { @override Color get barrierColor => null; + @override + final String barrierLabel; + @override Widget buildPage(BuildContext context, Animation animation, Animation secondaryAnimation) { assert(debugCheckHasDirectionality(context)); @@ -570,6 +575,7 @@ class _DropdownButtonState extends State> with WidgetsBindi elevation: widget.elevation, theme: Theme.of(context, shadowThemeOnly: true), style: _textStyle, + barrierLabel: MaterialLocalizations.of(context).modalBarrierDismissLabel, ); Navigator.push(context, _dropdownRoute).then((_DropdownRouteResult newValue) { diff --git a/packages/flutter/lib/src/material/material_localizations.dart b/packages/flutter/lib/src/material/material_localizations.dart index e20746ba60..924d4afb55 100644 --- a/packages/flutter/lib/src/material/material_localizations.dart +++ b/packages/flutter/lib/src/material/material_localizations.dart @@ -29,8 +29,10 @@ import 'typography.dart'; // you must add it to every other language (all the other *.arb files in that // same directory), including a best guess as to the translation, e.g. // obtained by optimistic use of Google Translate -// (https://translate.google.com/). There is a README file with further -// information in the lib/src/l10n/ directory. +// (https://translate.google.com/). After that you have to re-generate +// lib/src/l10n/localizaions.dart by running +// `dart dev/tools/gen_localizations.dart --overwrite`. There is a README +// file with further information in the lib/src/l10n/ directory. // // 5. If you are a Google employee, you should then also follow the instructions // at go/flutter-l10n. If you're not, don't worry about it. @@ -127,6 +129,13 @@ abstract class MaterialLocalizations { /// [showTimePicker] is set to the minute picker mode. String get timePickerMinuteModeAnnouncement; + /// Label read out by accessibility tools (TalkBack or VocieOver) for a modal + /// barrier to indicate that a tap dismisses the barrier. + /// + /// A modal barrier can for example be found behind a alert or popup to block + /// user interaction with elements behind it. + String get modalBarrierDismissLabel; + /// The format used to lay out the time picker. /// /// The documentation for [TimeOfDayFormat] enum values provides details on @@ -519,6 +528,9 @@ class DefaultMaterialLocalizations implements MaterialLocalizations { @override String get timePickerMinuteModeAnnouncement => 'Select minutes'; + @override + String get modalBarrierDismissLabel => 'Dismiss'; + @override TimeOfDayFormat timeOfDayFormat({ bool alwaysUse24HourFormat: false }) { return alwaysUse24HourFormat diff --git a/packages/flutter/lib/src/material/page.dart b/packages/flutter/lib/src/material/page.dart index c5fddcbbeb..036d4bc2fc 100644 --- a/packages/flutter/lib/src/material/page.dart +++ b/packages/flutter/lib/src/material/page.dart @@ -107,6 +107,9 @@ class MaterialPageRoute extends PageRoute { @override Color get barrierColor => null; + @override + String get barrierLabel => null; + @override bool canTransitionFrom(TransitionRoute previousRoute) { return (previousRoute is MaterialPageRoute || previousRoute is CupertinoPageRoute); diff --git a/packages/flutter/lib/src/material/popup_menu.dart b/packages/flutter/lib/src/material/popup_menu.dart index 23f692b10a..09045745f9 100644 --- a/packages/flutter/lib/src/material/popup_menu.dart +++ b/packages/flutter/lib/src/material/popup_menu.dart @@ -546,7 +546,8 @@ class _PopupMenuRoute extends PopupRoute { this.items, this.initialValue, this.elevation, - this.theme + this.theme, + this.barrierLabel, }); final RelativeRect position; @@ -573,6 +574,9 @@ class _PopupMenuRoute extends PopupRoute { @override Color get barrierColor => null; + @override + final String barrierLabel; + @override Widget buildPage(BuildContext context, Animation animation, Animation secondaryAnimation) { double selectedItemOffset; @@ -670,6 +674,7 @@ Future showMenu({ initialValue: initialValue, elevation: elevation, theme: Theme.of(context, shadowThemeOnly: true), + barrierLabel: MaterialLocalizations.of(context).modalBarrierDismissLabel, )); } diff --git a/packages/flutter/lib/src/widgets/modal_barrier.dart b/packages/flutter/lib/src/widgets/modal_barrier.dart index 36e23e2041..8f780d6cc8 100644 --- a/packages/flutter/lib/src/widgets/modal_barrier.dart +++ b/packages/flutter/lib/src/widgets/modal_barrier.dart @@ -6,6 +6,7 @@ import 'package:flutter/foundation.dart'; import 'basic.dart'; import 'container.dart'; +import 'debug.dart'; import 'framework.dart'; import 'gesture_detector.dart'; import 'navigator.dart'; @@ -30,7 +31,8 @@ class ModalBarrier extends StatelessWidget { const ModalBarrier({ Key key, this.color, - this.dismissible: true + this.dismissible: true, + this.semanticsLabel, }) : super(key: key); /// If non-null, fill the barrier with this color. @@ -49,20 +51,34 @@ class ModalBarrier extends StatelessWidget { /// [ModalBarrier] built by [ModalRoute] pages. final bool dismissible; + /// Semantics label used for the barrier if it is [dismissable]. + /// + /// The semantics label is read out by accessibility tools (e.g. TalkBack + /// on Android and VoiceOver on iOS) when the barrier is focused. + /// + /// See also: + /// + /// * [ModalRoute.barrierLabel], which controls this property for the + /// [ModalBarrier] built by [ModalRoute] pages. + final String semanticsLabel; + @override Widget build(BuildContext context) { + assert(!dismissible || semanticsLabel == null || debugCheckHasDirectionality(context)); + final bool semanticsDismissable = dismissible && defaultTargetPlatform != TargetPlatform.android; return new BlockSemantics( child: new ExcludeSemantics( // On Android, the back button is used to dismiss a modal. - excluding: !dismissible || defaultTargetPlatform == TargetPlatform.android, - child: new Semantics( - container: true, - child: new GestureDetector( - onTapDown: (TapDownDetails details) { - if (dismissible) - Navigator.pop(context); - }, - behavior: HitTestBehavior.opaque, + excluding: !semanticsDismissable, + child: new GestureDetector( + onTapDown: (TapDownDetails details) { + if (dismissible) + Navigator.pop(context); + }, + behavior: HitTestBehavior.opaque, + child: new Semantics( + label: semanticsDismissable ? semanticsLabel : null, + textDirection: semanticsDismissable && semanticsLabel != null ? Directionality.of(context) : null, child: new ConstrainedBox( constraints: const BoxConstraints.expand(), child: color == null ? null : new DecoratedBox( @@ -99,7 +115,8 @@ class AnimatedModalBarrier extends AnimatedWidget { const AnimatedModalBarrier({ Key key, Animation color, - this.dismissible: true + this.dismissible: true, + this.semanticsLabel, }) : super(key: key, listenable: color); /// If non-null, fill the barrier with this color. @@ -118,11 +135,22 @@ class AnimatedModalBarrier extends AnimatedWidget { /// [AnimatedModalBarrier] built by [ModalRoute] pages. final bool dismissible; + /// Semantics label used for the barrier if it is [dismissable]. + /// + /// The semantics label is read out by accessibility tools (e.g. TalkBack + /// on Android and VoiceOver on iOS) when the barrier is focused. + /// See also: + /// + /// * [ModalRoute.barrierLabel], which controls this property for the + /// [ModalBarrier] built by [ModalRoute] pages. + final String semanticsLabel; + @override Widget build(BuildContext context) { return new ModalBarrier( color: color?.value, dismissible: dismissible, + semanticsLabel: semanticsLabel, ); } } diff --git a/packages/flutter/lib/src/widgets/pages.dart b/packages/flutter/lib/src/widgets/pages.dart index 811215f551..cf54eadb5e 100644 --- a/packages/flutter/lib/src/widgets/pages.dart +++ b/packages/flutter/lib/src/widgets/pages.dart @@ -78,6 +78,7 @@ class PageRouteBuilder extends PageRoute { this.opaque: true, this.barrierDismissible: false, this.barrierColor, + this.barrierLabel, this.maintainState: true, }) : assert(pageBuilder != null), assert(transitionsBuilder != null), @@ -108,6 +109,9 @@ class PageRouteBuilder extends PageRoute { @override final Color barrierColor; + @override + final String barrierLabel; + @override final bool maintainState; diff --git a/packages/flutter/lib/src/widgets/routes.dart b/packages/flutter/lib/src/widgets/routes.dart index fc47c43c6d..271b173bc4 100644 --- a/packages/flutter/lib/src/widgets/routes.dart +++ b/packages/flutter/lib/src/widgets/routes.dart @@ -778,6 +778,25 @@ abstract class ModalRoute extends TransitionRoute with LocalHistoryRoute extends TransitionRoute with LocalHistoryRoute>[ + DefaultWidgetsLocalizations.delegate, + DefaultMaterialLocalizations.delegate, + ], + child: new MediaQuery( data: const MediaQueryData( padding: const EdgeInsets.all(50.0), ), diff --git a/packages/flutter/test/material/dropdown_test.dart b/packages/flutter/test/material/dropdown_test.dart index 8d369fdf66..3cf5692a61 100644 --- a/packages/flutter/test/material/dropdown_test.dart +++ b/packages/flutter/test/material/dropdown_test.dart @@ -63,18 +63,25 @@ class TestApp extends StatefulWidget { class _TestAppState extends State { @override Widget build(BuildContext context) { - return new MediaQuery( - data: new MediaQueryData.fromWindow(window), - child: new Directionality( - textDirection: widget.textDirection, - child: new Navigator( - onGenerateRoute: (RouteSettings settings) { - assert(settings.name == '/'); - return new MaterialPageRoute( - settings: settings, - builder: (BuildContext context) => widget.child, - ); - }, + return new Localizations( + locale: const Locale('en', 'US'), + delegates: >[ + DefaultWidgetsLocalizations.delegate, + DefaultMaterialLocalizations.delegate, + ], + child: new MediaQuery( + data: new MediaQueryData.fromWindow(window), + child: new Directionality( + textDirection: widget.textDirection, + child: new Navigator( + onGenerateRoute: (RouteSettings settings) { + assert(settings.name == '/'); + return new MaterialPageRoute( + settings: settings, + builder: (BuildContext context) => widget.child, + ); + }, + ), ), ), ); diff --git a/packages/flutter/test/material/localizations_test.dart b/packages/flutter/test/material/localizations_test.dart index 79973a8552..e68e79ca0c 100644 --- a/packages/flutter/test/material/localizations_test.dart +++ b/packages/flutter/test/material/localizations_test.dart @@ -29,6 +29,7 @@ void main() { expect(localizations.pasteButtonLabel, isNotNull); expect(localizations.selectAllButtonLabel, isNotNull); expect(localizations.viewLicensesButtonLabel, isNotNull); + expect(localizations.modalBarrierDismissLabel, isNotNull); expect(localizations.aboutListTileTitle('FOO'), isNotNull); expect(localizations.aboutListTileTitle('FOO'), contains('FOO')); diff --git a/packages/flutter/test/material/modal_bottom_sheet_test.dart b/packages/flutter/test/material/modal_bottom_sheet_test.dart index e301b57e6a..9b84f41999 100644 --- a/packages/flutter/test/material/modal_bottom_sheet_test.dart +++ b/packages/flutter/test/material/modal_bottom_sheet_test.dart @@ -158,21 +158,28 @@ void main() { BuildContext outerContext; BuildContext innerContext; - await tester.pumpWidget(new Directionality( - textDirection: TextDirection.ltr, - child: new MediaQuery( - data: const MediaQueryData( - padding: const EdgeInsets.all(50.0), - ), - child: new Navigator( - onGenerateRoute: (_) { - return new PageRouteBuilder( - pageBuilder: (BuildContext context, Animation animation, Animation secondaryAnimation) { - outerContext = context; - return new Container(); - }, - ); - }, + await tester.pumpWidget(new Localizations( + locale: const Locale('en', 'US'), + delegates: >[ + DefaultWidgetsLocalizations.delegate, + DefaultMaterialLocalizations.delegate, + ], + child: new Directionality( + textDirection: TextDirection.ltr, + child: new MediaQuery( + data: const MediaQueryData( + padding: const EdgeInsets.all(50.0), + ), + child: new Navigator( + onGenerateRoute: (_) { + return new PageRouteBuilder( + pageBuilder: (BuildContext context, Animation animation, Animation secondaryAnimation) { + outerContext = context; + return new Container(); + }, + ); + }, + ), ), ), )); diff --git a/packages/flutter/test/material/popup_menu_test.dart b/packages/flutter/test/material/popup_menu_test.dart index 19a2dd8ac6..b64df1c4a2 100644 --- a/packages/flutter/test/material/popup_menu_test.dart +++ b/packages/flutter/test/material/popup_menu_test.dart @@ -369,20 +369,27 @@ class TestApp extends StatefulWidget { class _TestAppState extends State { @override Widget build(BuildContext context) { - return new MediaQuery( - data: new MediaQueryData.fromWindow(window), - child: new Directionality( - textDirection: widget.textDirection, - child: new Navigator( - onGenerateRoute: (RouteSettings settings) { - assert(settings.name == '/'); - return new MaterialPageRoute( - settings: settings, - builder: (BuildContext context) => new Material( - child: widget.child, - ), - ); - }, + return new Localizations( + locale: const Locale('en', 'US'), + delegates: >[ + DefaultWidgetsLocalizations.delegate, + DefaultMaterialLocalizations.delegate, + ], + child: new MediaQuery( + data: new MediaQueryData.fromWindow(window), + child: new Directionality( + textDirection: widget.textDirection, + child: new Navigator( + onGenerateRoute: (RouteSettings settings) { + assert(settings.name == '/'); + return new MaterialPageRoute( + settings: settings, + builder: (BuildContext context) => new Material( + child: widget.child, + ), + ); + }, + ), ), ), ); diff --git a/packages/flutter/test/widgets/app_overrides_test.dart b/packages/flutter/test/widgets/app_overrides_test.dart index 6f9d93542d..f0f053e902 100644 --- a/packages/flutter/test/widgets/app_overrides_test.dart +++ b/packages/flutter/test/widgets/app_overrides_test.dart @@ -16,6 +16,9 @@ class TestRoute extends PageRoute { @override Color get barrierColor => null; + @override + String get barrierLabel => null; + @override bool get maintainState => false; diff --git a/packages/flutter/test/widgets/modal_barrier_test.dart b/packages/flutter/test/widgets/modal_barrier_test.dart index 780195cc04..59afd8f583 100644 --- a/packages/flutter/test/widgets/modal_barrier_test.dart +++ b/packages/flutter/test/widgets/modal_barrier_test.dart @@ -99,20 +99,22 @@ void main() { debugDefaultTargetPlatformOverride = TargetPlatform.iOS; final SemanticsTester semantics = new SemanticsTester(tester); - await tester.pumpWidget(const ModalBarrier(dismissible: true)); + await tester.pumpWidget(const Directionality( + textDirection: TextDirection.ltr, + child: const ModalBarrier( + dismissible: true, + semanticsLabel: 'Dismiss', + ), + )); final TestSemantics expectedSemantics = new TestSemantics.root( children: [ new TestSemantics.rootChild( - id: 3, + id: 2, rect: TestSemantics.fullScreen, - children: [ - new TestSemantics( - id: 4, - rect: TestSemantics.fullScreen, - actions: SemanticsAction.tap.index, - ), - ] + actions: SemanticsAction.tap.index, + label: 'Dismiss', + textDirection: TextDirection.ltr, ), ] ); diff --git a/packages/flutter/test/widgets/page_forward_transitions_test.dart b/packages/flutter/test/widgets/page_forward_transitions_test.dart index a40777912c..b65a794112 100644 --- a/packages/flutter/test/widgets/page_forward_transitions_test.dart +++ b/packages/flutter/test/widgets/page_forward_transitions_test.dart @@ -37,6 +37,9 @@ class TestRoute extends PageRoute { @override final Color barrierColor; + @override + String get barrierLabel => null; + @override bool get maintainState => false; diff --git a/packages/flutter_localizations/lib/src/l10n/localizations.dart b/packages/flutter_localizations/lib/src/l10n/localizations.dart index 9f82310f32..854235a68d 100644 --- a/packages/flutter_localizations/lib/src/l10n/localizations.dart +++ b/packages/flutter_localizations/lib/src/l10n/localizations.dart @@ -47,6 +47,7 @@ const Map> localizations = const { 'scriptCategory': r'English-like', @@ -81,6 +82,7 @@ const Map> localizations = const { 'scriptCategory': r'English-like', @@ -102,7 +104,7 @@ const Map> localizations = const > localizations = const { 'scriptCategory': r'English-like', @@ -146,6 +149,7 @@ const Map> localizations = const { 'scriptCategory': r'English-like', @@ -177,6 +181,7 @@ const Map> localizations = const { 'scriptCategory': r'English-like', @@ -208,6 +213,7 @@ const Map> localizations = const { 'scriptCategory': r'English-like', @@ -239,6 +245,7 @@ const Map> localizations = const { 'scriptCategory': r'English-like', @@ -270,6 +277,7 @@ const Map> localizations = const { 'scriptCategory': r'English-like', @@ -301,6 +309,7 @@ const Map> localizations = const { 'scriptCategory': r'English-like', @@ -332,6 +341,7 @@ const Map> localizations = const { 'scriptCategory': r'English-like', @@ -363,6 +373,7 @@ const Map> localizations = const { 'scriptCategory': r'English-like', @@ -397,6 +408,7 @@ const Map> localizations = const { 'scriptCategory': r'English-like', @@ -436,6 +448,7 @@ const Map> localizations = const { 'scriptCategory': r'English-like', @@ -470,6 +483,7 @@ const Map> localizations = const { 'scriptCategory': r'English-like', @@ -505,6 +519,7 @@ const Map> localizations = const { 'scriptCategory': r'English-like', @@ -540,6 +555,7 @@ const Map> localizations = const { 'scriptCategory': r'English-like', @@ -573,6 +589,7 @@ const Map> localizations = const { 'scriptCategory': r'dense', @@ -606,6 +623,7 @@ const Map> localizations = const { 'scriptCategory': r'tall', @@ -636,6 +654,7 @@ const Map> localizations = const { 'scriptCategory': r'English-like', @@ -666,6 +685,7 @@ const Map> localizations = const { 'scriptCategory': r'English-like', @@ -697,6 +717,7 @@ const Map> localizations = const { 'scriptCategory': r'English-like', @@ -733,6 +754,7 @@ const Map> localizations = const { 'scriptCategory': r'tall', @@ -766,6 +788,7 @@ const Map> localizations = const { 'scriptCategory': r'dense', @@ -799,6 +822,7 @@ const Map> localizations = const _nameToValue['timePickerMinuteModeAnnouncement']; + @override + String get modalBarrierDismissLabel => _nameToValue['modalBarrierDismissLabel']; + /// The [TimeOfDayFormat] corresponding to one of the following supported /// patterns: ///