title: Global snackbar/dialog utils class in flutter
body: <p>I want to create a <code>GlobalMessageUtils</code> class that would open a material snackbar or dialog without having to pass the build context. The idea is that whenever there's any error (no network, bad request, etc) I am able to pop open a snackbar and relay the message to the user.Is there a concept of global <code>context</code>? </p>
  
  <p>I was playing with the idea of making my <code>GlobalMessageUtils</code> class a singleton that takes in a build <code>context</code> and instantiate it at the <code>MaterialApp</code> level, but I haven't gotten this to work. Any body have any ideas? Is this even a good pattern in flutter? If not, how do you guys deal with error handling at a global level?</p>