<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Satyam Sangal on Medium]]></title>
        <description><![CDATA[Stories by Satyam Sangal on Medium]]></description>
        <link>https://medium.com/@satyam.sangal?source=rss-3269b7011122------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*KP1ytPkOpEXajA3vRXr1Jw.jpeg</url>
            <title>Stories by Satyam Sangal on Medium</title>
            <link>https://medium.com/@satyam.sangal?source=rss-3269b7011122------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 14:33:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@satyam.sangal/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Getting started with Container, AppBar, Stack, Row, Column in Flutter.]]></title>
            <link>https://medium.com/flutterfly-tech/getting-started-with-container-appbar-stack-row-column-in-flutter-6e3d4563046f?source=rss-3269b7011122------2</link>
            <guid isPermaLink="false">https://medium.com/p/6e3d4563046f</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[flutter-ui]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Satyam Sangal]]></dc:creator>
            <pubDate>Fri, 15 May 2020 06:09:07 GMT</pubDate>
            <atom:updated>2020-05-15T06:09:07.407Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*w_Hwise5fi9orTgRt5ClQA.jpeg" /></figure><p>Everything in Flutter is a widget. A developer can create an attractive application easier and faster by using a huge collection of flutter widgets.</p><p>Here we will get to know about some of the important widgets which a developer must know before developing a project in Flutter.</p><h3>Container</h3><p>The container is a convenience widget that combines common painting, positioning, and sizing widgets. This widget is mainly used for containing child widgets to add different properties to it.</p><pre>Container(<br>    color: Colors.<em>black54</em>,<br>    width: 200.0,<br>    height: 200.0,<br>  <br>),</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/216/1*kBBgtaee922P0D3sCJ4JDA.jpeg" /></figure><p>In the above example, we have created a simple container with color black24(grey), height and width 200.</p><h4>Properties of Container:</h4><h4>Child:</h4><p>This property of the container defines the child of the container. We can use this to add a child to a container. A child can be anyone from many widgets like Column, Row, Text, Container, Center, Stack, etc.</p><pre>Container(<br>    color: Colors.<em>yellow</em>,<br>    width: 200.0,<br>    height: 200.0,<br>  child: Text(<strong>&#39;I am a Container&#39;</strong>)<br><br>),</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/216/1*yu1GGh6DHkGxs7-ZtP9IGQ.jpeg" /></figure><h4>Alignment:</h4><p>This property is used to set the position of the child in the Container. The alignment of a child can be done at the center, left, right, top, bottom. top-left, bottom-right, top-right, bottom-left or user can also assign the coordinates of the position.</p><pre>Container(<br>    color: Colors.<em>yellow</em>,Properties of Column:<br>    width: 200.0,<br>    height: 200.0,<br>  alignment: Alignment.<em>center</em>,<br>  child: Text(<strong>&#39;I am a Container&#39;</strong>)<br><br>),</pre><p>this will align the child at the center.</p><pre>Container(<br>    color: Colors.<em>yellow</em>,<br>    width: 200.0,<br>    height: 200.0,<br>  alignment: Alignment.<em>topRight</em>,<br>  child: Text(<strong>&#39;I am a Container&#39;</strong>, style: TextStyle(fontSize: 20,fontWeight: FontWeight.<em>bold</em>),)<br><br>),</pre><p>while this will align the text at the top-right corner of the container.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/416/1*l1M7Kp4kO73SyIcvELTGaQ.jpeg" /></figure><p>You can also assign custom coordinates to set the position of the child.</p><pre>Container(<br>    color: Colors.<em>yellow</em>,<br>    width: 200.0,<br>    height: 200.0,<br>  alignment: Alignment(0.9, 0.75),<br>  child: Text(&#39;I am a Container&#39;)<br>),</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/216/1*a4lr8wQqbGQ1I3mj-bjPwg.jpeg" /></figure><h4>Padding:</h4><p>Padding is another property of container which allows user to create padding between child and container. Padding helps a child in maintaining some distance with the borders of the container. Padding can be applied to all edges or can be applied to only some particular edges.</p><pre>Container(<br>    color: Colors.<em>yellow</em>,<br>    width: 200.0,<br>    height: 200.0,<br>  padding: EdgeInsets.all(20),<br>    child: Container(<br>    color: Colors.<em>lightBlueAccent</em>,<br>   )<br>)</pre><p>the above example will create padding at all edges.</p><pre>Container(<br>    color: Colors.<em>yellow</em>,<br>    width: 200.0,<br>    height: 200.0,<br>  padding: EdgeInsets.only(top: 20,right: 20,bottom:0 ,left:0),<br>    child: Container(<br>    color: Colors.<em>lightBlueAccent</em>,<br>    )<br>)</pre><p>and this example will create padding according to the given parameters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*t9Ngw743nsGYKjpv3HXY7Q.jpeg" /></figure><h4>Decoration:</h4><p>The decoration is basically used to decorate the container with various properties like color, border-radius, border, etc.</p><pre>Container(</pre><pre>width: 200.0,<br>    height: 200.0,<br>    decoration: BoxDecoration(<br>        borderRadius: BorderRadius.circular(20.0),<br>        border: Border.all(<br>            color: Colors.<em>green</em>,<br>            width: 10.0<br>        )<br>    ),<br>)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/216/1*dIKQIhgVZe8f-quGv42tDA.jpeg" /></figure><h3>AppBar</h3><p>AppBar is a property of Scaffold. AppBar is used to display the toolbar and other widgets at the top of an application. AppBar is placed at the top of the application.</p><pre>Scaffold(<br>  appBar: AppBar(<br>    title:Text(<strong>&#39;Scaffold AppBar Demo&#39;</strong>),<br>  ),<br>),</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/583/1*SPQwqGo7Bw0pZw5PfR8lKA.jpeg" /></figure><h4>Properties of AppBar:</h4><h4>Title:</h4><p>In the title of the AppBar, you can place the name of the application or something related to it. The title takes Text class as its value.</p><pre>Scaffold(<br>  appBar: AppBar(<br>    title:Text(<strong>&#39;This is my Application&#39;</strong>),<br>  ),<br>)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*hy9NHM4Xr5KQtXgGx5iORg.jpeg" /></figure><h4>Actions:</h4><p>Action property in AppBar is used to assign Icons or Text at the right of the AppBar i.e top-right of the screen. This is the best place to add utility.</p><pre>Scaffold(<br>  appBar: AppBar(<br>    title:Text(<strong>&#39;AppBar Action Demo&#39;</strong>),<br>    actions: &lt;Widget&gt;[<br>      Icon(Icons.<em>favorite</em>),<br>      Icon(Icons.<em>print</em>),<br>    ],<br>  ),<br>)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*t9CzvbNMw15yeoDmjZS0Xw.jpeg" /></figure><h4>Background Color:</h4><p>In Flutter, you can also change the background color of the AppBar. AppBar allows users to choose any color from a huge collection of colors in the flutter. Users can also add custom colors by adding their color code.</p><pre>Scaffold(<br>  appBar: AppBar(<br>    title:Text(<strong>&#39;AppBar Color Demo&#39;</strong>),<br>    actions: &lt;Widget&gt;[<br>      Icon(Icons.<em>favorite</em>),<br>      Icon(Icons.<em>print</em>),<br>    ],<br>    backgroundColor: Colors.<em>green</em>,<br>  ),<br>)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*mf6_K_KLA3lpiXt1YayXUg.jpeg" /></figure><h4>Elevation:</h4><p>The elevation property of AppBar allows users to elevate the AppBar, i.e. increasing the size of the z-axis. It provides a shadow effect to the AppBar.</p><pre>Scaffold(<br>  appBar: AppBar(<br>    title:Text(<strong>&#39;AppBar Elevation Demo&#39;</strong>),<br>    actions: &lt;Widget&gt;[<br>      Icon(Icons.<em>favorite</em>),<br>      Icon(Icons.<em>print</em>),<br>    ],<br>    backgroundColor: Colors.<em>green</em>,<br>    elevation : 60.0,<br>  ),<br>)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*xd2nQilAWaNJJmi7JYTfkA.jpeg" /></figure><h4>Leading:</h4><p>This property of AppBar allows users to add a widget on the left side of the AppBar, i.e. the top-left corner of the screen. Mostly it is used to add drawers in the application.</p><pre>Scaffold(<br>  appBar: AppBar(<br>    title:Text(<strong>&#39;AppBar Leading Demo&#39;</strong>),<br>    actions: &lt;Widget&gt;[<br>      Icon(Icons.<em>favorite</em>),<br>      Icon(Icons.<em>print</em>),<br>    ],<br>    backgroundColor: Colors.<em>green</em>,<br>    elevation: 60.0,<br>    leading: Icon(Icons.<em>menu</em>),<br>  ),<br>)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*aT0DYf31fJ3X2TK-qbxTqw.jpeg" /></figure><h4>Brightness:</h4><p>Brightness property in AppBar is used to set the brightness of the status bar. Users can set it to Light or Dark according to the UI environment.</p><pre>Scaffold(<br>  appBar: AppBar(<br>    title:Text(<strong>&#39;AppBar Leading Demo&#39;</strong>),<br>    actions: &lt;Widget&gt;[<br>      Icon(Icons.<em>favorite</em>),<br>      Icon(Icons.<em>print</em>),<br>    ],<br>    backgroundColor: Colors.<em>green</em>,<br>    elevation: 60.0,<br>    leading: Icon(Icons.<em>menu</em>),<br>    brightness: Brightness.dark,<br>  ),<br>)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*iVtvAEa6xJaUfKRp0bScjw.jpeg" /></figure><h3>Column</h3><p>The column is a widget used to display children widgets in a vertical direction. The main axis of the column is Y-axis, that’s why all the children in the column are placed vertically. Children of a column can contain various widgets like container, row, text, etc.</p><pre>Column(<br>  children: &lt;Widget&gt;[<br>    Text(<strong>&#39;Children 1&#39;</strong>),<br>    Text(<strong>&#39;Children 2&#39;</strong>),<br>    Text(<strong>&#39;Children 3&#39;</strong>),<br>    Text(<strong>&#39;Children 4&#39;</strong>),<br>    Text(<strong>&#39;Children 5&#39;</strong>),<br>    Text(<strong>&#39;Children 6&#39;</strong>),<br>    Text(<strong>&#39;Children 7&#39;</strong>),<br>    Text(<strong>&#39;Children 8&#39;</strong>),<br>  ],<br>),</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*6aftiT30pFnDhbxqZZSlCw.jpeg" /></figure><h4>Properties of Column:</h4><h4><strong>Main Axis Alignment:</strong></h4><p>This property of a column allows users to align elements vertically. It is used to align data at the top(start), bottom(end), center and even it is also used for spacing between elements as space evenly, space between. The alignment of the column is by default set to top(start).</p><pre>Column(<br>  mainAxisAlignment: MainAxisAlignment.<strong>center</strong>,<br>  children: &lt;Widget&gt;[<br>    Text(<strong>&#39;Children 1&#39;</strong>),<br>    Text(<strong>&#39;Children 2&#39;</strong>),<br>    Text(<strong>&#39;Children 3&#39;</strong>),<br>    Text(<strong>&#39;Children 4&#39;</strong>),<br>    Text(<strong>&#39;Children 5&#39;</strong>),<br>    Text(<strong>&#39;Children 6&#39;</strong>),<br>    Text(<strong>&#39;Children 7&#39;</strong>),<br>    Text(<strong>&#39;Children 8&#39;</strong>),<br>  ],<br>),</pre><blockquote>mainAxisAlignment: MainAxisAlignment.start,</blockquote><blockquote>mainAxisAlignment: MainAxisAlignment.end,</blockquote><blockquote>mainAxisAlignment: MainAxisAlignment.center,</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UivQr1Xg8m2UndnST4v6Uw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-lr4lfrkx7zCUSH1dR24Iw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kqFbTDaDxlUL5ZulnizEgg.jpeg" /></figure><p>The above example is for Start, End, Center classes of Main Axis Alignment.</p><blockquote>mainAxisAlignment: MainAxisAlignment.spaceEvenly,</blockquote><blockquote>mainAxisAlignment: MainAxisAlignment.spaceBetween,</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*7oSnH1YcsZuoZVh2e-J6FQ.jpeg" /></figure><p>spaceEvenly creates equal space between elements taking care of both top and bottom,</p><p>while spaceBetween creates equal space between elements but sticks the first and last element with top and bottom.</p><h4>Cross Axis Alignment:</h4><p>As the main axis of the column is Y-axis, so the cross axis of the column will be X-axis. This property works the same as Main Axis alignment but computes on X-axis.</p><blockquote>crossAxisAlignment: CrossAxisAlignment.start,</blockquote><blockquote>crossAxisAlignment: CrossAxisAlignment.end,</blockquote><blockquote>crossAxisAlignment: CrossAxisAlignment.center,</blockquote><blockquote>crossAxisAlignment: CrossAxisAlignment.spaceEvenly,</blockquote><blockquote>crossAxisAlignment: CrossAxisAlignment.spaceBetween,</blockquote><h3>Row</h3><p>The row is a widget used to display children widgets in a horizontal direction. The main axis of the column is X-axis, that’s why all the children in the column are placed horizontally. Children of a row can contain various widgets like container, row, column, text, etc.</p><h4>Properties of Row:</h4><h4>Main Axis Alignment:</h4><p>This property of a row allows users to align elements horizontally. It is used to align data at the left(start), right(end), center and even it is also used for spacing between elements as space evenly, space between. The alignment of the row is by default set to the left(start).</p><pre>Row(<br>  mainAxisAlignment: MainAxisAlignment.<strong>center</strong>,<br>  children: &lt;Widget&gt;[<br>    Text(<strong>&#39;Children 1&#39;</strong>),<br>    Text(<strong>&#39;Children 2&#39;</strong>),<br>    Text(<strong>&#39;Children 3&#39;</strong>),<br>  ],<br>),</pre><blockquote>mainAxisAlignment: MainAxisAlignment.start,</blockquote><blockquote>mainAxisAlignment: MainAxisAlignment.end,</blockquote><blockquote>mainAxisAlignment: MainAxisAlignment.center,</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BmmpOndSBurXvbn1TqV_xg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gCUjeqK9TdkYZdk4QStvvQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5RAr7vi1E-cwZ2xrr74ofg.jpeg" /></figure><p>The above example is for Start, End, Center classes of Main Axis Alignment.</p><blockquote>mainAxisAlignment: MainAxisAlignment.spaceEvenly,</blockquote><blockquote>mainAxisAlignment: MainAxisAlignment.spaceBetween,</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*yCBcGcQyZYraiD8kv7fuHA.jpeg" /></figure><p>spaceEvenly creates equal space between elements taking care of both left and right,</p><p>while spaceBetween creates equal space between elements but sticks the first and last element with left and right.</p><h4>Cross Axis Alignment:</h4><p>As the main axis of the row is X-axis, so the cross axis of the row will be Y-axis. This property works the same as Main Axis alignment but computes on Y-axis.</p><blockquote>crossAxisAlignment: CrossAxisAlignment.start,</blockquote><blockquote>crossAxisAlignment: CrossAxisAlignment.end,</blockquote><blockquote>crossAxisAlignment: CrossAxisAlignment.center,</blockquote><blockquote>crossAxisAlignment: CrossAxisAlignment.spaceEvenly,</blockquote><blockquote>crossAxisAlignment: CrossAxisAlignment.spaceBetween,</blockquote><h3>Stack</h3><p>The stack is a widget that is used to implement stack architecture in Flutter. Stack architecture specifies that the first widget put in the stack will be at the bottom and the other widgets will overlay to it. The stack is basically used where a user has to place a widget over multiple widgets.</p><pre>Stack(   <br>  children: &lt;Widget&gt;[<br>      BottomWidget(),<br>      MiddleWidget(),<br>      TopWidget(),<br>    ],<br>),</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/384/1*R1Ko8xRhqbN06SGEd3ErTA.png" /></figure><pre>Stack(<br>      children: &lt;Widget&gt;[<em><br>        </em>Container(<br>          color: Colors.<em>green</em>,<br>        ),<br>        Container(<br>          color: Colors.<em>pink</em>,<br>          height: 450.0,<br>          width: 300.0,<br>        ),<br>        Container(<br>          color: Colors.<em>blue</em>,<br>          height: 300.0,<br>          width: 150.0,<br>        )<br>      ],<br>    ),</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/216/1*f6YIsv8OR1bGXDpsW72rfw.jpeg" /></figure><pre>Stack(<br>      children: &lt;Widget&gt;[<em><br>        </em>Container(<br>          color: Colors.<em>yellow</em>,<br>        ),<br>        Container(<br>          color: Colors.<em>pink</em>,<br>          height: 350.0,<br>          width: 300.0,<br>        ),<br>        Positioned(<br>          right: 60.0,<br>          top: 60.0,<br>          child: Container(<br>            color: Colors.<em>blue</em>,<br>            height: 200.0,<br>            width: 200.0,<br>          ),<br>        )<br>      ],<br>    ),</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*X2dXgwOu9rnpMCMJJOK3Nw.jpeg" /></figure><h3>Goodbye</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/1*0r_pSjAUuiKE5sJvpMnHWA.gif" /></figure><blockquote><strong>Thanks for reading</strong>. If you found this helpful, please share it with your friends.</blockquote><blockquote><strong>For more updates about programing in Flutter follow </strong><a href="https://medium.com/@satyam.sangal"><strong>Satyam Sangal</strong></a><strong>, so you will get notified when we write new posts.</strong></blockquote><blockquote>Did I get something wrong? Mention it in the comments. I would love to improve.<br>If you liked what you read, please leave some claps!</blockquote><h3>To know more about me, visit :</h3><p><a href="https://about.me/satyamsangal/">https://about.me/satyamsangal/</a></p><h3>Follow FlutterFly :</h3><p>LinkedIn : <a href="https://www.linkedin.com/in/flutterfly-5726b6189/">https://www.linkedin.com/in/flutterfly-5726b6189/</a></p><p>LinkedIn Group :<strong> </strong><a href="https://www.linkedin.com/groups/10482289/">https://www.linkedin.com/groups/10482289/</a></p><p>Facebook : <a href="https://www.facebook.com/flutterflytech/">https://www.facebook.com/flutterflytech/</a></p><p>Twitter : <a href="https://twitter.com/flutterflytech">https://twitter.com/flutterflytech</a></p><p>GitHub : <a href="https://github.com/flutterflytech">https://github.com/flutterflytech</a></p><p>Medium : <a href="https://medium.com/flutterfly-tech">https://medium.com/flutterfly-tech</a></p><p>Reddit : <a href="https://www.reddit.com/user/flutterflytech/">https://www.reddit.com/user/flutterflytech/</a></p><h3>Previous Post</h3><p><a href="https://medium.com/flutterfly-tech/introduction-to-flutter-getting-started-with-materialapp-scaffold-fccacb9631a9">Introduction to Flutter, getting started with MaterialApp, Scaffold</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6e3d4563046f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/flutterfly-tech/getting-started-with-container-appbar-stack-row-column-in-flutter-6e3d4563046f">Getting started with Container, AppBar, Stack, Row, Column in Flutter.</a> was originally published in <a href="https://medium.com/flutterfly-tech">FlutterFly</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to Flutter, getting started with MaterialApp, Scaffold]]></title>
            <link>https://medium.com/flutterfly-tech/introduction-to-flutter-getting-started-with-materialapp-scaffold-fccacb9631a9?source=rss-3269b7011122------2</link>
            <guid isPermaLink="false">https://medium.com/p/fccacb9631a9</guid>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Satyam Sangal]]></dc:creator>
            <pubDate>Thu, 20 Feb 2020 05:59:41 GMT</pubDate>
            <atom:updated>2020-02-24T12:32:10.985Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*w_Hwise5fi9orTgRt5ClQA.jpeg" /></figure><p>If you are new in development or experienced and want to learn something exciting or get bored in working with your technology, then you must try Flutter.</p><p>Flutter is a new and trending era in the field of application development.</p><p>Flutter is basically a Google’s UI toolkit for building Natively compiled applications for mobile, web and desktop from a single codebase.</p><p>It provides full native performance on both iOS and Android.</p><h3>Setting up flutter :</h3><p>Setting up the environment for Flutter is very easy.</p><p>Just go to <a href="https://flutter.dev/docs/get-started/install">https://flutter.dev/docs/get-started/install</a></p><p>Choose the operating system you are working on, and follow the steps on the same.</p><p>Most of the people face the problem in setting up the path permanently for a flutter, here are some tips for that:</p><p><strong>i)</strong> Open or create ~/.bash_profile, to do so</p><blockquote>In Ubuntu, open terminal and type</blockquote><blockquote>sudo &lt;editor&gt; bashrc</blockquote><blockquote>replace &lt;editor&gt; with your editor, mostly used editors are gedit, nano, vim, emacs, vi.</blockquote><p><strong>ii)</strong> Add this at the end of the file,</p><blockquote>export PATH=&lt;PATH TO FLUTTER DIRECTORY&gt;/flutter/bin:$PATH</blockquote><blockquote>replace &lt;PATH TO FLUTTER DIRECTORY&gt; with the path where the flutter directory is residing.</blockquote><p><strong>iii)</strong> Save and close the file, close the terminal.</p><p><strong>iv)</strong> Start a new terminal and type</p><blockquote>Flutter Doctor</blockquote><blockquote>now it will work perfectly without providing path again and again.</blockquote><h3>Demo Application :</h3><p>When we start a new project on flutter, it provides a default application. This is a demo application for users to get started easily. It helps the user to know basic syntax about the application to be built.</p><p>Here is the quick peek of the demo application:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ub-mmIb2LYDNK8Q_iLiLVA.gif" /></figure><p>In this application the number 0 increments its value when the user presses the + icon located at the bottom right corner.</p><h3>MaterialApp</h3><p>Material App is a pre-defined class used in the flutter. It contains widgets that are used for the material design of an application.</p><p><strong>Properties of MaterialApp:</strong></p><p><strong>Theme:</strong></p><blockquote>This property is used to change the theme of an application.</blockquote><pre>MaterialApp(<br>  theme: ThemeData(<br>      brightness: Brightness.<strong>dark</strong>,<br>      primaryColor: Colors.<em>blue<br>  </em>),<br>)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/447/1*t874_GCfGXuKufDKgX-Gog.jpeg" /></figure><blockquote>In the above example, we have changed the theme from dark to light. Users can choose between these according to their needs.</blockquote><p><strong>DebugShowCheckedModeBanner:</strong></p><blockquote>This property of MaterialApp is used to add or remove the small DEBUG banner at the top right corner of an application.</blockquote><pre>MaterialApp(<br>  debugShowCheckedModeBanner: <strong>false</strong>,<br>  )</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/621/1*8WSycnPWw0jPvr0aAKpioQ.jpeg" /></figure><p><strong>Home:</strong></p><blockquote>This property defines the starting point of an application. Ip provides the default route unless the initial route is specified.</blockquote><pre>MaterialApp(<br>  debugShowCheckedModeBanner: <strong>false</strong>,<br>  theme: ThemeData(<br>      brightness: Brightness.<strong>light</strong>,<br>      primaryColor: Colors.<em>blue<br>  </em>),<br>  home: Scaffold(<br>    appBar: AppBar(<br>      title:Text(<strong>&#39;MaterialApp Demo Theme&#39;</strong>),<br>    ),<br>  ),</pre><blockquote>here we have set Scaffold as the initial path by assigning it to the home of MaterialApp.</blockquote><h3><strong>Scaffold</strong></h3><p>The scaffold is another class used in flutter for application design. It implements the basic material design visual layout structure. This class provides API for showing snackBar, drawers, bottom sheets.</p><p><strong>Properties of Scaffold:</strong></p><p><strong>AppBar:</strong></p><blockquote>AppBar is used to display the toolbar and other widgets at the top of an application. AppBar is placed at the top of the application.</blockquote><pre>Scaffold(<br>  appBar: AppBar(<br>    title:Text(<strong>&#39;MaterialApp Demo Theme&#39;</strong>),<br>  ),<br>),</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/583/1*uiLgDPE4McBypk96IzySag.jpeg" /></figure><p><strong>Background Color:</strong></p><blockquote>Used to add color to the background of an application.</blockquote><pre>Scaffold(<br>  backgroundColor: Colors.<em>cyan</em>,<br>),</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/216/1*Lp4krWTGmRgFXs0fk8j13g.jpeg" /></figure><p><strong>Body:</strong></p><blockquote>The body is the primary content of the Scaffold. The widget which we add in the body of the Scaffold is positioned at the top left corner of an application, after AppBar. We can use the center at the body to position the material at the center of the application.</blockquote><pre>Scaffold(<br>  appBar: AppBar(<br>    title:Text(<strong>&#39;Scaffold AppBar Demo&#39;</strong>),<br>  ),<br>  body: Center(<br>      child: Text(<strong>&#39;Body of Scaffold&#39;</strong>,style: TextStyle(fontSize:40),)<br>  ),<br>),</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/216/1*L7caSuPqoJY6-_a1KPZnoQ.jpeg" /></figure><p><strong>Bottom Navigation Bar:</strong></p><blockquote>Bottom Navigation Bar is a Scaffold widget used to display a navigation bar at the bottom. This bar can include multiple items in the form of icon, text or both.</blockquote><pre>Scaffold(<br>  bottomNavigationBar: BottomNavigationBar(<br>    items: <strong>const </strong>&lt;BottomNavigationBarItem&gt;[<br>      BottomNavigationBarItem(<br>        icon: Icon(Icons.<em>home</em>),<br>        title: Text(<strong>&#39;Home&#39;</strong>),<br>      ),<br>      BottomNavigationBarItem(<br>        icon: Icon(Icons.<em>business</em>),<br>        title: Text(<strong>&#39;Business&#39;</strong>),<br>      ),<br>      BottomNavigationBarItem(<br>        icon: Icon(Icons.<em>school</em>),<br>        title: Text(<strong>&#39;School&#39;</strong>),<br>      ),<br>    ],<br>  ),<br>),</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wAAdQKIgJW5QLh5-Q23ijA.jpeg" /></figure><p><strong>Drawer:</strong></p><blockquote>The drawer is a panel hidden on mobile devices and shown up when a button is pressed or on right/left swipe of the screen. Child of the drawer is usually a <strong>ListView</strong> whose children are <strong>drawer header </strong>and <strong>ListTile</strong>.</blockquote><pre>Scaffold(<br>  appBar: AppBar(<br>    title:Text(<strong>&#39;Scaffold Drawer Demo&#39;</strong>),<br>  ),<br>  drawer: Drawer(<br>    child: ListView(<br>      children: <strong>const </strong>&lt;Widget&gt;[<br>        DrawerHeader(<br>          decoration: BoxDecoration(<br>            color: Colors.<em>blue</em>,<br>          ),<br>          child: Text(<strong>&#39;Drawer Header&#39;</strong>,style: TextStyle(<br>              color: Colors.<em>white</em>,<br>              fontSize: 24,<br>            ),<br>          ),<br>        ),<br>        ListTile(<br>          leading: Icon(Icons.<em>message</em>),<br>          title: Text(<strong>&#39;Messages&#39;</strong>),<br>        ),<br>        ListTile(<br>          leading: Icon(Icons.<em>account_circle</em>),<br>          title: Text(<strong>&#39;Profile&#39;</strong>),<br>        ),<br>      ],<br>    ),<br>  ),<br>),</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/888/1*4-GGXWZ0h1Gjh1boEyy89Q.jpeg" /></figure><p><strong>Floating Action Button:</strong></p><blockquote>Floating Action22202220 Button is an icon button which majorly resides at the bottom left corner of the screen. It is called so because of its nature, it hovers over the data and performs actions when clicked.</blockquote><pre>Scaffold(<br>  appBar: AppBar(<br>    title:Text(<strong>&#39;Scaffold FloatingActionButton Demo&#39;</strong>),<br>  ),<br>  floatingActionButton: FloatingActionButton.extended(<br>    onPressed: () {},<br>    label: Text(<strong>&#39;Approve&#39;</strong>),<br>    icon: Icon(Icons.<em>thumb_up</em>),<br>    backgroundColor: Colors.<em>pink</em>,<br>  ),<br>),</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*LSCbQbb_vXYslaeXN9TfFg.jpeg" /></figure><h3>Goodbye</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/1*0r_pSjAUuiKE5sJvpMnHWA.gif" /></figure><p><strong>Thanks for reading</strong>. If you found this helpful, please share it with your friends.</p><blockquote><strong>For more updates about programing in Flutter follow </strong><a href="https://medium.com/@satyam.sangal"><strong>Satyam Sangal</strong></a><strong>, so you will get notified when we write new posts.</strong></blockquote><blockquote><strong>Did I get something wrong? Mention it in the comments. I would love to improve.</strong><br>If you liked what you read, please leave some claps!</blockquote><h4>To know more about me, visit :</h4><p><a href="https://about.me/satyamsangal/">https://about.me/satyamsangal/</a></p><h4>Follow FlutterFly :</h4><p>LinkedIn : <a href="https://www.linkedin.com/in/flutterfly-5726b6189/">https://www.linkedin.com/in/flutterfly-5726b6189/</a></p><p>LinkedIn Group :<strong> </strong><a href="https://www.linkedin.com/groups/10482289/">https://www.linkedin.com/groups/10482289/</a></p><p>Facebook : <a href="https://www.facebook.com/flutterflytech/">https://www.facebook.com/flutterflytech/</a></p><p>Twitter : <a href="https://twitter.com/flutterflytech">https://twitter.com/flutterflytech</a></p><p>GitHub : <a href="https://github.com/flutterflytech">https://github.com/flutterflytech</a></p><p>Medium : <a href="https://medium.com/flutterfly-tech">https://medium.com/flutterfly-tech</a></p><p>Reddit : <a href="https://www.reddit.com/user/flutterflytech/">https://www.reddit.com/user/flutterflytech/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fccacb9631a9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/flutterfly-tech/introduction-to-flutter-getting-started-with-materialapp-scaffold-fccacb9631a9">Introduction to Flutter, getting started with MaterialApp, Scaffold</a> was originally published in <a href="https://medium.com/flutterfly-tech">FlutterFly</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>