Home > Net >  scroll_to_index-2.1.1: Warning: Operand of null-aware operation '!' has type 'Schedul
scroll_to_index-2.1.1: Warning: Operand of null-aware operation '!' has type 'Schedul

Time:06-25

I'm trying to implement integration testing for my flutter app but I'm getting this error when writing something very straightforward.

ERROR: ../../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/scroll_to_index-2.1.1/lib/scroll_to_index.dart:358:57: Warning: Operand of null-aware operation '!' has type 'SchedulerBinding' which excludes null.

Please help me in resolving this error.

CodePudding user response:

This might be because of Flutter SDK upgrade, it you are using Flutter SDK 3.0 then scroll_to_index is still not upgradable or if you are using Flutter 2.0 then you can simply run this command flutter pub upgrade

  • Related