mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Don't use dense dropdown buttons in the Gallery date/time picker demo (#21693)
This commit is contained in:
parent
dd1c22e389
commit
e9e2ca160d
@ -181,15 +181,16 @@ class _DateAndTimePickerDemoState extends State<DateAndTimePickerDemo> {
|
||||
});
|
||||
},
|
||||
),
|
||||
const SizedBox(height: 8.0),
|
||||
InputDecorator(
|
||||
decoration: const InputDecoration(
|
||||
labelText: 'Activity',
|
||||
hintText: 'Choose an activity',
|
||||
contentPadding: EdgeInsets.zero,
|
||||
),
|
||||
isEmpty: _activity == null,
|
||||
child: DropdownButton<String>(
|
||||
value: _activity,
|
||||
isDense: true,
|
||||
onChanged: (String newValue) {
|
||||
setState(() {
|
||||
_activity = newValue;
|
||||
|
||||
@ -58,7 +58,7 @@ void main() {
|
||||
await tester.pumpWidget(MaterialApp(home: DateAndTimePickerDemo()));
|
||||
expect(tester, meetsGuideline(androidTapTargetGuideline));
|
||||
handle.dispose();
|
||||
}, skip: true); // https://github.com/flutter/flutter/issues/21578
|
||||
});
|
||||
|
||||
testWidgets('dialog_demo', (WidgetTester tester) async {
|
||||
final SemanticsHandle handle = tester.ensureSemantics();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user