-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Notification Error #24
Comments
Which version of flutter SDK you are using ? |
v1.12.13+hotfix.9 |
Do you have the latest code pull? |
I got this error after reinstalling it. I think the reason I got this error is because I did not set the notification correctly. I couldn't find how to produce Key. |
Please answer below queries first.
|
|
To get information about FCM key please check this issue |
key okey. |
In the latest project codes, the member opens the register, but nothing in the database. |
I didn't get you. Can you explain it what are you trying to say? |
I say create an account |
Please share error console logs |
I solved the problem, I did not realize that there was a problem of rules. |
But I'm still getting this error.
|
Add below provider version in pubspec.yml |
@gulmensedat is it works? |
yes thanks. |
════════ Exception caught by scheduler library ═════════════════════════════════════════════════════
The following assertion was thrown during a scheduler callback:
Tried to listen to a value exposed with provider, from outside of the widget tree.
This is likely caused by an event handler (like a button's onPressed) that called
Provider.of without passing
listen: false
.To fix, write:
Provider.of(context, listen: false);
It is unsupported because may pointlessly rebuild the widget associated to the
event handler, when the widget tree doesn't care about the value.
The context used was: HomePage(dependencies: [_DefaultInheritedProviderScope], state: _HomePageState#074c3)
'package:provider/src/provider.dart':
Failed assertion: line 193 pos 7: 'context.owner.debugBuilding || listen == false || _debugIsInInheritedProviderUpdate'
Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
https://github.com/flutter/flutter/issues/new?template=BUG.md
When the exception was thrown, this was the stack:
#2 Provider.of (package:provider/src/provider.dart:193:7)
#3 _HomePageState._checkNotification. (package:twitterapp2/page/homePage.dart:86:28)
#4 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1102:15)
#5 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1049:9)
#6 SchedulerBinding.scheduleWarmUpFrame. (package:flutter/src/scheduler/binding.dart:850:7)
...
The text was updated successfully, but these errors were encountered: