title: How do I set AppBar action button color in Flutter
body: <p>I'm trying to set the color of my <code>AppBar</code> action icons by using themes but it's just not working for some reason. Here's my minimal code example:</p>
  
  <pre><code>import 'package:flutter/material.dart';
  
  void main() =&gt; runApp(MyApp());
  
  class MyApp extends StatelessWidget {
    @override
    Widget build(BuildContext context) {
      return MaterialApp(
        theme: ThemeData(
          primarySwatch: Colors.blue,
          iconTheme: IconThemeData(color: Colors.purple),
          primaryIconTheme: IconThemeData(color: Colors.red),
          accentIconTheme: IconThemeData(color: Colors.amber)
        ),
      home: Scaffold(
        appBar: AppBar(
          iconTheme: IconThemeData(color: Colors.green),
          actionsIconTheme: IconThemeData(color: Colors.yellow),
          actions: [
            IconButton(icon: Icon(Icons.add))
          ]
        )
      ));
    }
  }
  </code></pre>
  
  <ul>
  <li>None of the <code>iconTheme</code> color values have any effect.</li>
  <li>Settings the opacity in either the <code>MaterialApp.iconTheme</code>, <code>AppBar.iconTheme</code> or <code>AppBar.actionsIconTheme</code> does actually take effect</li>
  <li>Explicitly setting <code>Icon.color</code> does work but I don't think I should have to do that right?</li>
  </ul>
  
  <p>How do I get the <code>IconButton</code> to respect my theme? </p>
  
  <p>Thanks
  Thomas</p>
  
  <p>EDIT: By using a <code>Icon</code> directly instead of an <code>IconButton</code> I'm actually able to get the icon to respect my theme, but how do I make that clickable? According to <a href="https://api.flutter.dev/flutter/material/AppBar/actions.html" rel="noreferrer">https://api.flutter.dev/flutter/material/AppBar/actions.html</a> an <code>IconButton</code> is the most common widget to use in <code>AppBar.actions</code>. Is that incorrect?</p>