mirror of
https://github.com/flutter/samples.git
synced 2025-11-11 07:18:15 +00:00
Update semantic label of study back button (#188)
This commit is contained in:
@@ -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(
|
child: Padding(
|
||||||
sortKey: const OrdinalSortKey(0),
|
padding: const EdgeInsets.all(16),
|
||||||
child: Padding(
|
child: Semantics(
|
||||||
padding: const EdgeInsets.all(16),
|
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: () {
|
||||||
|
|||||||
Reference in New Issue
Block a user