Skip to content

InputDecoration -> suffix Semantics.identifier not showing in Maestro.dev when building with Flutter 3.32.0 #169499

@cekrozl1

Description

@cekrozl1

Steps to reproduce

Hello Flutter team,

Yesterday we ran and passed our Maestro.dev tests, then decided to update Flutter from 3.29 to 3.32.
After that, some tests started failing. It turns out that Maestro.dev couldn't find some elements with specific identifiers.
To add a visible identifier for Maestro, we were using the Semantics widget with 'container:true' - see code sample.

While this Widget created a visible identifier for Maestro.dev to find on Flutter 3.29, it seems to no longer be the case with 3.32.

  1. Create the default project with 'flutter create'
  2. Replace the main.dart file by the code below.
  3. Run the app on Android
  4. Launch Maestro.dev
  5. Focus the TextInput and select the Container with Semantics

Expected results

The input decoration with the semantics 'myId' was visible by Maestro.dev in Flutter <= 3.29.

Actual results

The input decoration with the semantics 'myId' is not seen by Maestro.dev.

Our automated tests cannot find the element to click on, and fail:

Image

Code sample

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(
      title: 'Input TextField ',
      theme: ThemeData(colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple)),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: Theme.of(context).colorScheme.inversePrimary,

        title: Text(widget.title),
      ),
      body: Center(
        child: TextField(
          decoration: InputDecoration(
            suffix: Semantics(
              identifier: 'myId',
              container: true,
              child: Container(width: 50, height: 50, color: Colors.amber),
            ),
          ),
        ),
      ),
    );
  }
}

Screenshots or Video

Image

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
flutter doctor -v
[✓] Flutter (Channel stable, 3.32.0, on macOS 15.5 24F74 darwin-arm64, locale en-BE) [1,558ms]
    • Flutter version 3.32.0 on channel stable at /Users/cekrozl1/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision be698c48a6 (8 days ago), 2025-05-19 12:59:14 -0700
    • Engine revision 1881800949
    • Dart version 3.8.0
    • DevTools version 2.45.1

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0-rc4) [3.6s]
    • Android SDK at /Users/cekrozl1/Library/Android/sdk
    • Platform android-35, build-tools 35.0.0-rc4
    • ANDROID_HOME = /Users/cekrozl1/Library/Android/sdk
    • ANDROID_SDK_ROOT = /Users/cekrozl1/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
      This is the JDK bundled with the latest Android Studio installation on this machine.
      To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version OpenJDK Runtime Environment (build 21.0.6+-13368085-b895.109)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.2) [2.9s]
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 16C5032a
    • CocoaPods version 1.16.2

[✓] Chrome - develop for the web [16ms]
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.3) [15ms]
    • 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 21.0.6+-13368085-b895.109)

[✓] VS Code (version 1.100.2) [13ms]
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.110.0

[✓] Connected device (3 available) [7.9s]
    • Pixel 7 (mobile) • 29291FDH200097 • android-arm64  • Android 16 (API 36)
    • macOS (desktop)  • macos          • darwin-arm64   • macOS 15.5 24F74 darwin-arm64
    • Chrome (web)     • chrome         • web-javascript • Google Chrome 137.0.7151.41
    ! Error: Browsing on the local area network for OneSpan iPhone 15. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)
    ! Error: Browsing on the local area network for Abby. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)

[✓] Network resources [450ms]
    • All expected network resources are available.

• No issues found!

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work lista: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)a: text inputEntering text in a text field or keyboard related problemsc: regressionIt was better in the past than it is nowfound in release: 3.32Found to occur in 3.32found in release: 3.33Found to occur in 3.33has reproducible stepsThe issue has been confirmed reproducible and is ready to work onr: 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

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions