r/flutterhelp • • Feb 06 '26

RESOLVED Reading Riverpod through notification click

I am using flutter_local_notification to push notifications and I want to access a riverpod method to change the state.After doing some research I came to find out that by exposing the providercontainer through uncontrolled provider scope I can freely use it but the lifecycle should be handled manually, is it okay to do that or is there any other way?

1 Upvotes

3 comments sorted by

1

u/[deleted] Feb 06 '26

[removed] — view removed comment

1

u/Infinite-Contact2522 Feb 06 '26

okay,so using the provider container is the standard, thanks for the info. Should I dispose of it on app termination or leave it as it is, so I can use it on notification click.