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
Unhandled Exception: Instance of 'DependencyNotFoundException<PrefsSupport>' when read<>() from StateNotifier #24
Comments
Instead of the constructor, you should initialize your StateNotifier inside its "initState" method |
I found initState in mixin LocatorMixin, but if I don't use LocatorMixin then where should I put initialize function to ? |
If you don't use |
Thanks! |
But why you don't put LocatorMixin into StateNotifier by default ? |
LocatorMixin is specific to provider/Flutter
StateNotifier isn't
…On Fri, Jun 19, 2020, 04:30 tbm98 ***@***.***> wrote:
But why you don't put LocatorMixin into StateNotifier by default ?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#24 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEZ3I3JP2JV4MVACTJVEBMTRXLLWJANCNFSM4OCJGPOQ>
.
|
Thanks
Vào 10:48 Th 6, 19 thg 6 2020 Remi Rousselet <notifications@github.com> đã
viết:
… LocatorMixin is specific to provider/Flutter
StateNotifier isn't
On Fri, Jun 19, 2020, 04:30 tbm98 ***@***.***> wrote:
> But why you don't put LocatorMixin into StateNotifier by default ?
>
> —
> You are receiving this because you modified the open/close state.
> Reply to this email directly, view it on GitHub
> <
#24 (comment)
>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AEZ3I3JP2JV4MVACTJVEBMTRXLLWJANCNFSM4OCJGPOQ
>
> .
>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#24 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMRATJBGMDFEBCTYGAYTFVDRXLNYRANCNFSM4OCJGPOQ>
.
|
void main:
my PrefsSupport:
my state_notifier class
The text was updated successfully, but these errors were encountered: