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

1.10.29 - Compilation Error: missing null operator in flushbar.dart #76

Open
TammiLion opened this issue Jun 8, 2022 · 2 comments
Open

Comments

@TammiLion
Copy link

TammiLion commented Jun 8, 2022

Getting the following compilation error for 1.10.29 (does not occur in 1.10.28). Probably just needs a ? operator.

`../../Flutter/flutter/.pub-cache/hosted/pub.dartlang.org/another_flushbar-1.10.29/lib/flushbar.dart:350:31: Error: Method 'addPostFrameCallback' cannot be called on 'SchedulerBinding?' because it is potentially null.

  • 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart' ('../../Flutter/flutter/packages/flutter/lib/src/scheduler/binding.dart').
    Try calling using ?. instead.
    SchedulerBinding.instance.addPostFrameCallback(
    ^^^^^^^^^^^^^^^^^^^^`
@utkudenis
Copy link

utkudenis commented Jun 8, 2022

it is because of flutter 3. You should update your flutter sdk

@moradiyajay
Copy link

it there another solution except for @utkudenis suggestion because I can't flutter SDK

it is because of flutter 3. You should update your flutter sdk

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

3 participants