title: Flutter-How to change the Statusbar text color in Dark Mode?
body: <p>I hope to control the statusbar text color in iOS 13 Dark Mode. I could change the statusbar color by setting the Scaffold's AppBar property "brightness" When not open the Dark Mode.
  Codes just like below:</p>
  
  <pre><code>return Scaffold(
        appBar: AppBar(
          brightness: Brightness.light,  //&lt;--Here!!!
          title: Text(widget.title),
        ),
  ...
  </code></pre>
  
  <p>The effort just like this:</p>
  
  <p><strong>light brightness:</strong>
  <a href="https://i.stack.imgur.com/LXK9d.png" rel="noreferrer"><img src="https://i.stack.imgur.com/LXK9d.png" alt="enter image description here"></a></p>
  
  <p><strong>dark brightness:</strong>
  <a href="https://i.stack.imgur.com/VehC3.png" rel="noreferrer"><img src="https://i.stack.imgur.com/VehC3.png" alt="enter image description here"></a></p>
  
  <p>But when I enable the simulator's <strong>Dark Mode</strong>, the method is not working.
  Open the simulator's "Dark Appearance":
  <a href="https://i.stack.imgur.com/3rEej.png" rel="noreferrer"><img src="https://i.stack.imgur.com/3rEej.png" alt="enter image description here"></a></p>
  
  <p>After opening the "Dark Appearance", the statusbar text color couldn't change any more by the method, it's just in white color(lightness mode).
  <a href="https://i.stack.imgur.com/bSZoz.png" rel="noreferrer"><img src="https://i.stack.imgur.com/bSZoz.png" alt="enter image description here"></a></p>
  
  <p>I have tried those method to change statusbar text color:</p>
  
  <p><strong>Method 1:</strong></p>
  
  <pre><code>void main() {
    SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle.light);
    SystemChrome.setPreferredOrientations([
      DeviceOrientation.portraitUp,
      DeviceOrientation.portraitDown
    ]);
    runApp(MyApp());
  }
  </code></pre>
  
  <p><strong>Method 2:</strong></p>
  
  <pre><code>return AnnotatedRegion&lt;SystemUiOverlayStyle&gt;(
        value: SystemUiOverlayStyle.light,
        child: Material(
          child: Scaffold(
            appBar: AppBar(
              brightness: Brightness.light,
              title: Text(widget.title),
            ),
            body: Center(
  </code></pre>
  
  <p>But neither of them could work.</p>
  
  <p>Hope your help! Thank you.</p>