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

version 2.2.6 gives Warning: Operand of null-aware operation '??' has type 'Widget' which excludes null. #68

Closed
BunnyBuddy opened this issue Aug 5, 2023 · 1 comment

Comments

@BunnyBuddy
Copy link

BunnyBuddy commented Aug 5, 2023

../../../src/flutter/.pub-cache/hosted/pub.dartlang.org/reorderable_grid_view-2.2.6/lib/src/drag_info.dart:150:12: Warning: Operand of null-aware operation '??' has type 'Widget' which excludes null.
 - 'Widget' is from 'package:flutter/src/widgets/framework.dart' ('../../../src/flutter/packages/flutter/lib/src/widgets/framework.dart').
    return rst ?? Container();

my Flutter Doctor gives,

[✓] Flutter (Channel stable, 2.10.4, on macOS 12.6.6 21G646 darwin-x64, locale en-PK)
  • Flutter version 2.10.4 at /Users/macbookpro/src/flutter
  • Upstream repository https://github.com/flutter/flutter.git
  • Framework revision c860cba910 (1 year, 4 months ago), 2022-03-25 00:23:12 -0500
  • Engine revision 57d3bac3dd
  • Dart version 2.16.2
  • DevTools version 2.9.2

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
  • Android SDK at /Users/macbookpro/Library/Android/sdk
  • Platform android-33, build-tools 33.0.0
  • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
  • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)
  • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
  • Xcode at /Applications/Xcode.app/Contents/Developer
  • CocoaPods version 1.10.2

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

[✓] Android Studio (version 2022.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 11.0.15+0-b2043.56-8887301)

[✓] VS Code (version 1.78.2)
  • VS Code at /Users/macbookpro/Downloads/Visual Studio Code.app/Contents
  • Flutter extension can be installed from:
    🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (2 available)
  • iPhone (mobile) • 00008020-001D0D0A2E88003A • ios            • iOS 16.5.1 20F75
  • Chrome (web)                    • chrome                    • web-javascript • Google Chrome 115.0.5790.170

[✓] HTTP Host Availability
  • All required HTTP hosts are available

• No issues found!
@huhuang03
Copy link
Owner

Thank you for point out this. Fixed in version 2.2.7.

@BunnyBuddy BunnyBuddy changed the title Latest version of this package causes this line to popup everytime I launch the app version 2.2.6 gives Warning: Operand of null-aware operation '??' has type 'Widget' which excludes null. Aug 8, 2023
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