In my last article, I dissected the folder structure of default Flutter app so you could understand how to manage the various resources needed for developing a cross-platform app using Flutter. In this final part of the getting started series, we will dissect the code of the default Flutter app and understand the basic concepts of developing a cross-platform mobile application using Flutter.

When we create a new flutter application in any IDE, we get the following code,

Flutter

In this article, we will focus on understanding this code along with some core concepts of Flutter Development.

As you can see from the above code most of the things are explained pretty well via the comments (to me it even looks like comment overboard). I will try to explain the things which are not mentioned in comments and are needed for understanding the code.

Some Basic Concepts

    1. Stateless Widget
      These widgets are used to create the type of user interface which does not depend on anything other than the configuration information in the object itself like application theme which is dependent on some properties and nothing else.

    2. Stateful Widget
      These widgets are used to create the regular user interface of the application where the UI is dynamic and based on the various inputs or actions done by the user.

Explaining Code

This was a brief explanation of the default Flutter app code. We will get more used to this as we work further on Flutter development. Let me know if I have missed anything or if you want to know about anything in particular related to Flutter development. I will be coming up with more such articles in the near future.