Skip to content

Android TalkBack Item label warning for the whole screen when using a11y scanner #104908

Open

Description

@inevitabile

When I'm testing the simplest Hello World application by TalkBack I receive a warning
"This item may not have a label readable by screen readers" for the whole screen. Btw the Google Console internal testing shows the same issue.

photo_2022-05-29_06-50-39

I've already tried to wrap the Scaffold, and the MaterialApp in Semantics widget. It doesn't help.

Code
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      title: 'Hello',
      debugShowCheckedModeBanner: false,
      home: MainScreen(),
    );
  }
}


class MainScreen extends StatelessWidget {
  const MainScreen({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Hello world'),
      ),
      body: const Center(
        child: Text('Hello world!'),
      ),
    );
  }
}

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  if(RendererBinding.instance != null){
    RendererBinding.instance!.setSemanticsEnabled(true);
  }
  runApp(const MyApp());
}
Logs
[√] Flutter (Channel stable, 2.10.5, on Microsoft Windows [Version 10.0.19044.1706], locale ru-RU)
    • Flutter version 2.10.5 at C:\flutter\flutter_windows_2.8.0-stable\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 5464c5bac7 (6 weeks ago), 2022-04-18 09:55:37 -0700
    • Engine revision 57d3bac3dd
    • Dart version 2.16.2
    • DevTools version 2.9.2

[√] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
    • Android SDK at C:\Users\Futuro\AppData\Local\Android\sdk
    • Platform android-32, build-tools 32.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[X] Visual Studio - develop for Windows
    X Visual Studio not installed; this is necessary for Windows development.
      Download at https://visualstudio.microsoft.com/downloads/.
      Please install the "Desktop development with C++" workload, including all of its default components

[√] Android Studio (version 2021.1)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822)

[√] Connected device (4 available)
    • SM G935F (mobile) • ad06170246004eb408 • android-arm64  • Android 8.0.0 (API 26)
    • Windows (desktop) • windows            • windows-x64    • Microsoft Windows [Version 10.0.19044.1706]
    • Chrome (web)      • chrome             • web-javascript • Google Chrome 102.0.5005.62
    • Edge (web)        • edge               • web-javascript • Microsoft Edge 101.0.1210.47

[√] HTTP Host Availability
    • All required HTTP hosts are available

How can I get rid of that warning? Please, help me solve this problem.

Activity

  1. added
    in triagePresently being triaged by the triage team
    on May 30, 2022
  2. huycozy commented on May 30, 2022

    @huycozy
    Member

    Hi @inevitabile, thanks for filing the issue.
    I can not reproduce this issue on the latest stable and master channels. I also tried on Flutter 2.10.5 as your current Flutter version but still is the same result.

    Can you please follow some of the instructions below:

    • Upgrade your Flutter SDK to the latest (stable 3.0.1 and master 3.1.0-0.0.pre.1008) and try again
    • If the issue still persists after upgrading, try to describe Steps to Reproduce more clearly. It'll be great if you could record a video so that we can investigate this issue further.

    Thanks!

  3. added
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on May 30, 2022
  4. inevitabile commented on May 30, 2022

    @inevitabile
    Author

    Hi @huycozy, thanks for your fast reply.

    I've upgraded the Flutter SDK to the latest (stable 3.0.1) version.

    Logs
    [√] Flutter (Channel stable, 3.0.1, on Microsoft Windows [Version 10.0.19044.1706], locale ru-RU)
        • Flutter version 3.0.1 at C:\flutter\flutter_windows_2.8.0-stable\flutter
        • Upstream repository https://github.com/flutter/flutter.git
        • Framework revision fb57da5f94 (11 days ago), 2022-05-19 15:50:29 -0700
        • Engine revision caaafc5604
        • Dart version 2.17.1
        • DevTools version 2.12.2
    
    [√] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
        • Android SDK at C:\Users\Futuro\AppData\Local\Android\sdk
        • Platform android-32, build-tools 32.0.0
        • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
        • Java version OpenJDK Runtime Environment (build 11.0.12+7-b1504.28-7817840)
        • All Android licenses accepted.
    
    [√] Chrome - develop for the web
        • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
    
    [X] Visual Studio - develop for Windows
        X Visual Studio not installed; this is necessary for Windows development.
          Download at https://visualstudio.microsoft.com/downloads/.
          Please install the "Desktop development with C++" workload, including all of its default components
    
    [√] Android Studio (version 2021.2)
        • Android Studio at C:\Program Files\Android\Android Studio
        • Flutter plugin can be installed from:
           https://plugins.jetbrains.com/plugin/9212-flutter
        • Dart plugin can be installed from:
           https://plugins.jetbrains.com/plugin/6351-dart
        • Java version OpenJDK Runtime Environment (build 11.0.12+7-b1504.28-7817840)
    
    [√] Connected device (4 available)
        • SM G935F (mobile) • ad06170246004eb408 • android-arm64  • Android 8.0.0 (API 26)
        • Windows (desktop) • windows            • windows-x64    • Microsoft Windows [Version 10.0.19044.1706]
        • Chrome (web)      • chrome             • web-javascript • Google Chrome 102.0.5005.62
        • Edge (web)        • edge               • web-javascript • Microsoft Edge 101.0.1210.47
    
    [√] HTTP Host Availability
        • All required HTTP hosts are available
    

    and changed a bit the code ('main' function).

    Code
    import 'package:flutter/material.dart';
    import 'package:flutter/rendering.dart';
    
    class MyApp extends StatelessWidget {
      const MyApp({Key? key}) : super(key: key);
    
      @override
      Widget build(BuildContext context) {
        return const MaterialApp(
          title: 'Hello',
          debugShowCheckedModeBanner: false,
          home: MainScreen(),
        );
      }
    }
    
    
    class MainScreen extends StatelessWidget {
      const MainScreen({Key? key}) : super(key: key);
    
      @override
      Widget build(BuildContext context) {
        return Scaffold(
          appBar: AppBar(
            title: const Text('Hello world'),
          ),
          body: const Center(
            child: Text('Hello world!'),
          ),
        );
      }
    }
    
    void main() async {
      WidgetsFlutterBinding.ensureInitialized();
      RendererBinding.instance.setSemanticsEnabled(true);
      runApp(const MyApp());
    }
    

    It's still the same result.

    20220530_213759.video-converter.com.mp4
  5. removed
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on May 30, 2022
  6. huycozy commented on May 31, 2022

    @huycozy
    Member

    Hi, it seems you have used an external application that captures screen, right? What is that application?
    And did you try that application to capture screen on an Android native app instead?

    Btw, I tried to capture screens using Power+Volumn down buttons but it was not the same as yours.

  7. added
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on May 31, 2022
  8. inevitabile commented on May 31, 2022

    @inevitabile
    Author

    It's TalkBack, Android Accessibility Scanner. As I mentioned it shows an accessibility issue.

  9. removed
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on May 31, 2022
  10. huycozy commented on May 31, 2022

    @huycozy
    Member

    Hi, now I can reproduce this issue. It happens on the latest stable and master channels. And the result is different from Android native app.

    Demo
    Android native Flutter
    flutter doctor -v
    [✓] Flutter (Channel stable, 3.0.1, on macOS 12.2.1 21D62 darwin-x64, locale en-VN)
        • Flutter version 3.0.1 at /Users/huynq/Documents/GitHub/flutter
        • Upstream repository https://github.com/flutter/flutter.git
        • Framework revision fb57da5f94 (8 hours ago), 2022-05-19 15:50:29 -0700
        • Engine revision caaafc5604
        • Dart version 2.17.1
        • DevTools version 2.12.2
    
    [✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
        • Android SDK at /Users/huynq/Library/Android/sdk
        • Platform android-32, build-tools 31.0.0
        • ANDROID_HOME = /Users/huynq/Library/Android/sdk
        • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
        • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
        • All Android licenses accepted.
    
    [✓] Xcode - develop for iOS and macOS (Xcode 13.3)
        • Xcode at /Applications/Xcode.app/Contents/Developer
        • CocoaPods version 1.11.3
    
    [✓] Chrome - develop for the web
        • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
    
    [✓] Android Studio (version 2021.2)
        • Android Studio at /Applications/Android Studio.app/Contents
        • Flutter plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/9212-flutter
        • Dart plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/6351-dart
        • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
    
    [✓] Android Studio (version 4.1)
        • Android Studio at /Users/huynq/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/201.7042882/Android Studio.app/Contents
        • Flutter plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/9212-flutter
        • Dart plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/6351-dart
        • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    
    [✓] Android Studio
        • Android Studio at /Users/huynq/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-1/203.7185775/Android Studio
          Preview.app/Contents
        • Flutter plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/9212-flutter
        • Dart plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/6351-dart
        • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)
    
    [✓] IntelliJ IDEA Community Edition (version 2020.3.3)
        • IntelliJ at /Applications/IntelliJ IDEA CE.app
        • Flutter plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/9212-flutter
        • Dart plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/6351-dart
    
    [✓] VS Code (version 1.67.1)
        • VS Code at /Applications/Visual Studio Code.app/Contents
        • Flutter extension version 3.40.0
    
    [✓] Connected device (3 available)
        • iPhone 13 (mobile) • 2526BC1A-435D-4B08-B99C-44B928F2517B • ios            • com.apple.CoreSimulator.SimRuntime.iOS-15-4 (simulator)
        • macOS (desktop)    • macos                                • darwin-x64     • macOS 12.2.1 21D62 darwin-x64
        • Chrome (web)       • chrome                               • web-javascript • Google Chrome 101.0.4951.64
    
    [✓] HTTP Host Availability
        • All required HTTP hosts are available
    
    • No issues found!
    
    [✓] Flutter (Channel master, 3.1.0-0.0.pre.1013, on macOS 12.2.1 21D62 darwin-x64, locale en-VN)
        • Flutter version 3.1.0-0.0.pre.1013 at /Users/huynq/Documents/GitHub/flutter_master
        • Upstream repository https://github.com/flutter/flutter.git
        • Framework revision 1bf6e0871c (81 minutes ago), 2022-05-30 22:03:11 -0400
        • Engine revision a4d7b6b042
        • Dart version 2.18.0 (build 2.18.0-152.0.dev)
        • DevTools version 2.13.1
    
    [✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
        • Android SDK at /Users/huynq/Library/Android/sdk
        • Platform android-32, build-tools 31.0.0
        • ANDROID_HOME = /Users/huynq/Library/Android/sdk
        • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
        • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
        • All Android licenses accepted.
    
    [✓] Xcode - develop for iOS and macOS (Xcode 13.3)
        • Xcode at /Applications/Xcode.app/Contents/Developer
        • CocoaPods version 1.11.3
    
    [✓] Chrome - develop for the web
        • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
    
    [✓] Android Studio (version 2021.2)
        • Android Studio at /Applications/Android Studio.app/Contents
        • Flutter plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/9212-flutter
        • Dart plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/6351-dart
        • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
    
    [✓] Android Studio (version 4.1)
        • Android Studio at /Users/huynq/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/201.7042882/Android
          Studio.app/Contents
        • Flutter plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/9212-flutter
        • Dart plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/6351-dart
        • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    
    [!] Android Studio
        • Android Studio at /Users/huynq/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-1/203.7185775/Android Studio
          Preview.app/Contents
        • Flutter plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/9212-flutter
        • Dart plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/6351-dart
        ✗ Unable to find bundled Java version.
        • Try updating or re-installing Android Studio.
    
    [✓] IntelliJ IDEA Community Edition (version 2020.3.3)
        • IntelliJ at /Applications/IntelliJ IDEA CE.app
        • Flutter plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/9212-flutter
        • Dart plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/6351-dart
    
    [✓] IntelliJ IDEA Community Edition (version 2022.1.1)
        • IntelliJ at /Users/huynq/Library/Application Support/JetBrains/Toolbox/apps/IDEA-C/ch-0/221.5591.52/IntelliJ IDEA CE.app
        • Flutter plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/9212-flutter
        • Dart plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/6351-dart
    
    [✓] VS Code (version 1.67.2)
        • VS Code at /Applications/Visual Studio Code.app/Contents
        • Flutter extension version 3.40.0
    
    [✓] Connected device (4 available)
        • Pixel 3a (mobile)            • 964AY0WL20                           • android-arm64  • Android 12 (API 32)
        • iPad Pro (9.7-inch) (mobile) • 18AFB65F-7639-4B97-86BD-2A60F1B99BBC • ios            • com.apple.CoreSimulator.SimRuntime.iOS-15-4
          (simulator)
        • macOS (desktop)              • macos                                • darwin-x64     • macOS 12.2.1 21D62 darwin-x64
        • Chrome (web)                 • chrome                               • web-javascript • Google Chrome 101.0.4951.64
    
    [✓] HTTP Host Availability
        • All required HTTP hosts are available
    
    ! Doctor found issues in 1 category.
    
  11. added
    platform-androidAndroid applications specifically
    a: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)
    has reproducible stepsThe issue has been confirmed reproducible and is ready to work on
    and removed
    in triagePresently being triaged by the triage team
    on May 31, 2022
  12. 40 remaining items

  13. Shadabdullah commented on Dec 30, 2024

    @Shadabdullah

    I am getting the same error, please anyone who has published despite these errors is it safe to submit?

  14. lukemmtt commented on Dec 30, 2024

    @lukemmtt
    Contributor

    See my comment above; it's just a warning, shouldn't cause any issues.

  15. gmackall commented on Mar 12, 2025

    @gmackall
    Member

    This is currently on my backlog. Work on Android platform views is my current first priority, but I expect to have time to address this issue when that work is complete.

  16. added
    ⏳Bot is counting down the days until it unassigns the issue
    on Jul 16, 2025
  17. flutter-triage-bot commented on Jul 16, 2025

    @flutter-triage-bot

    This issue is assigned to @gmackall but has had no recent status updates. Please consider unassigning this issue if it is not going to be addressed in the near future. This allows people to have a clearer picture of what work is actually planned. Thanks!

  18. flutter-triage-bot commented on Oct 1, 2025

    @flutter-triage-bot

    This issue was assigned to @gmackall but has had no status updates in a long time. To remove any ambiguity about whether the issue is being worked on, the assignee was removed.

  19. removed
    ⏳Bot is counting down the days until it unassigns the issue
    on Oct 1, 2025
  20. ash2moon commented on Oct 7, 2025

    @ash2moon
    Contributor

    @chunhtai Do you think this work would be related to your changes in exposing semantic info when accessibility is disabled?

  21. chunhtai commented on Oct 7, 2025

    @chunhtai
    Contributor

    yes, making the framework send sychronous responds should fix this issue

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

    P2Important issues not at the top of the work lista: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)customer: castawayengineflutter/engine related. See also e: labels.found in release: 3.0Found to occur in 3.0found in release: 3.1Found to occur in 3.1has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-androidAndroid applications specificallyteam-androidOwned by Android platform teamtriaged-androidTriaged by Android platform team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions