title: Detect if iOS13 Dark Mode is enabled from Flutter/Dart
body: <p>I'm writing a Flutter app for Android and iOS which will change its style/theme based on iOS' Dark Mode status.</p>
  
  <p>Is there currently anything like a MediaQuery.isDarkModeEnabled in Flutter?</p>
  
  <p>There is a GitHub issue open <a href="https://github.com/flutter/flutter/issues/33873" rel="noreferrer">here</a> but the Flutter team must be overwhelmed in issues so I can't see this being implemented too soon.</p>
  
  <p>I can use 'traitCollection.userInterfaceStyle' from iOS-specific code channels, but adding platform-specific code for Flutter/Dart apps is not something I'm experienced in. Currently working on this solution!</p>
  
  <p>For example, someone could have a <code>CupertinoPicker</code> with adaptive colors:</p>
  
  <pre><code>CupertinoPicker(
      backgroundColor: isDarkModeEnabled ? Colors.black : Colors.white,
      children: items.map((thisItem) =&gt; Text(thisItem.name)).toList(),
      itemExtent: 32,
      onSelectedItemChanged: (newItem) {
          setState(() =&gt; this.item = items[newItem]);
      }
  )
  </code></pre>