StateLess Widgets

324 views.

Stateless widget is does not have any shape so in future also without any changes we can use this.

First will see widget code in single file

the same above code i want use from child class like below

Main.dart

From here right click on lib and create new package and create new dart file and write below code on that

Output:

Out of both codes are same like below

You may also like...

Leave a Reply