When we build a Flutter app, we make a tree of widgets. At the root of that tree, we have a MyApp widget that will be called inside the main function of main.dart, which will be the starting point.
The MyApp widget will build a MaterialApp widget, and this will eventually build a Scaffold widget, and so on. By doing this, we’ll have a tree of widgets that will be shown in the app as the UI. We’ll discuss the functioning of various common widgets later in the next section.