Skip to content

iOS Voice Control number label shown on parent widget with Semantic label when child widget is actionable #158477

@franciscojma86

Description

@franciscojma86

Steps to reproduce

  1. Create a parent widget, and wrap it in Semantics(label: 'Hello world)
  2. Add a child widget with an action, like TextButton
  3. Activate Voice Control on iOS
  4. Say "Show numbers"
  5. Notice a number is shown on the parent, and it has no actions

Expected results

The parent AND child widgets show a number label, even though the parent has no actions.

Actual results

Only child widget should show a number label, not the parent

Code sample

import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Repro examples'),
        ),
        body: Semantics(
          label: 'Example',
          container: true,
          child: Center(
            child: TextButton(
              child: const Text('Hello World'),
              onPressed: () {},
            ),
          ),
        ),
      ),
    );
  }
}

Screenshots or Video

Screenshots / Video demonstration

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
[Paste your output here]

Metadata

Metadata

Labels

P1High-priority issues at the top of the work lista: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)customer: quake (g3)found in release: 3.24Found to occur in 3.24found in release: 3.27Found to occur in 3.27frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-iosiOS applications specificallyr: fixedIssue is closed as already fixed in a newer versionteam-iosOwned by iOS platform teamtriaged-iosTriaged by iOS platform team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions