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:
committed by
Filip Hracek
parent
fe72ed957f
commit
cf95d2c3a3
@@ -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,
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user