-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NoSuchMethodError: The method 'hide' was called on null. #4
Comments
Which lib and flutter version are you using? |
I have the same issue on |
i will try to figure out the cause, but it will be very helpful if you can provide specific code . |
if I use separate funcs:
works fine, but if in one function like:
get error |
i think this should be a wrong use case, because we should not dismiss notification immediately when we popup a notification into screen. but this also should be a problem, I only add protect logic for autoDismiss : overlay_support/lib/src/overlay.dart Line 42 in 2aedf6d
thanks for the information, i will fix this in next version. |
Sorry, coming back late. How I use: First, because I used another library before, so here is a wrap function:
Then use it like:
So I think the |
in normally use case, is that you used one of |
So that is weird. I use |
maybe i found the cause, i guess you used |
Thank you for such a fantastic package. I spot an exception:
NoSuchMethodError: The method 'hide' was called on null.
Receiver: null
Tried calling: hide()
#0 NotificationEntry.dismiss (package:overlay_support/src/overlay_entry.dart:22)
#1 showOverlay.. (package:overlay_support/src/overlay.dart:43)
#2 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:988)
#3 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.handleBeginFrame. (package:flutter/src/scheduler/binding.dart:904)
The text was updated successfully, but these errors were encountered: