Flutter - BuildContext Explained For Beginners (+ Bonus: How To Use SnackBar)

Описание к видео Flutter - BuildContext Explained For Beginners (+ Bonus: How To Use SnackBar)

If you're unsure of what the BuildContext is, then this is the video that will clear your doubts.

The concept of BuildContext itself is actually very simple: it lets the widgets (that need it) know where in the widget tree they are placed, so that they can do its function correctly.

But sometimes, you need to pass on a different context than the one in the arguments of the build method. And this video should clear your doubts right up.

If you still don't know what it is at the end of the video, watch it again! And I promise it'll click for you.

It is definitely a must to be able to understand what BuildContext is and how you should use it in your Flutter journey. So, click that play button and drop a like if you understand the BuildContext after this video tutorial!

BuildContext Class Documentation: https://api.flutter.dev/flutter/widge...

00:00 - Intro
00:27 - Showing UI/Code
00:40 - BuildContext Class Documentation
01:22 - Basic Explanation (With Analogy)
01:37 - Summing It Up
02:04 - Explaining It Using a Widget Tree
02:46 - Explaining The Documentation Example
03:14 - Using BuildContext
04:53 - Making The SnackBar Work
07:10 - Like & Subscribe
07:18 - Flutter Mentor Out


#BuildContext #Flutter #SnackBar


Credits:


Drunk Man Image:
https://pngtree.com/so/man-clipart (clipart png from pngtree.com)


OUTRO SONG:
Mitsubachi by Smith The Mister https://smiththemister.bandcamp.com
Smith The Mister https://bit.ly/Smith-The-Mister-YT
Free Download / Stream: http://bit.ly/mitsubachi
Music promoted by Audio Library    • Mitsubachi – Smith The Mister (No Cop...  

Комментарии

Информация по комментариям в разработке