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

Problem to run the app, because of null check #68

Closed
Arlindo-Pelembe-Jr opened this issue May 20, 2022 · 9 comments
Closed

Problem to run the app, because of null check #68

Arlindo-Pelembe-Jr opened this issue May 20, 2022 · 9 comments

Comments

@Arlindo-Pelembe-Jr
Copy link

Hi, we are facing difficult to iniatialize the because of one line or something relad the bus is:

/C:/src/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' ('/C:/src/flutter/packages/flutter/lib/src/scheduler/binding.dart').
    package:flutter/…/scheduler/binding.dart:1
    Try calling using ?. instead.
    SchedulerBinding.instance.addPostFrameCallback(
    ^^^^^^^^^^^^^^^^^^^^

                            FAILURE: Build failed with an exception.
    
  • Where:
    Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1070

  • What went wrong:
    Execution failed for task ':app:compileFlutterBuildDebug'.

Process 'command 'C:\src\flutter\bin\flutter.bat'' finished with non-zero exit value 1

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

@moNiti
Copy link

moNiti commented May 22, 2022

same here

@lordlamee
Copy link

same issue here

@PlugFox
Copy link

PlugFox commented May 23, 2022

Same

@ghost
Copy link

ghost commented May 24, 2022

I have encountered the same issue, going back to version 1.10.28 fixed it for now.

@saurabhkumar8112
Copy link

I think the author can keep this version as v2 based on semantic versioning practices : https://semver.org/

@singhtaranjeet
Copy link

singhtaranjeet commented May 27, 2022

For now you can use version 1.10.27 but this should be resolved by the author.
I request @cmdrootaccess to have a look at this pr #69

@floxydio
Copy link

floxydio commented May 30, 2022

Already Fixed, But wait for author accept this PR

@raudyagdel
Copy link

Same error, hope PR is accepted soon

@cmdrootaccess
Copy link
Owner

addressed in #81

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

9 participants