Flutter Community
Published in

Flutter Community

Flutter in Context

An in-depth look at the BuildContext class

Part of the Decode Flutter Series

Do you know what that context object is? You know what object I mean, the BuildContext object named, context, that’s passed to the build() function all the time. It’s a necessary parameter to a bunch of static functions as well:

build(BuildContext context)
Theme.of(context)
Scaffold.of(context)
MediaQuery.of(context)
Navigator.of(context)

--

--

--

Articles and Stories from the Flutter Community

Recommended from Medium

How to Find an Incredible Job Using Level Up

The holy grail for solving IT problems?

Reducing cost and latency of change for legacy services

Enabling Windows 11’s New Redesigned App Picker

How To Buy Your First NFT Web 3.0 Domain: Ethereum Naming Service

“Why did you decide to study Software Engineering?”

Blog Post 1 INTP 362 — C#

Best web hosting services based in Australia?

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Greg Perry

Greg Perry

Freelance Developer

More from Medium

How I’m using Cubits from the Bloc library to manage my states

Exploring Inherited Widget in Flutter

Flutter state management with Riverpod

Flutter | The Comming future