As stated in the previous blog post, we will be creating a movie application which shows the top-rated movies from TMDb database.
Let’s start by deleting everything in the main.dart file and create the famous “Hello World” application together to have some information about basics of the view hierarchy in Flutter.
Before we proceed with code, I want to tell you about views in Flutter. Each view element in Flutter is called widgets
Widgets describe what their view should look like given their current configuration and state. A widget’s main job is to implement a build function, which describes the widget in terms of other, lower-level widgets. When writing an app, you’ll commonly author new widgets that are subclasses of either StatelessWidget or StatefulWidget
, depending on whether your widget manages any state. When a widget’s state changes, the widget rebuilds its description, which the framework diffs against the previous description in order to determine the minimal changes needed in the underlying render tree to transition from one state to the next. That will be enough for now.flutter