Flutter 22 - Creating a Custom Widget

preview_player
Показать описание
Check out my courses on Udemy

Dart Beginners

Dart Intermediate

Dart Advanced

Flutter Beginners

Flutter Intermediate

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

how can we pass param to custom widget

mithson
Автор

one thing I'm confused is the difference of a class and a Widget. you created something like this:
class Hello extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new Container(
child: new Text('hello')
);
}
}

Widget hello() {
return new Container(
child: new Text('hello')
);
}
I created a Widget hello with same result than you. way less code. I don't know if I can use the Widget hello, or I need to use the class Hello. It's there any difference? If so, can you enlighten me please? Thanks again for the excellent videos.

JoaoCSpeixoto
Автор

Is it possible to make a widget take an argument? Say make the text option a variable so it is more customizable?

SiddhantDubey
Автор

For creating Custom widgets, Is it necessary to extend Stateful or Staless Widget for that ? Can we use extends TextFeild or RaisedButton so we can use that properties? @VoidRealms

harshbhavsar
Автор

Great job, bro!
It's helping me a lot!

rogeriolimas
Автор

Does Flutter have React Redux as React Native?? :))) It's similiar as React Native. React Native divides Components and Flutter divides Widgets to manage.

quangvuong