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.'); 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 { String get bottomNavigationAccountTab {
return Intl.message(r'Account', return Intl.message(r'Account',
locale: _localeName, 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": "Gallery",
"@homeHeaderGallery": { "@homeHeaderGallery": {
"description": "Header title on home screen for Gallery section." "description": "Header title on home screen for Gallery section."

@ -13,6 +13,10 @@
name="aboutDialogDescription" name="aboutDialogDescription"
description="A description about how to view the source code for this app." 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> >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 <string
name="homeHeaderGallery" name="homeHeaderGallery"
description="Header title on home screen for Gallery section." description="Header title on home screen for Gallery section."

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

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

Loading…
Cancel
Save