#4 Android Studio - Container
Tutorial on How to add container class and add padding and margin to our Flutter Project Container class in flutter is a convenience widget that combines common painting, positioning, and sizing of widgets.In this lesson we will learn about how to add container class to our project and add paddings and margins to the container. Step 1 : Add container widget by typing Container() in body and add a background color and text to make the container visible Step 2 : Add Paddings.Paddings help to re arrange the text inside the container.There are different types of padding eg. EdgeInsets.only(any one direction : 30.0) [single direction] EdgeInsets.all(20.0) [all direction] EdgeInsets.fromLTRB(left, top, right, bottom) [specific direction] EdgeInsets.Symmetric(horizontal : 5.0, vertical: 2.0) [horizontal & Vertical] Step 3 : Add Margins.Margin are used to give spacing outside the container and the codes are same as that of padding Note : Padding is used to give spac...