Skip to content
This repository was archived by the owner on Jan 5, 2021. It is now read-only.

Commit 43fe787

Browse files
authored
Merge pull request #43 from groig/master
add semanticLabel to some icons for screen readers
2 parents 4450f1c + 53fa5a5 commit 43fe787

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/pages/home_page.dart

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class _HomePageState extends State<HomePage> {
9797
centerTitle: true,
9898
actions: <Widget>[
9999
IconButton(
100-
icon: Icon(networkIcon),
100+
icon: Icon(networkIcon, semanticLabel: "Conexión a Nauta"),
101101
onPressed: () {
102102
Navigator.push(
103103
context,
@@ -110,7 +110,8 @@ class _HomePageState extends State<HomePage> {
110110
},
111111
),
112112
IconButton(
113-
icon: Icon(Icons.account_circle),
113+
icon: Icon(Icons.account_circle,
114+
semanticLabel: "Gestión de cuentas"),
114115
onPressed: () {
115116
Navigator.of(context).push(
116117
MaterialPageRoute(
@@ -120,7 +121,8 @@ class _HomePageState extends State<HomePage> {
120121
},
121122
),
122123
IconButton(
123-
icon: Icon(Icons.more_vert),
124+
icon: Icon(Icons.more_vert,
125+
semanticLabel: "Opciones de configuración"),
124126
onPressed: () {
125127
Navigator.of(context).push(
126128
MaterialPageRoute(

0 commit comments

Comments
 (0)