You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.
Hi
Just cloned the latest master and perform build on linux machine (fedora 35) using sdk 2.10.1, and I get the following result:
lib/feature_discovery/feature_discovery.dart:224:35: Error: Method 'addPostFrameCallback' cannot be called on 'SchedulerBinding?'
because it is potentially null.
'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart'
('../flutter/packages/flutter/lib/src/scheduler/binding.dart').
Try calling using ?. instead.
SchedulerBinding.instance.addPostFrameCallback(() {
^^^^^^^^^^^^^^^^^^^^
lib/feature_discovery/feature_discovery.dart:240:37: Error: Method 'addPostFrameCallback' cannot be called on 'SchedulerBinding?'
because it is potentially null.
'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart'
('../flutter/packages/flutter/lib/src/scheduler/binding.dart').
Try calling using ?. instead.
SchedulerBinding.instance.addPostFrameCallback(() {
^^^^^^^^^^^^^^^^^^^^
Target kernel_snapshot failed: Exception
Failed to build bundle.
I can fix the issue by apply the suggested fix in build output text but was thinking if it can cause other issues on run time..
Best Regards
The text was updated successfully, but these errors were encountered:
Hi
Just cloned the latest master and perform build on linux machine (fedora 35) using sdk 2.10.1, and I get the following result:
lib/feature_discovery/feature_discovery.dart:224:35: Error: Method 'addPostFrameCallback' cannot be called on 'SchedulerBinding?'
because it is potentially null.
'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart'
('../flutter/packages/flutter/lib/src/scheduler/binding.dart').
Try calling using ?. instead.
SchedulerBinding.instance.addPostFrameCallback(() {
^^^^^^^^^^^^^^^^^^^^
lib/feature_discovery/feature_discovery.dart:240:37: Error: Method 'addPostFrameCallback' cannot be called on 'SchedulerBinding?'
because it is potentially null.
'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart'
('../flutter/packages/flutter/lib/src/scheduler/binding.dart').
Try calling using ?. instead.
SchedulerBinding.instance.addPostFrameCallback(() {
^^^^^^^^^^^^^^^^^^^^
Target kernel_snapshot failed: Exception
Failed to build bundle.
I can fix the issue by apply the suggested fix in build output text but was thinking if it can cause other issues on run time..
Best Regards
The text was updated successfully, but these errors were encountered: