Closed beaurepair closed 2 years ago
I have this problem too. In Flutter 3.0
I removed the question mark in the flushbar.dart class and the error is gone. Hope the team fixes it.
is that with the new version of flutter now the instance cannot come nulla anymore. This is just a warning.
i made a PR that resolve this pull#66
you can use this until the next update
another_flushbar:
git:
url: git@github.com:X-SLAYER/another-flushbar.git
Why can't I use it?
use https like that
another_flushbar:
git:
url: https://github.com/X-SLAYER/another-flushbar.git
This is affecting me too. Creating comment to (hopefully) get notified when this is fixed.
same problem here
I also am seeing this issue.
For what its worth, this doesn't appear to be causing any issues in functionality, though I am seeing the same warning message. I just tested in iOS and android and I am seeing the Flushbars appear as expected.
this is addressed in main branch
Thanks @X-SLAYER and @cmdrootaccess 💪
Package is incompatible with Flutter 3's changes to null-aware operations.
../../Library/Flutter/flutter/.pub-cache/hosted/pub.dartlang.org/another_flushbar-1.10.28/lib/flushbar.dart:350:22: Warning: Operand of null-aware operation '!' has type 'SchedulerBinding' which excludes null. [ ] - 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart' ('../../Library/Flutter/flutter/packages/flutter/lib/src/scheduler/binding.dart'). [ ] SchedulerBinding.instance!.addPostFrameCallback(