1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +00:00

Adds semantic labels to images and modal close button (#56)

* Added semantic labels to images.

* Reverting project file.

* Semantic label for close button.
This commit is contained in:
Andrew Brogdon
2019-03-14 14:45:15 -07:00
committed by Filip Hracek
parent fe72ed957f
commit cf95d2c3a3
4 changed files with 4 additions and 0 deletions

View File

@@ -49,6 +49,7 @@ class VeggieHeadline extends StatelessWidget {
borderRadius: BorderRadius.circular(10.0),
child: Image.asset(
veggie.imageAssetPath,
semanticLabel: 'An icon showing ${veggie.name}',
fit: BoxFit.fitWidth,
),
),