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> {
);
},
backgroundColor: const Color(0xFF16F0F0),
tooltip: 'Add to cart',
child: const Icon(
Icons.add_shopping_cart,
color: Colors.black,
......
......@@ -206,6 +206,7 @@ class MaterialDemoDocumentationButton extends StatelessWidget {
Widget build(BuildContext context) {
return IconButton(
icon: const Icon(Icons.library_books),
tooltip: 'API documentation',
onPressed: () => launch(documentationUrl, forceWebView: true)
);
}
......@@ -226,7 +227,10 @@ class CupertinoDemoDocumentationButton extends StatelessWidget {
Widget build(BuildContext context) {
return CupertinoButton(
padding: EdgeInsets.zero,
child: Semantics(
label: 'API documentation',
child: const Icon(CupertinoIcons.book),
),
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