- Introduction
- Basics
- App1 : Elon Musk’s Resume
- App2 : 5K Quotes
- App3 : Calculator
- App4_v1 : Flags Quiz
- Running Apps On Different Devices
- Debbuging
- App5 : Yacht Charter
- App6_v1 : My Books
- Creating responsive and adaptive apps
- App6_v2: My Books
- App7 : Short Vacation
- App8 : Movie Time
- App9 : Schedule Planner
- Shared Preferences
- App10 : Local Weather
- App11 : Discover Tunisia
Flutter BuildContext
Every Flutter widget has
Simply, BuildContext is a handle to the location of a widget in the widget tree.
- What's really mean by "build location" ?
-
when the framework builds a widget object by calling its constructor will correspondingly need to create an element object for that widget object.
-
And this element object represents the build location of that widget.
-
This element object has many useful instance methods.
- What is BuildContext object ?
BuildContext objects are actually Element objects. The BuildContext interface is used to discourage direct manipulation of Element objects.