Skip to content

Voice Control shows a number on the character count label, which is misleading #156368

Closed

Description

@franciscojma86

Steps to reproduce

  • Create a Textfield with a maxLength to show the label.
  • Turn Voice Control on
  • Say "Show numbers"
  • Character count label has a number, but doesn't have any action

Expected results

Label shouldn't have a number since it's not an actionable element.

Actual results

The label has a number, which is misleading

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 const MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        body: Center(
          child: TextField(
            maxLength: 6,
            obscureText: true,
            decoration: InputDecoration(
              border: OutlineInputBorder(),
              labelText: 'Password',
            ),
          ),
        ),
      ),
    );
  }
}

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

No response

Flutter Doctor output

Doctor output
[Paste your output here]

Activity

  1. franciscojma86 commented on Oct 7, 2024

    @franciscojma86
    ContributorAuthor

    b/368244659

  2. danagbemava-nc commented on Oct 8, 2024

    @danagbemava-nc
    Member

    Reproducible using the code sample provided above.

    flutter doctor -v
    [✓] Flutter (Channel stable, 3.24.3, on macOS 15.0.1 24A348 darwin-arm64, locale en-US)
        • Flutter version 3.24.3 on channel stable at /Users/deanli/dev/stable
        • Upstream repository https://github.com/flutter/flutter.git
        • Framework revision 2663184aa7 (4 weeks ago), 2024-09-11 16:27:48 -0500
        • Engine revision 36335019a8
        • Dart version 3.5.3
        • DevTools version 2.37.3
    
    [!] Flutter (Channel master, 3.26.0-1.0.pre.392, on macOS 15.0.1 24A348 darwin-arm64, locale en-US)
        • Flutter version 3.26.0-1.0.pre.392 on channel master at /Users/deanli/dev/master
        • Upstream repository https://github.com/flutter/flutter.git
        • Framework revision bd718ef93b (4 hours ago), 2024-10-08 01:12:58 -0400
        • Engine revision 5923a8b3e6
        • Dart version 3.6.0 (build 3.6.0-329.0.dev)
        • DevTools version 2.40.0
    
    
  3. changed the title [-]VoiceOver shows a number on the character count label, which is misleading[/-] [+]Voice Control shows a number on the character count label, which is misleading[/+] on Oct 8, 2024
  4. added
    platform-iosiOS applications specifically
    frameworkflutter/packages/flutter repository. See also f: labels.
    a: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)
    has reproducible stepsThe issue has been confirmed reproducible and is ready to work on
    team-accessibilityOwned by Framework Accessibility team (i.e. responsible for accessibility code in flutter/flutter)
    and removed
    in triagePresently being triaged by the triage team
    on Oct 8, 2024
  5. chunhtai commented on Oct 31, 2024

    @chunhtai
    Contributor

    I am suspecting it is probably showing number for some other control, need to look into it

  6. added
    P1High-priority issues at the top of the work list
    on Oct 31, 2024
  7. 3 remaining items

  8. loic-sharma commented on Feb 14, 2025

    @loic-sharma
    Member

    This appears to have the same underlying cause as #158477. For the password field, we generate an iOS accessibility element with the text "X characters remaining". However, we don't provide enough information on this element for iOS to determine whether it can be interacted by the user. Thus, iOS defaults to assuming it is interactable, resulting in the number to show up in Voice Control. I suspect the fix to #158477 will also fix this bug as well.

  9. LouiseHsu commented on Feb 26, 2025

    @LouiseHsu
    Contributor

    Fixed with #163593!

  10. github-actions commented on Mar 13, 2025

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  11. locked as resolved and limited conversation to collaborators on Mar 13, 2025
  12. jmagman commented on Apr 21, 2025

    @jmagman
    Member

    b/368244659#comment5 was reopened, re-opening this to investigate.
    cc @LouiseHsu

  13. unlocked this conversation on Apr 21, 2025
  14. LouiseHsu commented on Apr 21, 2025

    @LouiseHsu
    Contributor

    image
    This looks like a different bug b/c the original repro case in this issue no longer works

    Ill open a separate issue

  15. github-actions commented on May 6, 2025

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  16. locked as resolved and limited conversation to collaborators on May 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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.26Found to occur in 3.26frameworkflutter/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-accessibilityOwned by Framework Accessibility team (i.e. responsible for accessibility code in flutter/flutter)triaged-accessibilityTriaged by Framework Accessibility team

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions