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