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

Error with brand new Flutter project #12

Closed
FXschwartz opened this issue Nov 12, 2021 · 2 comments
Closed

Error with brand new Flutter project #12

FXschwartz opened this issue Nov 12, 2021 · 2 comments

Comments

@FXschwartz
Copy link

  1. Ran flutter create
  2. Added package to pubspect.yaml
  3. Ran application
  4. Getting warning

Flutter Doctor output
image

Warning: Operand of null-aware operation '!' has type 'Set<BluetoothDevice>' which excludes null
'Set' is from 'dart:core'.
'BluetoothDevice' is from 'package:flutter_web_bluetooth/src/flutter_web_bluetooth_web.dart' ? _knownDevicesStream.value!

image

@jeroen1602
Copy link
Owner

jeroen1602 commented Nov 12, 2021

This is a bit of a hack so it can work with rxdart version 0.26.0 and 0.27.0.

In the 0.26.0 version that value is null able but in 0.27.0 it isn't so you get the warning.

The library also support 0.26.0 instead of the latest 0.27.0 because the package flutter_blue, a Bluetooth package for Android and iOS, only supports up to 0.26.0 and I want it to be compatible.

But hey warnings are there to be ignored.

@jeroen1602
Copy link
Owner

I've removed RxDart as a dependency all together so it's solved.

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