title: Flutter create PopupMenuButton with a Text and an Icon instead of single Icon
body: <p>I'm creating a PopUpMenuButton to let the user choose the language of the app and I want to display a Text of the currently selected language as the Button to open the menu.<br />
  So something like this:<br />
  <a href="https://i.stack.imgur.com/dkrpu.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dkrpu.jpg" alt="enter image description here" /></a><br />
  I currently just have an Icon as the button to open the Menu with a tooltip:<br />
  <a href="https://i.stack.imgur.com/TcD8a.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TcD8a.jpg" alt="enter image description here" /></a></p>
  <pre><code>BlocBuilder&lt;LanguageBloc, LanguageState&gt;(builder: (context, state) {
    return PopupMenuButton(
      offset: const Offset(0, 40),
      elevation: 2,
      iconSize: 18,
      icon: Icon(
        Icons.g_translate,
        color: Theme.of(context).primaryColor,
      ),
      itemBuilder: (BuildContext context) =&gt; [
        PopupMenuItem(
            value: &quot;en&quot;,
            child: Row(children: [
              Text(&quot;English&quot;,
                  style: Theme.of(context).textTheme.bodyText2),
              const SizedBox(width: 15),
              Icon(
                Icons.check_circle,
                size: 18,
                color: Colors.black.withOpacity(0.60),
              )
            ])),
        PopupMenuItem(
            value: &quot;de&quot;,
            child: Text(&quot;Deutsch&quot;,
                style: Theme.of(context).textTheme.bodyText2)),
      ],
    );
  })
  </code></pre>
  <p>I could just put a Text infront of the Icon but clicking on the Text wouldn't open the <code>Popupenu</code> so I would need an implementation that allows to open the menu when clicking on the Text or the Icon.</p>