title: Flutter change drawer header image at runtime
body: <p>I'm searching for a way to change the drawer header image when I switch the app theme from inside the app.</p>
  
  <p>I have this code in my project to load an image to my drawer header.
  But there has to be away to change the image just as it is possible to change the colors with <code>Theme.of(context).backgroundColor</code></p>
  
  <pre><code>child: ListView(
    padding: EdgeInsets.zero,
    children: &lt;Widget&gt;[
      UserAccountsDrawerHeader(
      accountName: const Text(_AccountName),
      accountEmail: const Text(_AccountEmail),
      currentAccountPicture: CircleAvatar(
        backgroundColor: Colors.brown,
        child: Text(_AccountAbbr),
      ),
      decoration: BoxDecoration(
      color: Colors.blue,
      image: DecorationImage(
        image: AssetImage('assets/md_drawer_header.jpg'),
        fit: BoxFit.cover,
        ),
      ),
    ),
  ),
  </code></pre>