Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MediaQuery issue after upgraded flutter version #256

Closed
haleyhuynh opened this issue Nov 4, 2020 · 1 comment
Closed

MediaQuery issue after upgraded flutter version #256

haleyhuynh opened this issue Nov 4, 2020 · 1 comment

Comments

@haleyhuynh
Copy link

1 warning generated.
    /Users/mobileworld/dev/flutter/.pub-cache/hosted/pub.dartlang.org/extended_image-1.3.0/lib/src/extended_image.dart:785:44: Error: No named parameter with the name 'nullOk'.
        _invertColors = MediaQuery.of(context, nullOk: true)?.invertColors ??
                                               ^^^^^^
    /Users/mobileworld/dev/flutter/packages/flutter/lib/src/widgets/media_query.dart:814:25: Context: Found this candidate, but the arguments don't match.
      static MediaQueryData of(BuildContext context) {
                            ^^

Flutter doctor log

/Users/mobileworld/dev/flutter/bin/flutter doctor --verbose
[✓] Flutter (Channel master, 1.24.0-7.0.pre.88, on Mac OS X 10.15.4 19E266 darwin-x64, locale en-US)
    • Flutter version 1.24.0-7.0.pre.88 at /Users/mobileworld/dev/flutter
    • Framework revision bf94fa072d (6 hours ago), 2020-11-03 16:23:27 -0500
    • Engine revision 59b01e0e5a
    • Dart version 2.12.0 (build 2.12.0-15.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
    • Android SDK at /Users/mobileworld/Library/Android/sdk
    • Platform android-30, build-tools 30.0.1
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.1, Build version 12A7403
    • CocoaPods version 1.9.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      � https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      � https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.50.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.15.1

[✓] Connected device (2 available)
    • Web Server (web) • web-server • web-javascript • Flutter Tools
    • Chrome (web)     • chrome     • web-javascript • Google Chrome 86.0.4240.111

Please help me with this issue.

@zmtzawqlp
Copy link
Member

#251

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants