flutter-examples icon indicating copy to clipboard operation
flutter-examples copied to clipboard

Flutter 3.0 update showing warning

Open adar2378 opened this issue 3 years ago • 4 comments

pub-cache/hosted/pub.dartlang.org/syncfusion_flutter_cale ndar-20.1.55/lib/src/calendar/views/calendar_view.dart:6121:22: Warning: Operand of null-aware operation '!' has type 'SchedulerBinding' which excludes null.

  • 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart' ('../../../../flutter_1.17/flutter_17/packages/flutter/lib/src/scheduler/binding.dart'). SchedulerBinding.instance!.addPostFrameCallback((_) {

adar2378 avatar May 16 '22 12:05 adar2378

Same with me.

supratikkoley avatar May 17 '22 13:05 supratikkoley

Did anyone find solution ? I face below issue after upgrading Flutter with 3.0.0

`/C:/Users/Ouranos_PC_2/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/syncfusion_flutter_calendar-20.1.52/lib/src/calendar/sfcalendar.dart:4163:26: Warning: Operand of null-aware operation '?.' has type 'SchedulerBinding' which excludes null.

  • 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart' ('/C:/Users/Ouranos_PC_2/AppData/Local/Android/flutter/packages/flutter/lib/src/scheduler/binding.dart'). SchedulerBinding.instance?.addPostFrameCallback((_) {`

vaidarbhi01 avatar May 18 '22 09:05 vaidarbhi01

Update your syncfusion_flutter_calendar with latest version ^20.1.56 , with the help of this your run time warning will be gone.

vaidarbhi01 avatar May 19 '22 06:05 vaidarbhi01

Hi,

Kindly update the Flutter to 3.0.0 version and syncfusion_flutter_calendar to 20.1.56 for resolving this issue. Please get in touch with us if would you require any further assistance.

Regards, Indumathi R

Indumathi1195R avatar Aug 26 '22 05:08 Indumathi1195R