Flutter Basics - Stateless and Stateful Widgets

preview_player
Показать описание
In this video we look at the difference between the Stateless and Stateful Widgets. We look at using the setState() method and talk about performance when using Stateless and Stateful Widgets. At the end, we see how to extract a Widget as a WIDGET or a METHOD.

You can find my Dart playlist here:
Рекомендации по теме
Комментарии
Автор

I've been working through your course and I just wanna quickly say thanks, your teaching has helped me learn so much in just a couple of days!

Break.
Автор

Great stuff. I am going through the whole series. Thank you so much.

chris-malek
Автор

Just making a comment for those following after me:

When you are naming your variables in the extract widget section, you may receive an error. The error will display something like "The argument type 'function' can't be assigned to the parameter type 'void Function()'.

This is because, to my knowledge, Johan's video isn't using Null Safety.

To get around this, instead use 'final void Function() onTap;' as opposed to 'final Function onTap;'

This should resolve the error.

Phrog
Автор

Hello Sir... thanks for creating such great tutorial... I am not able to follow Extract Widget part. Its throwing exception. Please suggest... Thanks-

abhisheksharma
Автор

I am getting an error which reads like the following : "setState or markNeedsBuild called during build".

Would be immensely glad if you could offer a solution to it. Thank you.

dhoomketu
Автор

I love how you pronouce 'build' :) bold :)

nabukodonosor
Автор

@Johan Jurrius
sir my text widgets inside the stateful widgets are not displaying after hot reload and even after restart

abhijeetkumarjha
Автор

What's the difference between @required and required ?

obsessed
Автор

Would you please upload the project folder to google drive

sithenkosimenze
Автор

Followed the same tutorial but the no of count is not increasing

hassanamin
Автор

This app would be a lot better with all of the 72 different genders.🤣🤣🤣

AndyIvan
visit shbcf.ru