How to access BuildContext outside of a stateful or stateless widget?

Posted by Jennifer | Updated on

How to access BuildContext outside of a stateful or stateless widget?

You would need to wrap your Scaffold in a Staless or Stateful widget, so you can get the context, e.g.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers