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

Throwing error stating cannot be called on 'SchedulerBinding?'

Open singhtaranjeet opened this issue 4 years ago • 1 comments

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'). Try calling using ?. instead. SchedulerBinding.instance.addPostFrameCallback( ^^^^^^^^^^^^^^^^^^^^

This error is only occurring when using version 1.10.28 or 1.10.29 but not in 1.10.27 In flushbar.dart line number 350.

singhtaranjeet avatar May 27 '22 06:05 singhtaranjeet

Closing Duplicate of https://github.com/cmdrootaccess/another-flushbar/issues/68

singhtaranjeet avatar May 27 '22 06:05 singhtaranjeet