Skip to content

Instantly share code, notes, and snippets.

@iranjunior
Last active July 12, 2021 20:27
Show Gist options
  • Save iranjunior/de2c2e6a0774cdec0d40bf7f8f32df5a to your computer and use it in GitHub Desktop.
Save iranjunior/de2c2e6a0774cdec0d40bf7f8f32df5a to your computer and use it in GitHub Desktop.
Usando semanticsLabel para sobrescrever o conteúdo lido pelo leitor de texto
Row(
children: [
Text(
'Seu saldo é de R\$${300.0}',
semanticsLabel: 'Seu saldo é de ${300} reais', // sobrescreve o texto lido pelo leitor de texto
),
Image.network(
'https://upload.wikimedia.org/wikipedia/commons/thumb/a/a4/Mastercard_2019_logo.svg/1280px-Mastercard_2019_logo.svg.png',
semanticLabel: 'mastercard', // sobrescreve o texto lido pelo leitor de texto
),
IconButton(
onPressed: () {},
icon: Icon(Icons.thumb_up),
tooltip: 'curtir', // Insere um texto que pode ser lido, quando o objeto é clicado
),
],
),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment