Flutter Tutorial - Inherited Widget Explained In Detail

  Рет қаралды 20,363

HeyFlutter․com

HeyFlutter․com

Күн бұрын

Пікірлер: 51
@HeyFlutter
@HeyFlutter 2 жыл бұрын
This might help you :) 👉 12 Week Flutter Training from Newbie to Expert: heyflutter.com Source Code: github.com/JohannesMilke/inherited_widget_example BuildContext Tutorial: kzbin.info/www/bejne/d33QlWmggdaIgZo Riverpod State Management Tutorial: kzbin.info/www/bejne/bnmWk6qurdGUars Provider State Management Tutorial: kzbin.info/www/bejne/oX-cipmaacuoZpY Riverpod Calculator Tutorial: kzbin.info/www/bejne/bJrWiGVsmZ6Hn6c Tinder App Tutorial: kzbin.info/www/bejne/rGLaoJmepNqneM0 Shop UI Tutorial: kzbin.info/www/bejne/eYK9o2B9jcqSlbs Todo App Tutorial: kzbin.info/www/bejne/oX-cipmaacuoZpY
@chimurawill
@chimurawill 2 жыл бұрын
I've been struggling to find an in-depth approach of inherited widget for days. Thank you so much for this video, awesome job!
@HeyFlutter
@HeyFlutter 2 жыл бұрын
You are welcome, Willian Chimura 😊
@Ayush-bk3rv
@Ayush-bk3rv 2 жыл бұрын
Any doubt in flutter, you can count on this guy. Thank You
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Thanks, for your support, @user-im9wp8eo9s! 🙂
@moulikgupta6979
@moulikgupta6979 2 жыл бұрын
oh my god you cant even imagine how much you helped me here....
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Glad it was helpful, @moulikgupta6979 😀
@christianmarpert3844
@christianmarpert3844 4 жыл бұрын
Awesome! Guess now I got what's going on under the hood of all these state management solutions. Although I keep going with one of them for simplicity reasons. Anyway, great explanation! Highly appreciated your contents. Keep goin and merry Xmas!
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Thanks! Merry Christmas 🎄 Yep totally fine to use Riverpod, Provider, etc. 👍 Riverpod State Management Tutorial: kzbin.info/www/bejne/bnmWk6qurdGUars Provider State Management Tutorial: kzbin.info/www/bejne/oX-cipmaacuoZpY
@christianmarpert3844
@christianmarpert3844 2 жыл бұрын
@@HeyFlutter meanwhile I switched to bloc + get_it ;) just trying out different stuff
@anchorrealtynm7897
@anchorrealtynm7897 2 жыл бұрын
Thank you for this, head and shoulders above other Inherited widget info.
@HeyFlutter
@HeyFlutter 2 жыл бұрын
You are welcome, AnchorRealtyNM!
@elmagnificent8550
@elmagnificent8550 2 жыл бұрын
good. bought ur sponsorship!
@zledwon
@zledwon 9 ай бұрын
Very well explained. Thanks! As a newcomer I have to say - clearly Flutter has big problem with state management. I know there are 3rd party packages, but c'mon.. there should be a better, clean way.
@HeyFlutter
@HeyFlutter 9 ай бұрын
Right, @zledwon! 🙂
@fgreau
@fgreau Жыл бұрын
Thanks for the explaination ! I'll admit that you writing "stfu" to use autocompletion to write StatefulWidget made be chuckle xD
@HeyFlutter
@HeyFlutter Жыл бұрын
Thank you, @fgreau! 🙂
@dilshan3372
@dilshan3372 4 жыл бұрын
Best explanation about inherited widget🤘👌
@AnthonyDev
@AnthonyDev 2 жыл бұрын
Great explanation. In depth. Thanks.
@haiderjaafer8164
@haiderjaafer8164 4 жыл бұрын
Absolutely brilliant keep going forward
@fethisert5527
@fethisert5527 2 жыл бұрын
Thanks bro it's very helpful to understand inheritedWidet
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Glad I could be of help, Thank you fethi sert! 😊
@fethisert5527
@fethisert5527 2 жыл бұрын
@@HeyFlutter I want to ask something what is deference between initilazing variable in InitState() and intiliazing normaly like under the Class
@fethisert5527
@fethisert5527 2 жыл бұрын
class Number extends StlsW{ int x = GetNumber() } //or late int x; initState(){ x = GetNumber(); }
@fethisert5527
@fethisert5527 2 жыл бұрын
@@HeyFlutter Yes you are very good but fast : )
@FelexAndVirginia
@FelexAndVirginia 3 жыл бұрын
First of all thank you for this content bro here is question 06:30 when i add final String name; as varaiable on dependonMyinheritedWigetExactype() will i also change it to dependonMyinheritedWigetExactype().name ? 💁‍♀
@KostasOreopoulos
@KostasOreopoulos 10 ай бұрын
As far as I can tell, we are storing the state inside the InheritedWidget twice. Once from the Stateful widget, and one inside the InheritedWidget itself. The only time we use the state inside the InheritedWidget, is when we check between current and previous state inside updateShouldNotify. So what we do is keep two states in sync. When the stateful widget updates, it creates a new InheritedWidget which will trigger an updateshouldNotify, which will trigger a UI update. Is that correct?
@HeyFlutter
@HeyFlutter 10 ай бұрын
Thank You @KostasOreopoulos! Follow this link: semaphoreci.com/blog/state-management-flutter-inheritedwidget-provider-state-management#:~:text=InheritedWidget%20is%20a%20tool%20for,the%20use%20of%20the%20context. I hope you will get your answer 🙂
@hemantchauhan6437
@hemantchauhan6437 Жыл бұрын
Thank you✨️🙏
@HeyFlutter
@HeyFlutter Жыл бұрын
You are welcome, @hemantchauhan6437 😊
@insightsOfJ
@insightsOfJ 2 жыл бұрын
Thank you for the good video. As a note: so if I am correct, a drawback of InheritedWidget is, if your InheritedWidget is not above your MaterialApp and you push a page, then the children widgets will not be able to access the state variables of the InheritedWidget anymore. But if you put it above the MaterialApp then all ancestors and children will be able to access the state variables in the InheritedWidget. So how does one go about fixing the problem when a page is pushed and the InheritedWidget's state becomes inaccessible, because I am guessing this is due to the Navigator?
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Thank You J Richards! Follow this link: medium.flutterdevs.com/inherited-widget-in-flutter-604b0f009297#:~:text=In%20flutter%2C%20the%20inherited%20widget,references%20when%20a%20change%20occurs. I hope you will get your answer 🙂
@insightsOfJ
@insightsOfJ 2 жыл бұрын
@@HeyFlutter thank you Johannes!
@РоманСергеевич-э6ю
@РоманСергеевич-э6ю 2 жыл бұрын
thx! great video!
@HeyFlutter
@HeyFlutter 2 жыл бұрын
You are welcome, Роман Сергеевич!
@aloooshalsoumahi5124
@aloooshalsoumahi5124 3 ай бұрын
thank you man , but it is really long way and alot of things to do to share some data in all widget, better to use any kind of state provider
@HeyFlutter
@HeyFlutter Ай бұрын
Thank you ❤️ for the suggestion! We’ll definitely consider it for our future content ideas. 😊
@fluffycatstream6196
@fluffycatstream6196 3 жыл бұрын
for those who can't access the counter, add .counter after Updating.of(context) after this. ex: final counter = Updating.of(context).counter;
@michaelrogers6935
@michaelrogers6935 4 жыл бұрын
Instead of putting a StatefulWidget on top of the InheritedWidget, couldn't you have just extracted the counter into a separate class with an increment method?
@yoapps137
@yoapps137 4 жыл бұрын
Really well explained... But if I feel more comfortable just using provider than this... Will I be missing out on something??
@yoapps137
@yoapps137 4 жыл бұрын
@@HeyFlutter I actually agree with that logic. I too believe first learn to code those basics.. Then pick up on packages, lib.. Etc etc.. Hey by the way wrote you a email.. Hope you were able to read it.
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Most state managements make use of the InheritedWidget, also the Provider. The Provider is only wrapping the InheritedWidget and has some more features for more comfortable usage. Therefore it is always good to learn the basics of the InheritedWidget because it is used almost everywhere under the hood.
@eNONO-ot4zh
@eNONO-ot4zh 3 жыл бұрын
thank Johannes my concern is probably linked to an inheritedWidget. the link to the source code does not work. like having the new link?
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Thanks, e.NONO! 🙂 This link should work for the source code: github.com/JohannesMilke/inherited_widget_example
@lyricsmint567
@lyricsmint567 4 жыл бұрын
Awesome vid..
@shaderone07
@shaderone07 Жыл бұрын
15 mins in ....I think i need to come back here later
@HeyFlutter
@HeyFlutter Жыл бұрын
Great, Thank you @shaderone07!
@Dabayare
@Dabayare 4 жыл бұрын
Most ppl nowadays are visual learners. So was wondering why they do not have the views and constrains tabs for Flutter development like in Java/Kotlin for Android Studio. They are very confusing building apps in the style of React when u have too many views.
@mrunfunny
@mrunfunny 4 жыл бұрын
you don't really need it as you can instantly see the changes reflect in the emulator or an actual device
@brokecoder
@brokecoder 3 жыл бұрын
Dart seriously needs to DataClasses from python
Flutter Tutorial - Flutter Image - Rounded Image & Filtered Image
12:58
HeyFlutter․com
Рет қаралды 3,3 М.
UFC 287 : Перейра VS Адесанья 2
6:02
Setanta Sports UFC
Рет қаралды 486 М.
«Жат бауыр» телехикаясы І 30 - бөлім | Соңғы бөлім
52:59
Qazaqstan TV / Қазақстан Ұлттық Арнасы
Рет қаралды 340 М.
ВЛОГ ДИАНА В ТУРЦИИ
1:31:22
Lady Diana VLOG
Рет қаралды 1,2 МЛН
AI Is Making You An Illiterate Programmer
27:22
ThePrimeTime
Рет қаралды 269 М.
Flutter Tutorial - FutureBuilder - Load JSON From Network & Local
11:48
HeyFlutter․com
Рет қаралды 30 М.
Top 30 Flutter Tips and Tricks
6:50
Flutter Mapp
Рет қаралды 584 М.
Learn Flutter Life Cycle In 10 Minutes
10:02
Robert Brunhage
Рет қаралды 77 М.
Responsive Design in Flutter: A Complete Course
29:51
HeyFlutter․com
Рет қаралды 8 М.
I just tried o3-mini
6:31
ThePrimeTime
Рет қаралды 222 М.
Futures and Streams (Flutter FutureBuilder, StreamBuilder)
13:10
HeyFlutter․com
Рет қаралды 32 М.
UFC 287 : Перейра VS Адесанья 2
6:02
Setanta Sports UFC
Рет қаралды 486 М.