这是indexloc提供的服务,不要输入任何密码
Skip to content

[Google3 Bug]: State information not announced for AM/PM in Material DateTimePicker #173302

@evantea

Description

@evantea

Help us understand the severity of this issue

  • causing severe production issues e.g. malfunctions or data loss
  • blocking next binary release
  • blocking a client feature launch within a quarter
  • nice-to-have but does not block a launch within the next quarter

Steps to reproduce

  1. Turn on Voicover
  2. Navigate to the DateTimePicker
  3. Select a date
  4. Navigate to the AM/PM buttons and select one of them

Expected results

VoiceOver announces the AM/PM buttons with state information (e.g. selected, PM, button).

Actual results

VoiceOver announces the AM/PM buttons without state information.

Code sample

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

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(body: Center(child: MyWidget())),
    );
  }
}

class MyWidget extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    WidgetsBinding.instance.addPostFrameCallback((timestamp) {
      showTimePicker(
        context: context,
        initialTime: TimeOfDay.now(),
        orientation: Orientation.portrait,
      );
    });

    return Container(height: 300, width: 100);
  }
}

Screenshots or Video

Image

Logs

No response

Flutter Doctor output

n/a

Metadata

Metadata

Labels

P1High-priority issues at the top of the work lista: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)c: parityWorks on one platform but not anothercustomer: chalk (g3)customer: googleVarious Google teamsf: date/time pickerDate or time picker widgetsf: material designflutter/packages/flutter/material repository.found in release: 3.32Found to occur in 3.32found in release: 3.33Found to occur in 3.33frameworkflutter/packages/flutter repository. See also f: labels.good first issueRelatively approachable for first-time contributorshas 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-designOwned by Design Languages teamtriaged-designTriaged by Design Languages teamwaiting for PR to land (fixed)A fix is in flight

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions