title: Making an AlertDialog with Dropdownbuttons in Flutter scrollable
body: <p>I have an AlertDialog in Flutter that shows some various filtering &amp; sorting options via dropdownbuttons. However, I want it to be scrollable as soon as there are too many elements to display. Putting a Listview into it results in a grey box for the Dropdownbuttons (see pictures). How can I get this scrollable?</p>
  
  <p><a href="https://i.stack.imgur.com/XAUtW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XAUtW.png" alt="Dialog with Listview"></a></p>
  
  <p><a href="https://i.stack.imgur.com/NqsV7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NqsV7.png" alt="Dialog with Column"></a></p>
  
  <p>Code: </p>
  
  <pre><code>showDialog(
      context: context,
      builder: (BuildContext context){
        return Consumer&lt;VillagerFilter&gt;(
          builder: (context, filter, _child) {
                return AlertDialog(
                  title: Text(localization.filterTitleFilterSearch),
                  content: Container(
                    height: 500,
                    child: Column(
                      crossAxisAlignment: CrossAxisAlignment.start,
                      children: &lt;Widget&gt;[
                        //FIlterbereich
                        Text("Filter:", textAlign: TextAlign.left,),
                        Row(
                          children: &lt;Widget&gt;[
                            Checkbox(value: filter.isFilterObtained(), onChanged: (newIsCaught){filter.setFilterObtained(newIsCaught);}
                            ),
                            Text(localization.filterLivingHere)
                          ],
                        ),
                        Row(
                          children: &lt;Widget&gt;[
                            Checkbox(value: filter.isFilterFavourite(), onChanged: (newIsCaught){filter.setFilterFavourite(newIsCaught);}
                            ),
                            Text(localization.filterFavourite)
                          ],
                        ),
                        //personalityfilter
                        ListTile(
                          title: 
                            Text(localization.filterPersonality + " "),
                            subtitle: DropdownButton&lt;String&gt;(
                                  value: filter.getFilterPersonality(),
                                  onChanged: (String newValue){
                                    filter.setFilterPersonality(newValue);
                                  },
                                  items: [
                                      '-',
                                      localization.filterPersonalityCranky,
                                      localization.filterPersonalityJock,
                                    ]
                                    .map&lt;DropdownMenuItem&lt;String&gt;&gt;((String value){
                                      return DropdownMenuItem&lt;String&gt; (
                                        value: value,
                                        child: Text(value)
                                      );
                                    }).toList()
                                ),
                        ),
                      //Genderfilter
                      ListTile(
                          title: 
                            Text(localization.gender + " "),
                            subtitle: DropdownButton&lt;String&gt;(
                                  value: filter.getFilterGender(),
                                  onChanged: (String newValue){
                                    filter.setFilterGender(newValue);
                                  },
                                  items: [
                                      '-',
                                      localization.male,
                                      localization.female,
                                    ]
                                    .map&lt;DropdownMenuItem&lt;String&gt;&gt;((String value){
                                      return DropdownMenuItem&lt;String&gt; (
                                        value: value,
                                        child: Text(value)
                                      );
                                    }).toList()
                                ),
                        ),
  
                      ],
                    ),
                  ),
                  elevation: 24,
                  backgroundColor: nookDefaultBackgroundColor,
                  shape: RoundedRectangleBorder(
                    borderRadius: BorderRadius.all(Radius.circular(25.0))
                  ),
                  actions: &lt;Widget&gt;[
                    FlatButton(
                      child: Text('Okay'),
                      onPressed: () {
                        Navigator.of(context).pop();
                      },
                    ),
                  ],
                );
          }
        );
      },
    );
  </code></pre>