Problem to run the app, because of null check
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
same here
same issue here
Same
I have encountered the same issue, going back to version 1.10.28 fixed it for now.
I think the author can keep this version as v2 based on semantic versioning practices : https://semver.org/
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
Already Fixed, But wait for author accept this PR
Same error, hope PR is accepted soon
addressed in https://github.com/cmdrootaccess/another-flushbar/issues/81