Widgets are the foundation elements of any Flutter project. In this video you can learn how to set up your first intentional widgets and create a colored title bar in your app.
for all the other widgets … that we're going to construct on screen. … And by including the MaterialApp, … we also get to tap into all of the components … or widgets that the MaterialApps come with. … Such as a text or image widget. … or take this part out, which is the center widget, … just to be able to see where that's coming from. … Now if it bothers you having a lot of this … extra stuff that gets written on the screen, … making your code look more wordy, … you can also go into the Preferences … and go into the Editor section, … then General, then Appearance, … and you can either enable or disable this if you want. … I'm going to leave in just to make it … easier for you to see where each part ends … but it's, again, up to you as a personal preference. … So we were going to go and delete … these center widget from here. … So we're going to leave the part where it says home, … but we're going to delete the center widget. … What should we set as the home of our MaterialApp? … Well, it's going to be a scaffold widget. …
This course was created by London App Brewery. We are pleased to host this content in our library.