In Flutter we primarily use widgets. There are all sorts of widgets to look out for and each providing a specific functionality. Flutter allows you to implement various things at ease with the help of widgets. A simple hello world app in flutter looks like this:
MaterialApp Widget allows us to use the material widgets within the application where as scaffold provides additional functionalities such as adding an app bar within the app, adding a floating action button and so on. Scaffold gives us screen space to work on.
Within the Scaffold widget we have a body property. We have passed a Center Widget in the body to make our text centered and we in turn have used the text widget to get the application render text. We will be using MaterialApp and Scaffold almost every time. So our basic tree is structured as follows.
->MaterialApp -> Scaffold ->Center -> Text
I am Sarvesh Bhatnagar, I love to code and I enjoy teaching. This website is an effort to help people learn basics of programming. I am starting with teaching App Development using flutter. If you want to contribute to this website and become an author in this website, mail to: email@example.com