0% found this document useful (0 votes)
6 views9 pages

08 Container

Uploaded by

Ali Khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views9 pages

08 Container

Uploaded by

Ali Khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 9

Mobile Application Development

Containers & Their Role


Container Widget
• The most commonly used widgets of flutter
• A container is a convenience widget that
combines common painting, positioning, and
sizing widgets
• A container widget is use to contain a child
widget with the ability to apply some styling
properties
• If The container widget has no child widget in
it, it shall automatically fill the area of the
screen
• Otherwise if there is a child it will wrap to the
height and width of the given child element.
• One important point is that a container widget
should not render directly without any parent
widget.
• Although you can use
– A center widget
– A Padding widget
– A Column or Row Widget
– or Scaffold Widget
as the parent widget for a Container.
• You have to make sure that a container widget should not render directly
without any parent widget
In our App
• we have a scaffold which is Pre made with an
AppBar on it
• Lets build a container in the remaining body
parameter of this scaffold

• and pass the container widget


Alignment Property

You might also like