another-flushbar icon indicating copy to clipboard operation
another-flushbar copied to clipboard

Problem to run the app, because of null check

Open Arlindo-Pelembe-Jr opened this issue 4 years ago • 9 comments

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

Arlindo-Pelembe-Jr avatar May 20 '22 13:05 Arlindo-Pelembe-Jr

same here

moNiti avatar May 22 '22 11:05 moNiti

same issue here

lordlamee avatar May 23 '22 18:05 lordlamee

Same

PlugFox avatar May 23 '22 22:05 PlugFox

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

ghost avatar May 24 '22 04:05 ghost

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

saurabhkumar8112 avatar May 25 '22 14:05 saurabhkumar8112

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 https://github.com/cmdrootaccess/another-flushbar/pull/69

singhtaranjeet avatar May 27 '22 06:05 singhtaranjeet

Already Fixed, But wait for author accept this PR

floxydio avatar May 30 '22 12:05 floxydio

Same error, hope PR is accepted soon

raudyagdel avatar May 31 '22 23:05 raudyagdel

addressed in https://github.com/cmdrootaccess/another-flushbar/issues/81

cmdrootaccess avatar Apr 29 '23 06:04 cmdrootaccess