-
Notifications
You must be signed in to change notification settings - Fork 29.5k
Closed
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)Accessibility, e.g. VoiceOver or TalkBack. (aka a11y)a: desktopRunning on desktopRunning on desktopfound in release: 2.8Found to occur in 2.8Found to occur in 2.8found in release: 2.9Found to occur in 2.9Found to occur in 2.9frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-windowsBuilding on or for Windows specificallyBuilding on or for Windows specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer version
Description
Minimal example
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: const MyHomePage(),
);
}
}
class MyHomePage extends StatefulWidget {
/// Create an instance.
const MyHomePage({Key? key}) : super(key: key);
/// Create state for this widget.
@override
_MyHomePageState createState() => _MyHomePageState();
}
/// State for [MyHomePage].
class _MyHomePageState extends State<MyHomePage> {
/// First value.
bool firstValue = false;
/// Second value.
bool secondValue = true;
/// Build a widget.
@override
Widget build(BuildContext context) => Scaffold(
appBar: AppBar(
title: const Text('Checkbox List Tiles'),
),
body: ListView(
children: [
CheckboxListTile(
value: firstValue,
onChanged: (value) => setState(() => firstValue = value == true),
title: const Text('First Value'),
subtitle: Text(firstValue.toString()),
),
CheckboxListTile(
value: secondValue,
onChanged: (value) => setState(() => secondValue = value == true),
title: const Text('Second Value'),
subtitle: Text(secondValue.toString()),
)
],
),
);
}What happens
The checkboxes seem to be unchecked, even when they're clearly not.
This does not happen on the web, where the semantics are perfect.
Output of flutter doctor -v
[] Flutter (Channel master, 2.9.0-1.0.pre.256, on Microsoft Windows [Version 10.0.22000.376], locale en-GB)
ÔÇó Flutter version 2.9.0-1.0.pre.256 at C:\Users\chris\flutter
ÔÇó Upstream repository https://github.com/flutter/flutter.git
ÔÇó Framework revision 45726a8458 (9 hours ago), 2022-01-05 20:00:17 -0500
ÔÇó Engine revision 36eafae59d
ÔÇó Dart version 2.16.0 (build 2.16.0-144.0.dev)
ÔÇó DevTools version 2.9.2
[] Android toolchain - develop for Android devices (Android SDK version 31.0.0-rc2)
ÔÇó Android SDK at C:\Users\chris\AppData\Local\Android\sdk
ÔÇó Platform android-31, build-tools 31.0.0-rc2
ÔÇó Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
ÔÇó Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
ÔÇó All Android licenses accepted.
[] Chrome - develop for the web
ÔÇó Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
[] Visual Studio - develop for Windows (Visual Studio Community 2022 17.0.4)
ÔÇó Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
ÔÇó Visual Studio Community 2022 version 17.0.32014.148
ÔÇó Windows 10 SDK version 10.0.22000.0
[] Android Studio (version 2020.3)
ÔÇó 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.10+0-b96-7249189)
[] VS Code, 64-bit edition (version 1.63.2)
ÔÇó VS Code at C:\Program Files\Microsoft VS Code
ÔÇó Flutter extension version 3.27.0
[] Connected device (3 available)
ÔÇó Windows (desktop) ÔÇó windows ÔÇó windows-x64 ÔÇó Microsoft Windows [Version 10.0.22000.376]
ÔÇó Chrome (web) ÔÇó chrome ÔÇó web-javascript ÔÇó Google Chrome 96.0.4664.110
ÔÇó Edge (web) ÔÇó edge ÔÇó web-javascript ÔÇó Microsoft Edge 96.0.1054.62
[] HTTP Host Availability
ÔÇó All required HTTP hosts are available
ÔÇó No issues found!Thanks for reading.
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)Accessibility, e.g. VoiceOver or TalkBack. (aka a11y)a: desktopRunning on desktopRunning on desktopfound in release: 2.8Found to occur in 2.8Found to occur in 2.8found in release: 2.9Found to occur in 2.9Found to occur in 2.9frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-windowsBuilding on or for Windows specificallyBuilding on or for Windows specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer version
Type
Projects
Status
Done