Unverified Commit 9c080269 authored by xster's avatar xster Committed by GitHub

Add some missing voiceover labels in gallery (#22753)

parent 0e7b1add
...@@ -272,6 +272,7 @@ class _OrderPageState extends State<OrderPage> { ...@@ -272,6 +272,7 @@ class _OrderPageState extends State<OrderPage> {
); );
}, },
backgroundColor: const Color(0xFF16F0F0), backgroundColor: const Color(0xFF16F0F0),
tooltip: 'Add to cart',
child: const Icon( child: const Icon(
Icons.add_shopping_cart, Icons.add_shopping_cart,
color: Colors.black, color: Colors.black,
......
...@@ -206,6 +206,7 @@ class MaterialDemoDocumentationButton extends StatelessWidget { ...@@ -206,6 +206,7 @@ class MaterialDemoDocumentationButton extends StatelessWidget {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return IconButton( return IconButton(
icon: const Icon(Icons.library_books), icon: const Icon(Icons.library_books),
tooltip: 'API documentation',
onPressed: () => launch(documentationUrl, forceWebView: true) onPressed: () => launch(documentationUrl, forceWebView: true)
); );
} }
...@@ -226,7 +227,10 @@ class CupertinoDemoDocumentationButton extends StatelessWidget { ...@@ -226,7 +227,10 @@ class CupertinoDemoDocumentationButton extends StatelessWidget {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return CupertinoButton( return CupertinoButton(
padding: EdgeInsets.zero, padding: EdgeInsets.zero,
child: const Icon(CupertinoIcons.book), child: Semantics(
label: 'API documentation',
child: const Icon(CupertinoIcons.book),
),
onPressed: () => launch(documentationUrl, forceWebView: true) onPressed: () => launch(documentationUrl, forceWebView: true)
); );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment