cmdrootaccess / another-flushbar

A flexible widget for user notification. Customize your text, button, duration, animations and much more. For Android devs, it is made to replace Snackbars and Toasts.
https://pub.dev/packages/another_flushbar
MIT License
145 stars 89 forks source link

What Version that i can use, with no error ? #72

Closed MartinDewe closed 2 years ago

MartinDewe commented 2 years ago

Error: Method 'addPostFrameCallback' cannot be called on 'SchedulerBinding?' because it is potentially null.

FAILURE: Build failed with an exception.

==================================

another_flushbar: ^1.10.27 ( I tried using this, but same )

MartinDewe commented 2 years ago

Nahh, Version is ok, but null safty inside instance.

69

raudyagdel commented 2 years ago

Any suggestion to solve this error?

floxydio commented 2 years ago

im still waiting creator to approve my pull request, maybe you can downgrade to 1.10.28 or maybe you can edit flushbar.dart inside your .pub-cache and just add ! inside SchedulerBinding.instance.addPostFrameCallback to SchedulerBinding.instance!.addPostFrameCallback after that just run your project...