title: Flutter suddenly fails to build app after 2 months
body: <p>I've built a Flutter app about 2 months ago, which worked great and got approved on the App Store and Play Store.</p>
  <p>These days I'm trying to add new features to the app, but for some reason Flutter fails to run the app, both on iOS Simulator and Android Emulator.</p>
  <p>I get these error messages:</p>
  <p><strong>Android</strong>:</p>
  <pre><code>Launching lib/main.dart on sdk gphone x86 arm in debug mode...
  lib/main.dart:1
  ../../../../../../Developer/flutter/.pub-cache/hosted/pub.dartlang.org/extended_image-1.5.0/lib/src/extended_image.dart:785:44: Error: No named parameter with the name 'nullOk'.
      _invertColors = MediaQuery.of(context, nullOk: true)?.invertColors ??
                                             ^^^^^^
  ../../../../../../Developer/flutter/packages/flutter/lib/src/widgets/media_query.dart:818:25: Context: Found this candidate, but the arguments don't match.
    static MediaQueryData of(BuildContext context) {
                          ^^
  ../../../../../../Developer/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:1111:7: Info: Struct 'ENUMLOGFONTEX' is empty. Support for empty structs is deprecated and will be removed in the next stable version of Dart. Use Opaque instead.
  class ENUMLOGFONTEX extends Struct {
  
        ^
  ../../../../../../Developer/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:2835:7: Info: Struct 'BLUETOOTH_PIN_INFO' is empty. Support for empty structs is deprecated and will be removed in the next stable version of Dart. Use Opaque instead.
  class BLUETOOTH_PIN_INFO extends Struct {
        ^
  ../../../../../../Developer/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:2960:7: Info: Struct 'EXCEPINFO' is empty. Support for empty structs is deprecated and will be removed in the next stable version of Dart. Use Opaque instead.
  class EXCEPINFO extends Struct {}
        ^
  ../../../../../../Developer/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:2966:7: Info: Struct 'PROPERTYKEY' is empty. Support for empty structs is deprecated and will be removed in the next stable version of Dart. Use Opaque instead.
  class PROPERTYKEY extends Struct {}
        ^
  ../../../../../../Developer/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:2973:7: Info: Struct 'PROPVARIANT' is empty. Support for empty structs is deprecated and will be removed in the next stable version of Dart. Use Opaque instead.
  
  class PROPVARIANT extends Struct {}
        ^
  ../../../../../../Developer/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:2978:7: Info: Struct 'SAFEARRAY' is empty. Support for empty structs is deprecated and will be removed in the next stable version of Dart. Use Opaque instead.
  class SAFEARRAY extends Struct {}
  </code></pre>
  <p><strong>iOS</strong>:</p>
  <pre><code>Launching lib/main.dart on iPhone 11 in debug mode...
  lib/main.dart:1
  Xcode build done.                                           24.8s
  Failed to build iOS app
  Error output from Xcode build:
  ↳
      ** BUILD FAILED **
  Xcode's output:
  ↳
      gRPC-Core-camshfbxfmecuqamkwvicvcxlaiu
      ../../../../../../Developer/flutter/.pub-cache/hosted/pub.dartlang.org/extended_image-1.5.0/lib/src/extended_image.dart:785:44: Error: No named parameter with the name 'nullOk'.
          _invertColors = MediaQuery.of(context, nullOk: true)?.invertColors ??
                                                 ^^^^^^
      ../../../../../../Developer/flutter/packages/flutter/lib/src/widgets/media_query.dart:818:25: Context: Found this candidate, but the arguments don't match.
        static MediaQueryData of(BuildContext context) {
                              ^^
      ../../../../../../Developer/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:1111:7: Info: Struct 'ENUMLOGFONTEX' is empty. Support for empty structs is deprecated and will be removed in the next stable version of Dart. Use Opaque instead.
      class ENUMLOGFONTEX extends Struct {
            ^
      ../../../../../../Developer/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:2835:7: Info: Struct 'BLUETOOTH_PIN_INFO' is empty. Support for empty structs is deprecated and will be removed in the next stable version of Dart. Use Opaque instead.
      class BLUETOOTH_PIN_INFO extends Struct {
            ^
      ../../../../../../Developer/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:2960:7: Info: Struct 'EXCEPINFO' is empty. Support for empty structs is deprecated and will be removed in the next stable version of Dart. Use Opaque instead.
      class EXCEPINFO extends Struct {}
            ^
      ../../../../../../Developer/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:2966:7: Info: Struct 'PROPERTYKEY' is empty. Support for empty structs is deprecated and will be removed in the next stable version of Dart. Use Opaque instead.
      class PROPERTYKEY extends Struct {}
            ^
      ../../../../../../Developer/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:2973:7: Info: Struct 'PROPVARIANT' is empty. Support for empty structs is deprecated and will be removed in the next stable version of Dart. Use Opaque instead.
  </code></pre>
  <p>I've tried to update all dependencies in the <code>pubsapec.yaml</code> file, but it didn't work either.</p>
  <p>Does anyone know why Flutter fails to build the app? I really can't understand why.</p>
  <p>Thank you very much!</p>