Flutter Simple Example | RRTutors

Flutter Widget Examples - Layout Widgets

First create a simple visible widget


Text("Text widget")


If we want to add this visible widget to the Screen we need to put this widget inside the layout widget.

Let's create layout widget



child: Text("Text Widget")



Now let's add this Layoutwidget to the screen by


class Sample1 extends StatelessWidget{


Widget build (BuildContext context)


return Container(

child: Text("Text Widget");