A guide to Inherited Widgets - Flutter Widgets 101 Ep. 3

preview_player
Показать описание
In the previous episodes, we have covered stateless widget and stateful widget. In this video Filip Hracek will be introducing inherited widgets, what it is for, how to use it, and some sample cases.

Рекомендации по теме
Комментарии
Автор

I want this level of calmness in my life.

arreankit
Автор

Just for those who need that little bit of extra information:
You create the subclass of the InheritedWidget (as explained in the video) and that subclass has a constructor that takes a widget as a child. The idea is to (in the build method of your app) wrap your top widget in there and put your Inheritedwidget on the top. That way the InheritedWidget is very much on the top and accessible by everyone. (I know it is obvious...once you figure it out). Hope this saves someone some time ;)

MarkDechamps
Автор

I liked the part of service so much, so inspiring with these sounds in background.

aladdinovich
Автор

Fantastic video! I can't imagine how many takes that must have required.

ehorlyck
Автор

"Interview question". I remember it was one of them. Nicely explained!

CodeXdev
Автор

Great short videos from the flutter team !!! Keep them coming !!!

jagdishshetty
Автор

Nice guy! Thanks for explanation, was really helpful 👍

danilyusupov
Автор

After a year of studying flutter I finally understood this concept.

KuroManX
Автор

Very nice, this guy is like a Temple. Focused, calm ( not so enthusiastic voice ). I like it :D

heshansandeepa
Автор

Lol... Good one ! The video is both funny and educational. The sound effect made me laugh 4:06 made me laugh

nonybrighto
Автор

Wow! Perfect. Creative and fun example. It always will be kept on my mind. :D

tinatahmasebi
Автор

for those who will look this video in 2020 - method is deprecated, use context.dependOnInheritedWidgetOfExactType<InheritedNose>(),
ok, google, are you going to update videos about your framework :) ?

f
Автор

Nice. If this man has a youtube channel, im subscribing.

bukunmialuko
Автор

There's a mistake in the video at 2:35 - the nose object was supposed to be assigned from the asset member of inheritedNose - so the code should read final nose =

pianoman
Автор

Haha! I like the nose example very much XD Finally I can understand InheritedWidget by this video, thanks!

rika
Автор

When you want to grow up your size of project, you must be annoying of a a lot of different widget dependency. What a good flutter team! has provided a bloc pattern support inside of flutter. You don't need to npm / yarn install something and write a lot of coding (compare with redux). I think bloc pattern is the best solution for handling dependency between widget.

patrickngnet
Автор

At 1:53, I am having error in the line final nose = ... at the word asset.

However using it seems to work.

Edit: I had to use
as InheritedNose).asset

CuiqkOfficial
Автор

Thank's God, now I got it! Thank's for the explanation!

alexandreaugustolg
Автор

Very informative video! Thanks Flutter Team 🙏
A quick question, in order to get the asset variable in the build() method:

final nose = InheritedNose.of(context);

shouldn't the asset be returned from the of() method such as:

static InheritedNode of(BuildContext context) =>

RahimSekkouti
Автор

I think some of the syntax is now outdated; correct me if I'm wrong.
(I'm using Flutter 2.0.3)

aprameyaaithal