---
title: "Discussion on \"All I Know about BuildContext\" | Hashnode"
description: "Discussion on \"All I Know about BuildContext\". I’m 100% sure that every single Flutter dev knows BuildContext. We can’t build apps without this object given as an argument of build() methods. Navigator.of(), showDialog(), or a lot of other APIs require BuildContext as an argument.\nBut how do you ..."
url: "https://hashnode.com/posts/all-i-know-about-buildcontext/676e6c2cf9d9d3e659945702"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [All I Know about BuildContext](https://chooyan.hashnode.dev/all-i-know-about-buildcontext?utm_source=hashnode&utm_medium=feed)

I’m 100% sure that every single Flutter dev knows BuildContext. We can’t build apps without this object given as an argument of build() methods. Navigator.of(), showDialog(), or a lot of other APIs require BuildContext as an argument. But how do you ...

Dec 27, 2024 · 10 min read · chooyan.hashnode.dev  
Updated Dec 31, 2024  
Read the article

## Written by

[Tsuyoshi Chujo](https://hashnode.com/@chooyan-eng)

@chooyan-eng · Saitama, Japan

  
[View profile](https://hashnode.com/@chooyan-eng)

Freelance Flutte developer. Developing a Flutter package of cropping images, named "crop\_your\_image".

I am a freelance mobile app developer, mainly working on Flutter. I'm also developing a Flutter package named "crop\_your\_image", which enables Flutter app developers to build cropping images functionality in their app with their own designed UI. https://pub.dev/packages/crop\_your\_image

## Responses 2

Markdown supported · ⌘↵ to post

[Moshe Dicker](https://hashnode.com/@----)

[Jan 17, 2025](https://hashnode.com/posts/all-i-know-about-buildcontext/676e6c2cf9d9d3e659945702/comment/6789f41c600742cd0a204882)

Seems like there should be a lint for using ref over an async gap

[Rahul Vyas](https://hashnode.com/@rahulvyas09)

[Jan 1, 2025](https://hashnode.com/posts/all-i-know-about-buildcontext/676e6c2cf9d9d3e659945702/comment/677582f62dda6e1d2b8ecc0a)

I would like to know one thing that what is the best approach to use globalnavigator key?

[Tsuyoshi Chujo](https://hashnode.com/@chooyan-eng)

[Jan 4, 2025](https://hashnode.com/posts/all-i-know-about-buildcontext/676e6c2cf9d9d3e659945702/comment/677582f62dda6e1d2b8ecc0a#reply-6778f86a304ffe075d664457)

Basically it depends, but if you only need a GlobalKey that can be accessed from anywhere, a simple global variable is enough with few drawbacks.

[Tsuyoshi Chujo](https://hashnode.com/@chooyan-eng)

[Jan 4, 2025](https://hashnode.com/posts/all-i-know-about-buildcontext/676e6c2cf9d9d3e659945702/comment/677582f62dda6e1d2b8ecc0a#reply-6778f8debb9592235d2c5088)

Kindly consider reading this article about GlobalKey as well if you need additional knowledge. [chooyan.hashnode.dev/all-i-know-about-globalkey](https://chooyan.hashnode.dev/all-i-know-about-globalkey)
