two screens
When I use provider in some screen
and set the value of the provider like that:
print(formId) // I can see formId
context.read<ConnectProvider>().formId = formId;
and then I use
Navigator.restorablePushNamed(
context,
ConnectScreen.routeName,
);
when I access the provider value in the second screen - connectScreen like that
String? formId = context.watch<ConnectProvider>().formId;
and then I print it it's null
You can see the provider in the picture
why it's null after I set the value?
Auth provider uses auth service which uses firebase And I have another Provider that uses auth service, but only if I have user id from Auth provider
Proxy provider
Обсуждают сегодня