title: Is there a way to add a label to a DropdownButton in flutter?
body: <p>I'm trying to get this kind of design: <a href="https://i.stack.imgur.com/gxj7B.png" rel="nofollow noreferrer">1</a><br> 
  [Label] : [Dropdown List]<br>
  [Label] : [Text field]<br>
  [Label] : [Dropdown List]</p>
  
  <p>I'm already able to implement the dropdown using this code: </p>
  
  <pre><code>  List&lt;String&gt; _locations = ['Cita', 'Junta', 'Proyecto', 'Examen', 'Otro']; // Option 2
    String _selectedLocation; // Option 2
  
    @override
    Widget build(BuildContext context) {
      return Scaffold(
        appBar: AppBar(
          title: Text('Crear Evento'),
        ),
        body: Center(
          child: Container(
            width: double.infinity,
            height: 400,
            padding: EdgeInsets.symmetric(horizontal: 20),
            alignment: Alignment.center,
            child: Column(
              children: &lt;Widget&gt;[
                new Text('Categoría'),
                DropdownButton(
                  hint: Text('Categoría'), // Not necessary for Option 1
                  value: _selectedLocation,
                  onChanged: (newValue) {
                    setState(() {
                      _selectedLocation = newValue;
                    });
                  },
                  items: _locations.map((location) {
                    return DropdownMenuItem(
                      child: new Text(location),
                      value: location,
                    );
                  }).toList(),
                ),
              ],
            ),
          ),
        ),
      );
  </code></pre>
  
  <p>However, the output of this is not in the way I'd like, as the output is in the format: <a href="https://i.stack.imgur.com/ZDDtG.jpg" rel="nofollow noreferrer">2</a><br>
  [label]<br>
  </p>
  
  <p>PS.: I know it's not properly a label since it only is a text, if anyone could help me that'd be great, thanks in advance.</p>