firebase_image icon indicating copy to clipboard operation
firebase_image copied to clipboard

Warning: Operand of null-aware operation '!' has type 'String' which excludes null.

Open likerberi opened this issue 3 years ago • 7 comments

Expected Behaviour

(e.g. Image cached locally) no warning when I run my own app.

Actual Behaviour

(e.g. App crashed with stack trace provided) just warning,, one time or twice in the console.

Steps to Reproduce the Problem

When I just start an app,,, with real device(android tablet)

Specifications

  • Version: (e.g. 0.1.4) = ^1.0.1
  • Device: (e.g. iPhone 6) = p10 HD
  • Platform: (e.g. Hummingbird) = Android 9
  • Flutter Version: (please enter the output of flutter --version) 2.0.2

Screenshots

210322

If applicable, please add screenshots to help explain your problem.

Additional Context

(optional) Add any other context about the problem here. It just only warning,,, but I cannot confirm a situation when I face a certain problem.. So please check this problem. Thank you.

likerberi avatar Mar 22 '21 06:03 likerberi

Exactly same here: firebase_image-1.0.1/lib/src/cache_manager.dart:29:13: Warning: Operand of null-aware operation '!' has type 'String' which excludes null.

joedonchev avatar Mar 24 '21 02:03 joedonchev

I am facing same error @mattreid1

../../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_image-1.0.1/lib/src/cache_manager.dart:29:13: Warning: Operand of null-aware operation '!' has type 'String' which excludes null.
      join((await getDatabasesPath())!, dbName),
            ^

ycv005 avatar Mar 26 '21 03:03 ycv005

I have get this error!

/C:/Users/kuk/Documents/sdk/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_image-1.0.1/lib/src/cache_manager.dart:29:13: Warning: Operand of null-aware operation '!' has type 'String' which excludes null. join((await getDatabasesPath())!, dbName), ^

xbtasvs avatar Aug 04 '21 15:08 xbtasvs

I get the same error.

스크린샷 2021-10-02 오후 12 57 22

patrick386@iMac flutter_ui % flutter doctor -v [✓] Flutter (Channel master, 2.6.0-12.0.pre.171, on Mac OS X 10.15.7 19H1323 darwin-x64, locale ko-KR) • Flutter version 2.6.0-12.0.pre.171 at /Users/patrick386/Developer/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 18ed542e91 (18 hours ago), 2021-10-01 05:43:04 -0400 • Engine revision 2db4319447 • Dart version 2.15.0 (build 2.15.0-168.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3) • Android SDK at /Users/patrick386/Library/Android/sdk • Platform android-30, build-tools 30.0.3 • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165) • All Android licenses accepted.

[!] Xcode - develop for iOS and macOS (Xcode 12.4) • Xcode at /Applications/Xcode.app/Contents/Developer ! Flutter recommends a minimum Xcode version of 13.0.0. Download the latest version or update via the Mac App Store. • CocoaPods version 1.10.1

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

[✓] Android Studio (version 2020.3) • 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.10+0-b96-7281165)

[✓] VS Code (version 1.57.1) • VS Code at /Users/patrick386/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) • macOS (desktop) • macos • darwin-x64 • Mac OS X 10.15.7 19H1323 darwin-x64 • Chrome (web) • chrome • web-javascript • Google Chrome 94.0.4606.71

! Doctor found issues in 1 category.

Patrick386 avatar Oct 02 '21 03:10 Patrick386

same error

lyf571321556 avatar Mar 31 '22 07:03 lyf571321556

same here :) anyone have solved this warning!

developer-harry avatar Apr 23 '22 00:04 developer-harry

may con cho ngu

wenfann avatar Jul 02 '22 06:07 wenfann