Don't use dense dropdown buttons in the Gallery date/time picker demo (#21693)

This commit is contained in:
Jonah Williams 2018-09-12 14:15:28 -07:00 committed by GitHub
parent dd1c22e389
commit e9e2ca160d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -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;

View File

@ -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();