– Context is a link to the location of a widget in the tree structure of widgets . – Context can belong to only one widget. – If a widget has child widgets, then the context of the parent widget becomes the parent context for the contexts of direct child elements.
Read moreIs context available in initState Flutter?
The initstate() is called before the state loads its dependencies. And for that reason no context is available .20 Tem 2021
Read more