Update semantic label of study back button (#188)

pull/190/head
rami-a 6 years ago committed by GitHub
parent 66efe3b5ce
commit 67bd8a3f1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -229,6 +229,14 @@ class GalleryLocalizations {
desc: r'Represents a link to the Flutter samples github repository.');
}
String get backToGallery {
return Intl.message(r'Back to Gallery',
locale: _localeName,
name: 'backToGallery',
desc:
r'Semantic label for back button to exit a study and return to the gallery.');
}
String get bottomNavigationAccountTab {
return Intl.message(r'Account',
locale: _localeName,

@ -13,6 +13,10 @@
}
}
},
"backToGallery": "Back to Gallery",
"@backToGallery": {
"description": "Semantic label for back button to exit a study and return to the gallery home page."
},
"homeHeaderGallery": "Gallery",
"@homeHeaderGallery": {
"description": "Header title on home screen for Gallery section."

@ -13,6 +13,10 @@
name="aboutDialogDescription"
description="A description about how to view the source code for this app."
>To see the source code for this app, please visit the {value}.</string>
<string
name="backToGallery"
description="Semantic label for back button to exit a study and return to the gallery."
>Back to Gallery</string>
<string
name="homeHeaderGallery"
description="Header title on home screen for Gallery section."

@ -82,6 +82,8 @@ class MessageLookup extends MessageLookupByLibrary {
"aboutDialogDescription": m0,
"aboutFlutterSamplesRepo":
MessageLookupByLibrary.simpleMessage("Flutter samples Github repo"),
"backToGallery":
MessageLookupByLibrary.simpleMessage("Back to Gallery"),
"bottomNavigationAccountTab":
MessageLookupByLibrary.simpleMessage("Account"),
"bottomNavigationAlarmTab":

@ -847,10 +847,13 @@ class _StudyWrapperState extends State<_StudyWrapper> {
),
Align(
alignment: AlignmentDirectional.bottomStart,
child: Semantics(
sortKey: const OrdinalSortKey(0),
child: Padding(
padding: const EdgeInsets.all(16),
child: Padding(
padding: const EdgeInsets.all(16),
child: Semantics(
sortKey: const OrdinalSortKey(0),
label: GalleryLocalizations.of(context).backToGallery,
button: true,
excludeSemantics: true,
child: FloatingActionButton.extended(
focusNode: backButtonFocusNode,
onPressed: () {

Loading…
Cancel
Save