Skip to content

[Google3 Bug][A11y]: Slider reads "50, Slider" on initial focus with screenreader #186472

Description

@britnicanalegoogle

b/510222331

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 your Screen reader (voiceover)
  2. Navigate to a slider using voiceover keys
  3. Observe that the screenreader reads "50, slider" upon first reading it if you don't interact with it

Expected results

The screenreader should read the initial value of the slider.

Actual results

The screenreader reads "50, slider" regardless of what the initial value is of the slider.

Code sample

Code sample
[Paste your code here]

import 'package:flutter/material.dart';

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

class MyApp extends StatefulWidget {
  const MyApp({super.key});
  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  // Initialize the value here so it can be updated by setState
  double value = 0.8;
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      // Removed const here
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        body: Center(
          child: Slider(
            min: 0.0,
            max: 1.0,
            value: value,
            onChangeStart: (startValue) {
              print('drag start: $startValue');
            },
            onChangeEnd: (endValue) {
              print('drag end: $endValue');
            },
            onChanged: (newValue) {
              // Update the state so the slider moves visually
              setState(() => value = newValue);
              print('value changed: $newValue');
            },
            label: 'Opacity',
            semanticFormatterCallback: (val) {
              print('semanticFormatterCallback: $val');
              return '${(val * 100).toInt()}%';
            },
          ),
        ),
      ),
    );
  }
}

https://dartpad.dev/?id=f977b5b81c7a8dfefe47bb5bd9cbdaff

Screenshots or Video

Screenshots / Video demonstration
Screen.Recording.2026-05-13.at.4.36.17.PM.mov

[Upload media here]

Image

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
[Paste your output here]

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work lista: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)customer: googleVarious Google teamsf: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onteam-webOwned by Web platform teamtriaged-webTriaged by Web platform team

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions