How to overlay a widget on top of MaterialApp navigator in a flutter App?

Viewed 942

Motivation: In case of internet connectivity loss I want to show a widget which informs the user on connectivity issues. I want this widget to show when connectivity status changes, no matter which route is present right now.

The issue is that I can't find a way to overlay this "connectivity loss" widget on top of the main navigator (which comes with the materialApp) class.

What's the best way to implement it?

A similar question was asked here but the solution doesn't seems to be optimal...

0 Answers
Related