Power Of Riverpod, Localizations Without BuildContext

Fred Grott
4 min readMar 19

There are times in the Flutter App when we need to access localizations without the BuildContext such is in app error messages to the user. Let me show you the dart trick to access providers without the Flutter framework BuildContext.

The Dart Method

The dart trick is to use the WidgetsBindingObserver to cause the state to re-build upon…