The widget tree consists of two widgets, the Center widget and its child, the Textwidget.
The framework forces the root widget to cover the screen, which means the text “Hello, world” ends up centered on screen. The text direction needs to be specified in this instance; when the MaterialApp widget is used, this is taken care of for you, as demonstrated later.
Function that takes the given Widget and makes it the root of the widget tree.