Why do we pass context in flutter?

Without the BuildContext belonging to the Widget we are in, Flutter has no way of knowing WHERE (in the Widget-tree) to look for the Data we are looking for . Same goes for Navigation, we need to know where we are coming from, to go somewhere new.

Sizin İçin Seçtik  iPhone LTE nasıl açılır?

Leave a Reply

Your email address will not be published. Required fields are marked *