-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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)f: focusFocus traversal, gaining or losing focusFocus traversal, gaining or losing focusf: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.r: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-designOwned by Design Languages teamOwned by Design Languages teamtriaged-designTriaged by Design Languages teamTriaged by Design Languages team
Description
STEPS TO REPRODUCE
- Run the program below.
- Tab until the dropdown menu is focused. (Side note: this seems to take an inordinate number of tabs given that there's only two focusable controls on the screen, but that's another bug.)
- Press enter to open the menu.
- Hit down arrow to highlight "Foo.aa".
- Press enter to select "Foo.aa".
EXPECTED RESULTS
Selected value becomes "Foo.aa".
ACTUAL RESULTS
Selected value remains "null".
CODE FOR TEST PROGRAM
import 'package:flutter/material.dart';
void main() {
runApp(const MaterialApp(home: MyHomePage()));
}
enum Foo { aa, bb, cc }
class MyHomePage extends StatefulWidget {
const MyHomePage({super.key});
@override
State<MyHomePage> createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
Foo? _value;
@override
Widget build(BuildContext context) {
return Material(
child: Column(
children: [
Text('Selected value: $_value'),
DropdownMenu<Foo>(
onSelected: (Foo? value) {
setState(() {
_value = value;
});
},
dropdownMenuEntries: Foo.values
.map<DropdownMenuEntry<Foo>>(
(Foo f) => DropdownMenuEntry(value: f, label: '$f'),
)
.toList(),
),
],
),
);
}
}Tom-Carpendale and diegonc
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)f: focusFocus traversal, gaining or losing focusFocus traversal, gaining or losing focusf: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.r: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-designOwned by Design Languages teamOwned by Design Languages teamtriaged-designTriaged by Design Languages teamTriaged by Design Languages team