<?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 Programmers Pouch on Medium]]></title>
        <description><![CDATA[Stories by Programmers Pouch on Medium]]></description>
        <link>https://medium.com/@programmerspouch?source=rss-f18a666f7197------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dWF8OvsNkLPlndHpY_g6tQ.png</url>
            <title>Stories by Programmers Pouch on Medium</title>
            <link>https://medium.com/@programmerspouch?source=rss-f18a666f7197------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 04:19:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@programmerspouch/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[Make Your Flutter App More Beautiful With “Animated Text Kit”]]></title>
            <link>https://programmerspouch.medium.com/make-your-flutter-app-more-beautiful-with-animated-text-kit-2f122e558bb1?source=rss-f18a666f7197------2</link>
            <guid isPermaLink="false">https://medium.com/p/2f122e558bb1</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[animation]]></category>
            <dc:creator><![CDATA[Programmers Pouch]]></dc:creator>
            <pubDate>Tue, 18 Jan 2022 07:57:32 GMT</pubDate>
            <atom:updated>2022-03-06T13:47:18.269Z</atom:updated>
            <content:encoded><![CDATA[<p>Designing a flutter app is my favorite work. Its really easy as well as crucial. But, can we make the boring🥱 texts in our apps interesting😎? Yes, we can.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*MtymuimOpkQ7-mt4UoNe4A.gif" /></figure><h4>Animated Text Kit</h4><p>A flutter package which contains a collection of some cool and awesome text animations.</p><p>This is the final result:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FFbU44JqAwsuQDzve5hUyA.gif" /></figure><h4>How To Make Use of It?</h4><ol><li>For using it, add the package into your project’s pubspec.yaml.<br>dependencies:<br> animated_text_kit: ^4.2.1</li></ol><p>2. Now, import it into the main.dart of your project.<br>import ‘package:animated_text_kit/animated_text_kit.dart’;</p><p>The Animated Text Kit package provides a wide range of text animations. Let’s check them out!</p><h4>Animations Provided</h4><blockquote>TextLiquidFill<br>Wavy<br>Fade<br>Colorize<br>Scale<br>Typer<br>Rotate<br>Flicker<br>Typewriter</blockquote><p>Let’s look at them one by one!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*L3ow0Cvuf2e44oV1MzPYdQ.gif" /></figure><blockquote>TextLiquidFill</blockquote><ol><li>Make a new stful widget named AnimationExample.</li><li>Return a Scaffold widget with a body of Center widget.</li><li>Add a Column widget in place of the child property of the Center widget.<br>Wrap it with Padding widget.<br>Also wrap it with SingleChildScrollView because we are going to make a lot of animations on one screen.</li><li>Set the mainAxisAlignMent and crossAxisAlignment to center.</li><li>Add the children property.</li><li>Add a SizedBox to leave some space from the top.</li><li>Add another SizedBox with a some height.</li><li>Add the TextLiquidFill widget in place of the child property of the SizedBox widget.</li><li>Give it some style using the textStyle property which takes in the TextStyle widget.</li><li>Add text property which takes in a String and decides the text that needs to be liquifi.</li><li>Add waveColor property which takes in a Color widget and decides the color of the wave.</li><li>Add boxBackgroundColor property which takes in a Color widget too and changes the color of the box in which the text lies.</li><li>Add boxHeight property which takes in a double and changes the box height.</li></ol><pre>return Scaffold(<br>  body: Center(<br>    child: SingleChildScrollView(<br>      child: Padding(<br>        padding: const EdgeInsets.all(8.0),<br>        child: Column(<br>          crossAxisAlignment: CrossAxisAlignment.center,<br>          mainAxisAlignment: MainAxisAlignment.center,<br>          children: [<br>            SizedBox(<br>              height: 20,<br>            ),<br>            SizedBox(<br>              height: 90,<br>              child: TextLiquidFill(<br>                boxHeight: 90.0,<br>                textStyle: TextStyle(<br>                    color: Colors.<em>white</em>,<br>                    fontSize: 60,<br>                    fontWeight: FontWeight.<em>bold</em>),<br>                boxBackgroundColor: Colors.<em>black</em>,<br>                text: &#39;Flutter&#39;,<br>                waveColor: Colors.<em>blueAccent</em>,<br>              ),<br>            ),</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VqKoM3G01s2BhKn64eq5TA.gif" /></figure><blockquote>Wavy</blockquote><ol><li>Add a SizedBox with some height.</li><li>Add the DefaultTextStyle widget in place of the child property of the SizedBox widget.<br> Give it some style using the style property which takes in the TextStyle widget.</li><li>Place the AnimatedTextKit widget in place of the child property of the DefaultTextStyle widget.</li><li>Add the repeatForever property which takes in a boolean value. Make it true. isRepeatingAnimation also needs to be set to true if you want to repeat forever.</li><li>Add the property animatedTexts to the AnimatedTextKit widget, which takes in children.</li><li>Add the WavyAnimatedText widget which takes in a String. Add as many as you want.</li></ol><pre>SizedBox(<br>  height: 60,<br>  child: DefaultTextStyle(<br>    style: TextStyle(<br>      color: Colors.<em>teal</em>,<br>      fontSize: 40,<br>    ),<br>    child: AnimatedTextKit(<br>      repeatForever: true,<br>      isRepeatingAnimation: true,<br>      animatedTexts: [<br>        WavyAnimatedText(&#39;Hello World!&#39;),<br>        WavyAnimatedText(&#39;Flutter has grown!&#39;),<br>      ],<br>    ),<br>  ),<br>),</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CBtQkn5ohD-9AOehyIKv5A.gif" /></figure><blockquote>Fade</blockquote><ol><li>Add a SizedBox with a some height.</li><li>Now, add a widget named <a href="https://api.flutter.dev/flutter/widgets/DefaultTextStyle-class.html">DefaultTextStyle</a> to the child property of the SizedBox widget. <br>(DefaultTextStyle takes a provided <a href="https://api.flutter.dev/flutter/animation/Animation-class.html">Animation</a> to animate changes in text style smoothly over time.)<br> Give it some style using the style property which takes in the TextStyle widget.</li><li>Provide it with some style using TextStyle widget in place of the style property.</li><li>Place the AnimatedTextKit widget in place of the child property of the DefaultTextStyle widget.</li><li>Add the repeatForever property which takes in a boolean value. Make it true. isRepeatingAnimation also needs to be set to true if you want to repeat forever.</li><li>Add the property animatedTexts to the AnimatedTextKit widget, which takes in children.</li><li>Add the FadeAnimatedText widget which takes in a String. Add as many as you want.</li></ol><pre>SizedBox(<br>  height: 55,<br>  child: DefaultTextStyle(<br>    style: TextStyle(<br>      fontStyle: FontStyle.italic,<br>      fontWeight: FontWeight.<em>bold</em>,<br>      color: Colors.<em>blueAccent</em>,<br>      fontSize: 35,<br>    ),<br>    child: AnimatedTextKit(<br>      repeatForever: true,<br>      isRepeatingAnimation: true,<br>      animatedTexts: [<br>        FadeAnimatedText(<br>          &#39;Flutter is cool!&#39;,<br>        ),<br>        FadeAnimatedText(<br>          &#39;Flutter is amazing!&#39;,<br>        ),<br>        FadeAnimatedText(<br>          &#39;Flutter is spectacular!&#39;,<br>        ),<br>      ],<br>    ),<br>  ),<br>),</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rVqZPrNDe9x4xqCBZe30-Q.gif" /></figure><blockquote>Colorize</blockquote><ol><li>Add a SizedBox with some height.</li><li>Add the AnimatedTextKit widget in place of the child property of the SizedBox widget.</li><li>Add the repeatForever property which takes in a boolean value. Make it true. isRepeatingAnimation also needs to be set to true if you want to repeat forever.</li><li>Add the property animatedTexts to the AnimatedTextKit widget, which takes in children.</li><li>Add the ColorizeAnimatedText widget which takes in a String. Add as many as you want. <br>It requires a textStyle and colors property. The colors property takes in a List&lt;Color&gt;.</li><li>Let’s make 2 const for that. Now, add those 2 to their respective properties.</li></ol><pre>const colorizeColors = [<br>  Colors.<em>black</em>,<br>  Colors.<em>blue</em>,<br>  Colors.<em>orange</em>,<br>  Colors.<em>red</em>,<br>];<br><br>const colorizeTextStyle = TextStyle(<br>  fontSize: 50.0,<br>  fontWeight: FontWeight.<em>bold</em>,<br>);<br></pre><pre>SizedBox(<br>  height: 70,<br>  child: AnimatedTextKit(<br>    repeatForever: true,<br>    isRepeatingAnimation: true,<br>    animatedTexts: [<br>      ColorizeAnimatedText(<br>        &#39;Alibaba&#39;,<br>        textStyle: colorizeTextStyle,<br>        colors: colorizeColors,<br>      ),<br>      ColorizeAnimatedText(<br>        &#39;BMW&#39;,<br>        textStyle: colorizeTextStyle,<br>        colors: colorizeColors,<br>      ),<br>      ColorizeAnimatedText(<br>        &#39;Google Ads&#39;,<br>        textStyle: colorizeTextStyle,<br>        colors: colorizeColors,<br>      ),<br>    ],<br>  ),<br>),</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q4qBxfnLuwPcMh5sQuUbIg.gif" /></figure><blockquote>Scale</blockquote><ol><li>Add a SizedBox with some height.</li><li>Add the DefaultTextStyle widget in place of the child property of the SizedBox widget.<br> Give it some style using the style property which takes in the TextStyle widget.</li><li>Place the AnimatedTextKit widget in place of the child property of the DefaultTextStyle widget.</li><li>Add the repeatForever property which takes in a boolean value. Make it true. isRepeatingAnimation also needs to be set to true if you want to repeat forever.</li><li>Add the property animatedTexts to the AnimatedTextKit widget, which takes in children.</li><li>Add the ScaleAnimatedText widget which takes in a String. Add as many as you want.</li></ol><pre>SizedBox(<br>  height: 70,<br>  child: DefaultTextStyle(<br>    style: TextStyle(<br>      color: Colors.<em>redAccent</em>,<br>      fontWeight: FontWeight.<em>w200</em>,<br>      fontSize: 50,<br>    ),<br>    child: AnimatedTextKit(<br>      repeatForever: true,<br>      isRepeatingAnimation: true,<br>      animatedTexts: [<br>        ScaleAnimatedText(&#39;Build apps&#39;),<br>        ScaleAnimatedText(&#39;Android&#39;),<br>        ScaleAnimatedText(&#39;IOS&#39;),<br>        ScaleAnimatedText(&#39;Web&#39;),<br>      ],<br>    ),<br>  ),<br>),</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ytIMqHkEIOnvh_4lFmqWEQ.gif" /></figure><blockquote>Typer</blockquote><ol><li>Add a SizedBox with some height.</li><li>Add the DefaultTextStyle widget in place of the child property of the SizedBox widget.<br> Give it some style using the style property which takes in the TextStyle widget.</li><li>Place the AnimatedTextKit widget in place of the child property of the DefaultTextStyle widget.</li><li>Add the repeatForever property which takes in a boolean value. Make it true. isRepeatingAnimation also needs to be set to true if you want to repeat forever.</li><li>Add the property animatedTexts to the AnimatedTextKit widget, which takes in children.</li><li>Add the TyperAnimatedText widget which takes in a String. Add as many as you want.</li></ol><pre>SizedBox(<br>  height: 65,<br>  child: DefaultTextStyle(<br>    style: TextStyle(<br>      color: Colors.<em>orange</em>,<br>      fontSize: 45,<br>    ),<br>    child: AnimatedTextKit(<br>      repeatForever: true,<br>      isRepeatingAnimation: true,<br>      animatedTexts: [<br>        TyperAnimatedText(&#39;Learn from docs,&#39;),<br>        TyperAnimatedText(&#39;courses, youtube&#39;),<br>        TyperAnimatedText(&#39;and many more.&#39;),<br>      ],<br>    ),<br>  ),<br>),</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*goNOByFUOAGeEiv7yPGhGg.gif" /></figure><blockquote>Rotate</blockquote><ol><li>Add a Row widget.</li><li>Set the mainAxisAlignMent and crossAxisAlignment to center.</li><li>Add the children property.</li><li>Add a Text widget and style it a little.</li><li>Add a SizedBox with some height.</li><li>Add the DefaultTextStyle widget in place of the child property of the SizedBox widget.<br> Give it some style using the style property which takes in the TextStyle widget.</li><li>Place the AnimatedTextKit widget in place of the child property of the DefaultTextStyle widget.</li><li>Add the repeatForever property which takes in a boolean value. Make it true. isRepeatingAnimation also needs to be set to true if you want to repeat forever.</li><li>Add the property animatedTexts to the AnimatedTextKit widget, which takes in children.</li><li>Add the RotateAnimatedText widget which takes in a String. Add as many as you want.</li></ol><pre>Row(<br>  crossAxisAlignment: CrossAxisAlignment.center,<br>  mainAxisAlignment: MainAxisAlignment.center,<br>  children: [<br>    Text(<br>      &#39;Flutter apps are &#39;,<br>      style: TextStyle(color: Colors.<em>green</em>, fontSize: 30),<br>    ),<br>    SizedBox(<br>      height: 70,<br>      child: DefaultTextStyle(<br>        style: TextStyle(<br>          fontWeight: FontWeight.<em>bold</em>,<br>          color: Colors.<em>green</em>,<br>          fontSize: 35,<br>        ),<br>        child: AnimatedTextKit(<br>          repeatForever: true,<br>          isRepeatingAnimation: true,<br>          animatedTexts: [<br>            RotateAnimatedText(&#39;fast&#39;),<br>            RotateAnimatedText(&#39;smooth&#39;),<br>            RotateAnimatedText(&#39;beautiful&#39;),<br>          ],<br>        ),<br>      ),<br>    ),<br>  ],<br>),</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5JAWnh7M4SPssVTo_qFjWQ.gif" /></figure><blockquote>Flicker</blockquote><ol><li>Add a SizedBox with some height.</li><li>Add the DefaultTextStyle widget in place of the child property of the SizedBox widget.<br> Give it some style using the style property which takes in the TextStyle widget.</li><li>Place the AnimatedTextKit widget in place of the child property of the DefaultTextStyle widget.</li><li>Add the repeatForever property which takes in a boolean value. Make it true. isRepeatingAnimation also needs to be set to true if you want to repeat forever.</li><li>Add the property animatedTexts to the AnimatedTextKit widget, which takes in children.</li><li>Add the FlickerAnimatedText widget which takes in a String. Add as many as you want.</li></ol><pre>SizedBox(<br>  height: 70,<br>  child: DefaultTextStyle(<br>    style: TextStyle(<br>      color: Colors.<em>grey</em>,<br>      fontSize: 50,<br>    ),<br>    child: AnimatedTextKit(<br>      repeatForever: true,<br>      isRepeatingAnimation: true,<br>      animatedTexts: [<br>        FlickerAnimatedText(&#39;Android Studio&#39;),<br>        FlickerAnimatedText(&#39;VS Code&#39;),<br>        FlickerAnimatedText(&#39;IntelliJ IDEA&#39;),<br>      ],<br>    ),<br>  ),<br>),</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WrCS-psDqFKb-eNul7QFtA.gif" /></figure><blockquote>Typewriter</blockquote><ol><li>Add a SizedBox with some height.</li><li>Add the DefaultTextStyle widget in place of the child property of the SizedBox widget.<br> Give it some style using the style property which takes in the TextStyle widget.</li><li>Place the AnimatedTextKit widget in place of the child property of the DefaultTextStyle widget.</li><li>Add the repeatForever property which takes in a boolean value. Make it true. isRepeatingAnimation also needs to be set to true if you want to repeat forever.</li><li>Add the property animatedTexts to the AnimatedTextKit widget, which takes in children.</li><li>Add the TypewriterAnimatedText widget which takes in a String. Add as many as you want.</li></ol><pre>SizedBox(<br>  height: 70,<br>  child: DefaultTextStyle(<br>    style: TextStyle(<br>        color: Colors.<em>purple</em>,<br>        fontSize: 50,<br>        fontWeight: FontWeight.<em>w900</em>),<br>    child: AnimatedTextKit(<br>      repeatForever: true,<br>      isRepeatingAnimation: true,<br>      animatedTexts: [<br>        TypewriterAnimatedText(&#39;Keep learning!&#39;),<br>        TypewriterAnimatedText(&#39;Keep building!&#39;),<br>        TypewriterAnimatedText(&#39;Keep fluttering!&#39;),<br>      ],<br>    ),<br>  ),<br>),</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8T-cRRU5uJxy_4Sic4NIWA.gif" /></figure><p>There is a property of all these widgets named speed, which you can use to increase or decrease the speed of the writings. But I like the default one.</p><p>That’s all🏁 about this awesome, flutter favorite package, <strong>Animated Text Kit. <br></strong>Hope you liked this article.</p><p>Make sure to hit the claps👏if you liked this article🙂 <br>If I got something wrong❌, mention it in the comments.</p><p><a href="https://www.buymeacoffee.com/akshatAryan">Buy me a coffee</a>☕ to show me your support.</p><p>You can get the complete code <a href="https://github.com/akshatAgain/animated_text_kit_flutter">here</a>👈</p><p>Reach me out at <a href="https://www.linkedin.com/in/akshat-aryan-638486214/">LinkedIn</a>, <a href="https://github.com/akshatAgain">GitHub</a> and <a href="https://twitter.com/AkshatzHere">Twitter</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2f122e558bb1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Custom Flutter Shapes Using Flutter Shape Maker (No Code)]]></title>
            <link>https://programmerspouch.medium.com/custom-flutter-shapes-using-flutter-shape-maker-no-code-ab9b57c0d71e?source=rss-f18a666f7197------2</link>
            <guid isPermaLink="false">https://medium.com/p/ab9b57c0d71e</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[flutter-shape-maker]]></category>
            <dc:creator><![CDATA[Programmers Pouch]]></dc:creator>
            <pubDate>Mon, 10 Jan 2022 14:38:18 GMT</pubDate>
            <atom:updated>2022-01-10T14:38:18.205Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*kf0OVMYmPR15wThje_P9iQ.png" /></figure><p>Creating shapes using <a href="https://api.flutter.dev/flutter/widgets/CustomPaint-class.html">CustomPaint</a> has been my favorite widget. It is a very powerful and useful widget. But as they say, “With Great Power, Comes Great Complexity”….🙄</p><p>So what can we do?</p><h4>Flutter Shape Maker</h4><p>Flutter Shape Maker is a toolset through which we can get custom made shapes’ code in flutter. It basically allows us to draw out shapes and then it gives us the CustomPaint code.</p><p>Website: <a href="https://fluttershapemaker.com/"><em>https://fluttershapemaker.com</em></a></p><h4>How To Use It?</h4><ol><li>Open the website.</li><li>Click on <a href="https://shapemaker.web.app/#/"><em>Open Shape Maker v2.5.0</em></a><em>.</em></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uV8UNWm1edfVz5iKBiOQXQ.png" /></figure><p>3. After clicking, it will take you to a new website where you can now draw any shape.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8U2WunBVRuEb8uUkpOmPrA.png" /></figure><p>4. An option like this might come, but let’s just use the normal one. Click on ‘Keep Using FSM Web’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QwfzZwvUJgNwmevCWMp9fw.png" /></figure><p>5. Let’s make a cone.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k07nil992WE-G8YDnQTb5Q.gif" /></figure><p>And, we get the code very, very easily.</p><p>I know there are many other options in this. Check them all out! This is a really great website!!</p><p>That’s all!🏁 Hope you liked this article.</p><p>Make sure to hit the claps👏if you liked this article. If I got something wrong, mention it in the comments.</p><p><a href="https://www.buymeacoffee.com/akshatAryan">Buy me a coffee</a>☕ to show me your support.</p><p>Reach me out at <a href="https://www.linkedin.com/in/akshat-aryan-638486214/">LinkedIn</a>, <a href="https://github.com/akshatAgain">GitHub</a> and <a href="https://twitter.com/AkshatzHere">Twitter</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ab9b57c0d71e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Page Transition Using “transition” Package in Flutter]]></title>
            <link>https://programmerspouch.medium.com/page-transition-using-transition-package-in-flutter-279628742412?source=rss-f18a666f7197------2</link>
            <guid isPermaLink="false">https://medium.com/p/279628742412</guid>
            <category><![CDATA[transitions]]></category>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Programmers Pouch]]></dc:creator>
            <pubDate>Wed, 05 Jan 2022 12:53:48 GMT</pubDate>
            <atom:updated>2022-01-06T03:51:31.500Z</atom:updated>
            <content:encoded><![CDATA[<p>Have you ever used transition for navigation in your flutter app. You might’ve used Hero widget.</p><p>Without animations, your app becomes pretty boring. So, you should make sure to add animations and transitions wherever possible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*Vb7jn3KTdnRhtuGeRsfQ0A.gif" /></figure><p>You can add transitions in your app by making use of many flutter packages. But, lets use this👇 package today.</p><h4><a href="https://pub.dev/packages/transition">transition</a></h4><p>A transition library that helps implement the page transition animation. 💫</p><p>Now, let’s see how we can use this in our app.</p><blockquote>How Can We Work With It?</blockquote><ol><li>Create a new Flutter project in your IDE(Any would work but I’m using Android Studio).</li><li>Open the main.dart file. Make a new stful widget. Name it TransitionDemo.</li><li>Add the package to the pubspec.yaml to its latest version.</li></ol><pre>dependencies:<br>  transition: ^2.0.2</pre><p>4. Add a Scaffold widget with a body of a Center widget.</p><p>5. Place a Column widget as the child of the Center widget. Set the mainAxisAlignment and crossAxisAlignment to center.</p><p>6. Now, let’s add 6 ElevatedButtons for 6 different transitions that are provided with this package to the children property of the Column widget.</p><pre>Column(<br>  children: [<br>    ElevatedButton(<br>      onPressed: () {},<br>      child: Text(&#39;Right to Left&#39;),<br>    ),<br>    ElevatedButton(<br>      onPressed: () {},<br>      child: Text(&#39;Left to Right&#39;),<br>    ),<br>    ElevatedButton(<br>      onPressed: () {},<br>      child: Text(&#39;Bottom to Top&#39;),<br>    ),<br>    ElevatedButton(<br>      onPressed: () {},<br>      child: Text(&#39;Top to Bottom&#39;),<br>    ),<br>    ElevatedButton(<br>      onPressed: () {},<br>      child: Text(&#39;Scale&#39;),<br>    ),<br>    ElevatedButton(<br>      onPressed: () {},<br>      child: Text(&#39;Fade&#39;),<br>    ),<br>  ],</pre><p>7. We have left the onPressed property empty. We will navigate user on button pressed. So lets make 6 other screens.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/601/1*6MdDiC_cHWii--GLiuJz2A.png" /></figure><p>8. Make a stful widget with the transition name of the screen.</p><p>9. Add a Scaffold widget with a body of a Center widget in each of the 6 screens.</p><p>10. Place a Text widget in each screen. The text will be the transition name of the screen.</p><p>11. Come back to main.dart and now import the transition package.</p><p>12. Add the Navigator.push method in all the onPressed properties.</p><p>13. Now, place Transition at the place of route.</p><p>14. In place of child, add the required stful widget name.</p><p>15. In place of another property, transitionEffect, add the required effect. Example:</p><pre>ElevatedButton(<br>  onPressed: () {<br>    Navigator.<em>push</em>(<br>      context,<br>      Transition(<br>          child: RightToLeft(),<br>          transitionEffect: TransitionEffect.RIGHT_TO_LEFT),<br>    );<br>  },<br>  child: Text(&#39;Right to Left&#39;),<br>),</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*JGLuEZTjSnAUR382zNPoOA.gif" /></figure><p>Great job!👍 Everything works just fine and it looks really cool.</p><p>That’s all!🏁 Hope you liked this article.</p><p>Make sure to hit the claps👏if you liked this article. If I got something wrong, mention it in the comments.</p><p><a href="https://www.buymeacoffee.com/akshatAryan">Buy me a coffee</a>☕ to show me your support.</p><p>Reach me out at <a href="https://www.linkedin.com/in/akshat-aryan-638486214/">LinkedIn</a>, <a href="https://github.com/akshatAgain">GitHub</a> and <a href="https://twitter.com/AkshatzHere">Twitter</a>.</p><p>Complete code <a href="https://github.com/akshatAgain/transition_package_flutter">here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=279628742412" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#4 CircularProgressIndicator and LinearProgressIndicator(Flutter Famous Widgets’ Guide)]]></title>
            <link>https://programmerspouch.medium.com/4-circularprogressindicator-and-linearprogressindicator-flutter-famous-widgets-guide-bd0550ed899b?source=rss-f18a666f7197------2</link>
            <guid isPermaLink="false">https://medium.com/p/bd0550ed899b</guid>
            <category><![CDATA[circularprogressindicator]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[linearprogressindicator]]></category>
            <category><![CDATA[dart]]></category>
            <dc:creator><![CDATA[Programmers Pouch]]></dc:creator>
            <pubDate>Sat, 25 Dec 2021 11:03:12 GMT</pubDate>
            <atom:updated>2022-01-04T07:27:50.660Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey everyone! This is the fourth article of the series, Flutter Famous Widgets’ Guide. If you haven’t yet checked the previous articles, then go right here: <a href="https://medium.com/@akshatAryan/1-tabbar-flutter-famous-widgets-guide-afbc8cf93055">1st</a>, <a href="https://medium.com/@akshatAryan/2-floatingactionbutton-flutter-famous-widgets-guide-34e276bd5b1b">2nd</a> and <a href="https://medium.com/@akshatAryan/3-card-flutter-famous-widgets-guide-1b4434f962b1">3rd</a>. Let’s get started!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*1nA_r6lIZa6fVUj9JDL-BA.png" /></figure><h4>CircularProgressIndicator and LinearProgressIndicator</h4><p>CircularProgressIndicator and LinearProgressIndicator, two topics for today. We’ll go through the basic concepts, and then check out some harder ones.</p><blockquote>What are those?</blockquote><p>CircularProgressIndicator is a material design circular progress indicator, which spins to indicate that the application is busy so that the user can hold on.</p><p>LinearProgressIndicator is a material design linear progress indicator, also known as a progress bar.</p><blockquote>How to Make Them?</blockquote><ol><li>Create a new Flutter project in your IDE(Any would work but I’m using Android Studio).</li><li>Open the main.dart file. Make a new stful widget. Name it ProgressIndicatorDemo.</li><li>Let’s first add some widgets on our screen. Add a Scaffold widget with a body of a Center widget.</li><li>Set the Column widget as the child of the Center widget.</li><li>Set the mainAxisAlignment and crossAxisAlignment to center.</li><li>Now add some children to it. Let’s the widgets in need: CircularProgessIndicator and LinearProgressIndicator.</li><li>Add some space between them by using SizedBox.</li></ol><pre>Widget build(BuildContext context) {<br>  return Scaffold(<br>    body: Center(<br>      child: Column(<br>        mainAxisAlignment: MainAxisAlignment.center,<br>        crossAxisAlignment: CrossAxisAlignment.center,<br>        children: [<br>          CircularProgressIndicator(),<br>          SizedBox(<br>            height: 60,<br>          ),<br>          LinearProgressIndicator(),<br>        ],<br>      ),<br>    ),<br>  );<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*nzWBGEBQXXATKXhcFlRp7g.gif" /></figure><p>Done! A very simple and easy case.</p><blockquote>Changing the Color</blockquote><p>Now, let’s try and change the color of these indicators. We can achieve this by using the backGroundColor properties that applies to both of them.</p><pre>CircularProgressIndicator(<br>  backgroundColor: Colors.<em>orangeAccent</em>,<br>),<br>SizedBox(<br>  height: 60,<br>),<br>LinearProgressIndicator(<br>  backgroundColor: Colors.<em>orangeAccent</em>,<br>),</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*qCGxbcmFUUuAoUedTmazDw.gif" /></figure><p>You must’ve noticed that it doesn’t change the color of the indicator completely. For that, we’ve to use the valueColor property.</p><pre>CircularProgressIndicator(<br>  valueColor: AlwaysStoppedAnimation&lt;Color&gt;(Colors.<em>greenAccent</em>),<br>  backgroundColor: Colors.<em>orangeAccent</em>,<br>),<br>SizedBox(<br>  height: 60,<br>),<br>LinearProgressIndicator(<br>  valueColor: AlwaysStoppedAnimation&lt;Color&gt;(Colors.<em>greenAccent</em>),<br>  backgroundColor: Colors.<em>orangeAccent</em>,<br>),</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*tNO6phjuZxY39p2ckpyvgA.gif" /></figure><p>This is how we do it!</p><blockquote>Changing the Dimensions</blockquote><p>Changing the dimensions is pretty easy. Wrapping them with a Container widget and provide it with height and width would do the work.</p><pre>Container(<br>  height: 60,<br>  width: 60,<br>  child: CircularProgressIndicator(<br>    valueColor: AlwaysStoppedAnimation&lt;Color&gt;(Colors.<em>greenAccent</em>),<br>    backgroundColor: Colors.<em>orangeAccent</em>,<br>  ),<br>),<br>SizedBox(<br>  height: 60,<br>),<br>Container(<br>  height: 20,<br>  width: 300,<br>  child: LinearProgressIndicator(<br>    backgroundColor: Colors.<em>orangeAccent</em>,<br>    valueColor: AlwaysStoppedAnimation&lt;Color&gt;(Colors.<em>greenAccent</em>),<br>  ),<br>),</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*ZQzQztNkdZiY0csUhsl10A.gif" /></figure><p>We can also change the width inside the indicator by using the stokeWidth property, which takes in a double(NOTE: Only for CircularProgressIndicator. You can remove the width property from the Container )</p><p>For LinearProgressIndicator, we can use the minHeight property, which takes in a double as well (NOTE: You can remove the heightwidget from the LinearProgressIndicator).</p><pre>Container(<br>  height: 40,<br>  child: CircularProgressIndicator(<br>    strokeWidth: 20,<br>    valueColor: AlwaysStoppedAnimation&lt;Color&gt;(Colors.<em>greenAccent</em>),<br>    backgroundColor: Colors.<em>orangeAccent</em>,<br>  ),<br>),<br>SizedBox(<br>  height: 60,<br>),<br>Container(<br>  height: 30,<br>  child: LinearProgressIndicator(<br>    minHeight: 20,<br>    backgroundColor: Colors.<em>orangeAccent</em>,<br>    valueColor: AlwaysStoppedAnimation&lt;Color&gt;(Colors.<em>greenAccent</em>),<br>  ),<br>),</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*7YJvqUmxBqSeMaS0BDGHSA.gif" /></figure><p>Now, that itself doesn’t look like an indicator. But, let’s go on.</p><blockquote>Controlling</blockquote><p>Now let’s control our indicators by using AnimationController. We have to add with TickerProviderStateMixin(AnimationControllerscan be created with `vsync: this` because of TickerProviderStateMixin).</p><p>Let’s add the required variables.</p><pre>class _ProgressIndicatorDemoState extends State&lt;ProgressIndicatorDemo&gt; with TickerProviderStateMixin{<br>  AnimationController controller;</pre><p>Now, set the duration using the duration property. Also add vsync: this.</p><pre>@override<br>void initState() {<br>  controller = AnimationController(<br>    vsync: this,<br>    duration: const Duration(seconds: 8),<br>  )..addListener(() {<br>      setState(() {});<br>    });<br>  controller.repeat(reverse: false);<br>  super.initState();<br>}</pre><p>Don’t forget to diposeit.</p><pre>@override<br>void dispose() {<br>  controller.dispose();<br>  super.dispose();<br>}</pre><p>Now add controller.value in place of the value property of both the indicators.</p><pre>value: controller.value,</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*NYZBIOtG8OHXuVdeUUX3ZA.gif" /></figure><p>Great work!</p><blockquote>Complete Code</blockquote><pre>import &#39;package:flutter/cupertino.dart&#39;;<br>import &#39;package:flutter/material.dart&#39;;<br><br>void main() {<br>  runApp(MyApp());<br>}<br><br>class MyApp extends StatelessWidget {<br>  // This widget is the root of your application.<br>  @override<br>  Widget build(BuildContext context) {<br>    return MaterialApp(home: ProgressIndicatorDemo());<br>  }<br>}<br><br>class ProgressIndicatorDemo extends StatefulWidget {<br>  const ProgressIndicatorDemo({Key key}) : super(key: key);<br><br>  @override<br>  _ProgressIndicatorDemoState createState() =&gt; _ProgressIndicatorDemoState();<br>}<br><br>class _ProgressIndicatorDemoState extends State&lt;ProgressIndicatorDemo&gt;<br>    with TickerProviderStateMixin {<br>  AnimationController controller;<br><br>  @override<br>  void initState() {<br>    controller = AnimationController(<br>      vsync: this,<br>      duration: const Duration(seconds: 8),<br>    )..addListener(() {<br>        setState(() {});<br>      });<br>    controller.repeat(reverse: false);<br>    super.initState();<br>  }<br><br>  @override<br>  void dispose() {<br>    controller.dispose();<br>    super.dispose();<br>  }<br><br>  Widget build(BuildContext context) {<br>    return Scaffold(<br>      body: Center(<br>        child: Column(<br>          mainAxisAlignment: MainAxisAlignment.center,<br>          crossAxisAlignment: CrossAxisAlignment.center,<br>          children: [<br>            Container(<br>              height: 45,<br>              child: CircularProgressIndicator(<br>                value: controller.value,<br>                strokeWidth: 20,<br>                valueColor: AlwaysStoppedAnimation&lt;Color&gt;(Colors.<em>greenAccent</em>),<br>                backgroundColor: Colors.<em>orangeAccent</em>,<br>              ),<br>            ),<br>            SizedBox(<br>              height: 60,<br>            ),<br>            Container(<br>              width: 300,<br>              child: LinearProgressIndicator(<br>                value: controller.value,<br>                minHeight: 20,<br>                backgroundColor: Colors.<em>orangeAccent</em>,<br>                valueColor: AlwaysStoppedAnimation&lt;Color&gt;(Colors.<em>greenAccent</em>),<br>              ),<br>            ),<br>          ],<br>        ),<br>      ),<br>    );<br>  }<br>}</pre><p>We are done🏁. Hope you enjoyed!</p><p>Make sure to hit the claps👏if you liked this article. If I got something wrong, mention it in the comments.</p><p><a href="https://www.buymeacoffee.com/akshatAryan">Buy me a coffee</a>☕ to show me your support.</p><p>Reach me out at <a href="https://www.linkedin.com/in/akshat-aryan-638486214/">LinkedIn</a>, <a href="https://github.com/akshatAgain">GitHub</a> and <a href="https://twitter.com/AkshatzHere">Twitter</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bd0550ed899b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#3 Card (Flutter Famous Widgets’ Guide)]]></title>
            <link>https://programmerspouch.medium.com/3-card-flutter-famous-widgets-guide-1b4434f962b1?source=rss-f18a666f7197------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b4434f962b1</guid>
            <category><![CDATA[cards]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[dart]]></category>
            <dc:creator><![CDATA[Programmers Pouch]]></dc:creator>
            <pubDate>Sat, 18 Dec 2021 13:32:43 GMT</pubDate>
            <atom:updated>2022-01-04T07:30:25.239Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey everyone! This is the third article of the series, Flutter Famous Widgets’ Guide. If you haven’t yet checked the previous articles, then go right here: <a href="https://medium.com/@akshatAryan/1-tabbar-flutter-famous-widgets-guide-afbc8cf93055">1st</a> and <a href="https://medium.com/@akshatAryan/2-floatingactionbutton-flutter-famous-widgets-guide-34e276bd5b1b">2nd</a>. Let’s get started!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*kBS2p8cTuRrkMblk6r499Q.png" /></figure><h4>Card</h4><p><a href="https://api.flutter.dev/flutter/material/Card-class.html">Card</a>, that’s what our topic is. We’ll go through the basic concepts, and then check out some harder ones.</p><blockquote>What is it?</blockquote><p>It is basically a material design card: a panel with slightly rounded corners and an elevation shadow.</p><blockquote>How to Make it?</blockquote><ol><li>Create a new Flutter project in your IDE(Any would work but I’m using Android Studio).</li><li>Open the main.dart file. Make a new stful widget. Name it CardDemo.</li><li>Return a Scaffold widget.</li><li>Place the Container widget as the body property of the Scaffold. Set the dimensions using height and width property of the Container.</li><li>Place the Card widget as the child property of the Container.</li><li>Wrap the Container widget with Center widget so that it can be placed at the center of the screen.</li></ol><pre>Widget build(BuildContext context) {<br>  return Scaffold(<br>    body: Center(<br>      child: Container(<br>        height: 300,<br>        width: 300,<br>        child: Card(),<br>      ),<br>    ),<br>  );<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/384/1*srzQNdWkyBhaMbv1gsARdA.png" /></figure><p>Voila! You’ve made yourself a very basic Card widget. Now, let’s try and customize it.</p><blockquote>Changing the Color</blockquote><p>Our Card widget has white color from scratch. Let’s change it! We can achieve this with the help of one of its property, color.</p><pre>body: Center(<br>  child: Container(<br>    height: 300,<br>    width: 300,<br>    child: Card(<br>      color: Colors.<em>blueAccent</em>,<br>    ),<br>  ),<br>),</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/385/1*BioqtIGO8skW9guIGCOH2w.png" /></figure><blockquote>Adding Some Widgets</blockquote><p>Our Card has been made but it doesn’t hold something in it. Let’s do it!</p><p>With the card’s child property, let’s add some text in it with the help of the Text widget.</p><pre>body: Center(<br>  child: Container(<br>    height: 300,<br>    width: 300,<br>    child: Card(<br>      color: Colors.<em>blueAccent</em>,<br>      child: Center(<br>        child: Text(<br>          &#39;Flutter is Cool&#39;,<br>          style: TextStyle(color: Colors.<em>white</em>, fontSize: 30),<br>        ),<br>      ),<br>    ),<br>  ),<br>),</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/385/1*4_f_iRwGnhjvxeYwPRMThQ.png" /></figure><p>Let’s add an image too. For that a single child property isn’t enough. We have to return the Column widget for that.</p><pre>body: Center(<br>  child: Container(<br>    height: 300,<br>    width: 300,<br>    child: Card(<br>      color: Colors.<em>blueAccent</em>,<br>      child: Column(<br>        crossAxisAlignment: CrossAxisAlignment.center,<br>        mainAxisAlignment: MainAxisAlignment.center,<br>        children: [<br>          Text(<br>            &#39;Flutter is Cool&#39;,<br>            style: TextStyle(color: Colors.<em>white</em>, fontSize: 30),<br>          ),<br>          SizedBox(height: 20),<br>          Container(height: 100, width: 100, child: FlutterLogo()),<br>        ],<br>      ),<br>    ),<br>  ),<br>),</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/384/1*C1SlHpBvuE2NF2-XpQrKdw.png" /></figure><p>Changing the Shape</p><p>Now, let’s try to change the shape of our premade Card. For that, we can use the shape property of the card. Let’s change it to a RoundedRectangleBorder with a border and radius.</p><pre>shape: RoundedRectangleBorder(<br>  side: BorderSide.<em>merge</em>(<br>      BorderSide(<br>          width: 1.5, color: Colors.<em>grey</em>, style: BorderStyle.solid),<br>      BorderSide(<br>          width: 1.5,<br>          color: Colors.<em>grey</em>,<br>          style: BorderStyle.solid)),<br>  borderRadius: BorderRadius.circular(20),<br>),</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/356/1*23bjCjMJV2wI2qKqcg3rjQ.png" /></figure><blockquote>Making it More Beautiful</blockquote><p>Now, after learning all this, can you achieve this?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/384/1*0YC4rh5040TM19XIVjjmzw.png" /></figure><p>Try it yourself and then check out the code at below.</p><blockquote>Complete Code</blockquote><pre>import &#39;package:flutter/cupertino.dart&#39;;<br>import &#39;package:flutter/material.dart&#39;;<br><br>void main() {<br>  runApp(MyApp());<br>}<br><br>class MyApp extends StatelessWidget {<br>  // This widget is the root of your application.<br>  @override<br>  Widget build(BuildContext context) {<br>    return MaterialApp(home: FloatingActionButtonDemo());<br>  }<br>}<br><br>class FloatingActionButtonDemo extends StatefulWidget {<br>  const FloatingActionButtonDemo({Key key}) : super(key: key);<br><br>  @override<br>  _FloatingActionButtonDemoState createState() =&gt;<br>      _FloatingActionButtonDemoState();<br>}<br><br>class _FloatingActionButtonDemoState extends State&lt;FloatingActionButtonDemo&gt; {<br>  @override<br>  Widget build(BuildContext context) {<br>    return Scaffold(<br>      body: Center(<br>        child: Container(<br>          height: 300,<br>          width: 300,<br>          child: Card(<br>            shape: RoundedRectangleBorder(<br>              side: BorderSide.<em>merge</em>(<br>                  BorderSide(<br>                      width: 1.5, color: Colors.<em>grey</em>, style: BorderStyle.solid),<br>                  BorderSide(<br>                      width: 1.5,<br>                      color: Colors.<em>grey</em>,<br>                      style: BorderStyle.solid)),<br>              borderRadius: BorderRadius.circular(20),<br>            ),<br>            color: Colors.<em>blueAccent</em>,<br>            child: Column(<br>              crossAxisAlignment: CrossAxisAlignment.center,<br>              mainAxisAlignment: MainAxisAlignment.center,<br>              children: [<br>                Container(<br>                  height: 250,<br>                  width: 250,<br>                  child: Card(<br>                    shape: RoundedRectangleBorder(<br>                      side: BorderSide.<em>merge</em>(<br>                          BorderSide(<br>                              width: 1.5,<br>                              color: Colors.<em>grey</em>,<br>                              style: BorderStyle.solid),<br>                          BorderSide(<br>                              width: 1.5,<br>                              color: Colors.<em>grey</em>,<br>                              style: BorderStyle.solid)),<br>                      borderRadius: BorderRadius.circular(20),<br>                    ),<br>                    color: Colors.<em>white</em>,<br>                    child: Column(<br>                      mainAxisAlignment: MainAxisAlignment.center,<br>                      crossAxisAlignment: CrossAxisAlignment.center,<br>                      children: [<br>                        Center(<br>                          child: Text(<br>                            &#39;Flutter is Cool&#39;,<br>                            style: TextStyle(<br>                                color: Colors.<em>blueAccent</em>, fontSize: 30),<br>                          ),<br>                        ),<br>                        SizedBox(height: 20),<br>                        Container(height: 100, width: 100, child: FlutterLogo())<br>                      ],<br>                    ),<br>                  ),<br>                )<br>              ],<br>            ),<br>          ),<br>        ),<br>      ),<br>    );<br>  }<br>}</pre><p>We are done🏁. Hope you enjoyed!</p><p>Make sure to hit the claps👏if you liked this article. If I got something wrong, mention it in the comments.</p><p><a href="https://www.buymeacoffee.com/akshatAryan">Buy me a coffee</a>☕ to show me your support.</p><p>Reach me out at <a href="https://www.linkedin.com/in/akshat-aryan-638486214/">LinkedIn</a>, <a href="https://github.com/akshatAgain">GitHub</a> and <a href="https://twitter.com/AkshatzHere">Twitter</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b4434f962b1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#2 FloatingActionButton (Flutter Famous Widgets’ Guide)]]></title>
            <link>https://programmerspouch.medium.com/2-floatingactionbutton-flutter-famous-widgets-guide-34e276bd5b1b?source=rss-f18a666f7197------2</link>
            <guid isPermaLink="false">https://medium.com/p/34e276bd5b1b</guid>
            <category><![CDATA[floating-action-button]]></category>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Programmers Pouch]]></dc:creator>
            <pubDate>Tue, 14 Dec 2021 13:42:40 GMT</pubDate>
            <atom:updated>2022-01-04T04:00:56.064Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey everyone! This is the second article of the series, Flutter Famous Widgets’ Guide. If you haven’t yet checked the first article, then go right <a href="https://medium.com/@akshatAryan/1-tabbar-flutter-famous-widgets-guide-afbc8cf93055">here</a>. Let’s get started!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*McARmFFCxwspby5rsYiVaw.png" /></figure><h3>FloatingActionButton</h3><p><a href="https://api.flutter.dev/flutter/material/FloatingActionButton-class.html">FloatingActionButton</a>, that’s what our topic for todays article will be. We’ll go through the basic concepts, and then dive right in into the harder ones.</p><blockquote>What is it?</blockquote><p>It is a circular icon button that hovers over content to promote a primary action in the application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/302/1*LppJqySimGQH4IMD6hqgTA.png" /></figure><blockquote>How To Make It?</blockquote><ol><li>Create a new Flutter project in your IDE(Any would work but I’m using Android Studio).</li><li>Open the main.dart file. Make a new stful widget. Name it FloatingActionButtonDemo.</li><li>Return a Scaffold widget. The Scaffold widget has a property namely floatingActionButton.</li><li>Place the FloatingActionButton widget as the floatingActionButton property of the Scaffold.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/381/1*C00OwPLnCrdRjXrUfqImbg.png" /></figure><p>Did that take time? You’ve made yourself a simple FloatingActionButton. Now, let’s try to customize it.</p><blockquote>Changing the Color</blockquote><p>Let’s change the color the FloatingActionButtonto red. We can achieve this with the help of one of its property, backgroundColor.</p><p>backgroundColor: Colors.red,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/383/1*_64sQekh284LGTY53HxHwA.png" /></figure><blockquote>Adding an Icon</blockquote><p>Now, let’s try and change its icon. We can accomplish this by placing the Icon widget under thechild property.</p><h4>NOTE:</h4><p>While using FloatingActionButton.extended, child property is disabled. So, you’ve to make use of another property called icon in that case.</p><p>child: Icon(Icons.add),</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/384/1*MA04XIH7XfGWycsPOOcbYg.png" /></figure><blockquote>Adding Text</blockquote><p>We can also add text inside this widget with the help of another of its property, label. This property takes the widget Text as an input.</p><h4>NOTE:</h4><p>This property is only enabled when the FloatingActionButton is of this kind: FloatingActionButton.extended.</p><pre>FloatingActionButton.extended(<br>  label: Text(&#39;Add&#39;),</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/382/1*SEMgf59zJDIyQNVQNp5tmQ.png" /></figure><blockquote>Changing the Size</blockquote><p>Changing the size of our FloatingActionButton is really easy. Just wrap the FloatingActionButton with a container and set your desired size through its height and width property.</p><pre>floatingActionButton: Container(<br>  height: 200,<br>  width: 200,<br>  child: FloatingActionButton.extended(<br>    icon: Icon(Icons.<em>add</em>),<br>    backgroundColor: Colors.<em>red</em>,<br>    label: Text(&#39;Add&#39;),<br>  ),<br>),</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/382/1*PevkeZK-WAXjpO0XLVDImA.png" /></figure><blockquote>Changing the Location</blockquote><p>FloatingActionButtonusually resides on one corner of the screen. You can change the location of the very simply though. There is a property of the Scaffold that is just used for this, and it is calledfloatingActionButtonLocation which takes in an input of FloatingActionButtonLocation. Here is an example:</p><p>Scaffold(<br> floatingActionButtonLocation: FloatingActionButtonLocation.<em>centerFloat</em>,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/385/1*oqERkryGaplbBfcGv7EdpQ.png" /></figure><blockquote>Changing the Shape</blockquote><p>You can even change the shape of the floatingActionButton. We can achieve this by using the shape property. There are many shapes, but let’s just look at one.(RoundedRectangularBorder)</p><pre>FloatingActionButton.extended(<br>  shape: RoundedRectangleBorder(borderRadius: BorderRadius.only(topLeft: Radius.circular(20), topRight: Radius.circular(20))),<br>  icon: Icon(Icons.<em>add</em>),<br>  label: Text(&#39;Add&#39;),<br>  backgroundColor: Colors.<em>red</em>,<br>),</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/381/1*Xrx08UVYYqO4srVea-v0Lg.png" /></figure><p>Looks nice, doesn’t it👍</p><blockquote>Complete code</blockquote><pre>import &#39;package:flutter/cupertino.dart&#39;;<br>import &#39;package:flutter/material.dart&#39;;<br><br>void main() {<br>  runApp(MyApp());<br>}<br><br>class MyApp extends StatelessWidget {<br>  // This widget is the root of your application.<br>  @override<br>  Widget build(BuildContext context) {<br>    return MaterialApp(home: FloatingActionButtonDemo());<br>  }<br>}<br><br>class FloatingActionButtonDemo extends StatefulWidget {<br>  const FloatingActionButtonDemo({Key key}) : super(key: key);<br><br>  @override<br>  _FloatingActionButtonDemoState createState() =&gt;<br>      _FloatingActionButtonDemoState();<br>}<br><br>class _FloatingActionButtonDemoState extends State&lt;FloatingActionButtonDemo&gt; {<br>  @override<br>  Widget build(BuildContext context) {<br>    return Scaffold(<br>      floatingActionButtonLocation: FloatingActionButtonLocation.<em>centerFloat</em>,<br>      floatingActionButton: FloatingActionButton.extended(<br>        shape: RoundedRectangleBorder(borderRadius: BorderRadius.only(topLeft: Radius.circular(20), topRight: Radius.circular(20))),<br>        icon: Icon(Icons.<em>add</em>),<br>        label: Text(&#39;Add&#39;),<br>        backgroundColor: Colors.<em>red</em>,<br>      ),<br>    );<br>  }<br>}</pre><p>We are done🏁. Hope you enjoyed!</p><p>Make sure to hit the claps👏if you liked this article. If I got something wrong, mention it in the comments.</p><p><a href="https://www.buymeacoffee.com/akshatAryan">Buy me a coffee</a>☕ to show me your support.</p><p>Reach me out at <a href="https://www.linkedin.com/in/akshat-aryan-638486214/">LinkedIn</a>, <a href="https://github.com/akshatAgain">GitHub</a> and <a href="https://twitter.com/AkshatzHere">Twitter</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34e276bd5b1b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#1 TabBar (Flutter Famous Widgets’ Guide)]]></title>
            <link>https://programmerspouch.medium.com/1-tabbar-flutter-famous-widgets-guide-afbc8cf93055?source=rss-f18a666f7197------2</link>
            <guid isPermaLink="false">https://medium.com/p/afbc8cf93055</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[tab-bar]]></category>
            <dc:creator><![CDATA[Programmers Pouch]]></dc:creator>
            <pubDate>Sat, 11 Dec 2021 09:53:50 GMT</pubDate>
            <atom:updated>2022-10-22T06:42:42.411Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey everyone! In this article, I’ll be starting my new series of Flutter Famous Widgets’ Guide. This is going to be a series of Flutter’s most famous widgets and I’ll be making a guide on how to use them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*ss5q1a6ZFOZhighPh2MwtA.png" /></figure><h3>TabBar</h3><p>Yes, we will be focusing on the widget <a href="https://api.flutter.dev/flutter/material/TabBar-class.html">TabBar</a>. It’s a really famous widget and today I‘ll walk you through it.</p><blockquote>What is it?</blockquote><p>It is very simply a material design widget that displays a horizontal row of tabs. It basically makes navigation a lot simpler in your app and hence, you would have seen this in many apps.</p><blockquote>How To Make It?</blockquote><ol><li>Create a new Flutter project in your IDE (Any would work but I’m using Android Studio).</li><li>Open the main.dart file. Make a new stful widget. Name it TabBarDemo.</li></ol><p>We need a DefaultTabController for the functioning of the TabBar. It is necessary to wrap the Scaffold with this.</p><h4>DefaultTabController</h4><ol><li>You can add many Tabs, but we are only making 3 for now. Place the int 3 as the property of the DefaultTabController, length.</li><li>Return Scaffold as the child of the DefaultTabController.</li><li>Place the AppBaras the appBarproperty of the Scaffold.</li><li>Place the TabBarwidget as the bottom property.</li><li>The TabBar has a propert of tabs in which you can add the tabs you want for navigation. We usually use the Tab widget for that. Add the tabs of your wish.</li></ol><p>The Tab widget has a property of icon in which you can the icon of your wish. It also has the child property in which you can add some text.</p><p>6. Provide <a href="https://api.flutter.dev/flutter/material/TabBarView-class.html">TabBarView</a>widget as the bodyof the Scaffold.</p><p>7. Add the widgets you want to show when the TabBaris used. You can multiple widgets because the TabBarViewhas a childrenproperty.</p><p>TabBarViewis like <a href="https://api.flutter.dev/flutter/widgets/PageView-class.html">PageView</a>, which is used mostly with TabBarbecause it shows the widget based on the selected tab.</p><blockquote>Complete Code:</blockquote><pre>import &#39;package:flutter/material.dart&#39;;<br><br>void main() {<br>  runApp(MyApp());<br>}<br><br>class MyApp extends StatelessWidget {<br>  @override<br>  Widget build(BuildContext context) {<br>    return MaterialApp(home: TabBarDemo());<br>  }<br>}<br><br>class TabBarDemo extends StatefulWidget {<br>  const TabBarDemo({Key key}) : super(key: key);<br><br>  @override<br>  _TabBarDemoState createState() =&gt; _TabBarDemoState();<br>}<br><br>class _TabBarDemoState extends State&lt;TabBarDemo&gt; {<br>  TabController tabController;<br><br>  @override<br>  Widget build(BuildContext context) {<br>    return DefaultTabController(<br>      length: 3,<br>      child: Scaffold(<br>        appBar: AppBar(<br>          bottom: TabBar(<br>            tabs: [<br>              Tab(<br>                icon: Icon(<br>                  Icons.<em>done</em>,<br>                  color: Colors.<em>green</em>,<br>                ),<br>                child: Text(&#39;First Tab&#39;),<br>              ),<br>              Tab(<br>                icon: Icon(<br>                  Icons.<em>create</em>,<br>                  color: Colors.<em>yellow</em>,<br>                ),<br>                child: Text(&#39;Second Tab&#39;),<br>              ),<br>              Tab(<br>                  icon: Icon(<br>                    Icons.<em>cancel</em>,<br>                    color: Colors.<em>red</em>,<br>                  ),<br>                  child: Text(&#39;Third Tab&#39;)),<br>            ],<br>          ),<br>          title: Text(&#39;Tabs Demo&#39;),<br>        ),<br>        body: TabBarView(<br>          children: [<br>            Icon(<br>              Icons.<em>done</em>,<br>              size: 350,<br>              color: Colors.<em>green</em>,<br>            ),<br>            Icon(<br>              Icons.<em>edit</em>,<br>              size: 350,<br>              color: Colors.<em>yellow</em>,<br>            ),<br>            Icon(<br>              Icons.<em>cancel</em>,<br>              size: 350,<br>              color: Colors.<em>red</em>,<br>            ),<br>          ],<br>        ),<br>      ),<br>    );<br>  }<br>}</pre><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F655601490%3Fh%3D56cc64a3b6%26app_id%3D122963&amp;dntp=1&amp;display_name=Vimeo&amp;url=https%3A%2F%2Fvimeo.com%2F655601490&amp;image=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F1323262168-f48a411716c5197697d9376991db0431b28af6b8c48e9e8a3d29bf4ba9020707-d_640&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=vimeo" width="720" height="1280" frameborder="0" scrolling="no"><a href="https://medium.com/media/764310997beb8ac1c22ea098c9613a4c/href">https://medium.com/media/764310997beb8ac1c22ea098c9613a4c/href</a></iframe><p>We are done🏁. Hope you enjoyed making this TabBar with me.</p><p>Make sure to hit the claps👏if you liked this article. If I got something wrong, mention it in the comments.</p><p><a href="https://www.buymeacoffee.com/akshatAryan">Buy me a coffee</a>☕ to show me your support.</p><p>Reach me out at <a href="https://www.linkedin.com/in/akshat-aryan-638486214/">LinkedIn</a>, <a href="https://github.com/akshatAgain">GitHub</a> and <a href="https://twitter.com/AkshatzHere">Twitter</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=afbc8cf93055" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Share Your Flutter Project On GitHub As A Repository]]></title>
            <link>https://programmerspouch.medium.com/share-your-flutter-project-on-github-as-a-repository-eb7116c3734e?source=rss-f18a666f7197------2</link>
            <guid isPermaLink="false">https://medium.com/p/eb7116c3734e</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Programmers Pouch]]></dc:creator>
            <pubDate>Wed, 01 Dec 2021 15:23:34 GMT</pubDate>
            <atom:updated>2022-01-04T03:59:43.051Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*duuzxXsPgAaq7A8pe8ZQtA.png" /></figure><p>In this article, we’ll be looking at how to share your Flutter project on GitHub as a repository in an easy way.</p><p>What are we waiting for? <strong>Let’s go!🔥</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*xhtAclfDA3Oxw8Zc9reepQ.gif" /></figure><ol><li>Open Android Studio and open the Flutter project you want to make a repository of.</li></ol><p>2. Once opened, on top you’ll see an option of VCS. Click on that and a dropdown menu will appear. Then click on Import into Version Control and then Share Project on GitHub.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xRCBs2fGPx_dFqoI6mNdqA.png" /></figure><p>3. A pop-up will come up and will taunt you to enter your GitHub credentials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6KH5W-VWKbZjutjAhhjpmg.png" /></figure><p>4. If you somehow forgot your GitHub credentials, then click on Use Token and then click on Generate…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iteIN2X_Y7OhyC9-8Cq6sA.png" /></figure><p>5. Once pressed, it will redirect you to a webpage. Go down and you’ll see an option for Generate Token. Click on that.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r2PfwPHrI_4APjgBt_tqVQ.png" /></figure><p>6. After that, copy your token and paste it into Android Studio and hit login.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JfUsLLE4_dEaQlHdrdia1Q.png" /></figure><p>7. A pop-up will come up. Hit Share.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_AcYy1_XeFr-uvGVLLZVmg.png" /></figure><p>After sometime, another pop-up will come up. Check what you want to add into your repository and hit Add.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SceaXMcA5uWiPfh80d948g.png" /></figure><p>After about 3 to 4 minutes⌚, something will come up on the event log.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/449/1*pbP5O6qHhssrVSYKM4HTCg.png" /></figure><p>Congratulations, you’ve shared your project on GitHub as repository.👏</p><p>You can check your repository on GitHub to see if it got shared.</p><p>Thank you for reading my article. If I got something wrong, make sure to mention it in the comments.</p><p>If you liked it, then make sure to give me some claps👏 and follow me for more such articles. Bye!👋</p><p><a href="https://www.buymeacoffee.com/akshatAryan">Buy me a coffee</a>☕ to show me your support.</p><p>Reach me out on <a href="https://www.linkedin.com/in/akshat-aryan-638486214/">LinkedIn </a>and <a href="https://twitter.com/AkshatzHere">Twitter</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eb7116c3734e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Detecting First Time App Launch In Flutter]]></title>
            <link>https://programmerspouch.medium.com/detecting-first-time-app-launch-in-flutter-7af4cf4f6bcd?source=rss-f18a666f7197------2</link>
            <guid isPermaLink="false">https://medium.com/p/7af4cf4f6bcd</guid>
            <dc:creator><![CDATA[Programmers Pouch]]></dc:creator>
            <pubDate>Thu, 11 Nov 2021 06:45:58 GMT</pubDate>
            <atom:updated>2022-01-04T03:59:16.855Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pymyKwiUw4rZ639y8s9-_A.png" /></figure><p>Showing the same splash screen again and again after user launches app is boring🥱. You might’ve seen in most of the apps that at the app’s first time launch, the splash is different than the second time launch. That’s what we are going to implement in this article😮.</p><p>This is what we are going to make.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/383/1*GoH8i8ZUd99QiGqho4Nb0w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/379/1*IvNi9phKAydSju9HzvuG0A.png" /><figcaption>First Time(Left) and Thereafter(Right)</figcaption></figure><p>If you haven’t yet read my article of how to implement a normal splash screen, then you can check it out right <a href="https://medium.com/@darkShaderDARK_SHADER/custom-splash-screen-in-flutter-with-dart-c22d652f09a6">here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*WPFE3w3_qnKCRN27RkCwtg.gif" /></figure><p>We’ll be using the package called <a href="https://pub.dev/packages/shared_preferences">shared_preferences</a> for this thing to come true and another package called <a href="https://pub.dev/packages/sleek_circular_slider">sleek_circular_slider</a> which is a highly customizable circular slider/progress bar &amp; spinner for Flutter.</p><p>So add both of them to the pubspec.yaml to their latest versions:</p><pre>dependencies:<br>  shared_preferences: ^2.0.6<br>  sleek_circular_slider: ^2.0.1</pre><p>Now, let’s go one with the code.</p><p>Create a new dart file named shared_preferences that will hold the logic. In that file make a stful widget naming it SharedPref. To detect the first time launch, let’s create a boolean value for it too.</p><pre>class SharedPref extends StatefulWidget {<br>  const SharedPref({Key key}) : super(key: key);<br><br>  @override<br>  _SharedPrefState createState() =&gt; _SharedPrefState();<br>}<br><br>class _SharedPrefState extends State&lt;SharedPref&gt; {<br>  bool isFirstLaunch = false;<br><br>  @override<br>  Widget build(BuildContext context) {<br>    return Scaffold();<br>  }<br>}</pre><p>Now initialize the boolean value with the SharedPreferences package.</p><pre>bool isFirstLaunch = false;<br><br>SharedState() {<br>  MySharedPreferences.<em>instance<br>      </em>.getBooleanValue(&quot;isfirstRun&quot;)<br>      .then((value) =&gt; setState(() {<br>    isFirstLaunch = value;<br>  }));<br>}</pre><p>Now to show the respective splash screens.</p><pre>Widget build(BuildContext context) {<br>  return MaterialApp(<br>      debugShowCheckedModeBanner: false,<br>      title: &#39;Flutter Launch Detection Demo&#39;,<br>      //if true return intro screen for first time Else go to login Screen<br>      home: isFirstLaunch ? FirstSplashScreen() : SecondSplashScreen());<br>}</pre><p>Make a class outside of the stful widget that’ll help us with the logic</p><pre>class MySharedPreferences {<br>  MySharedPreferences._privateConstructor();<br><br>  static final MySharedPreferences <em>instance </em>=<br>      MySharedPreferences._privateConstructor();<br><br>  setBooleanValue(String key, bool value) async {<br>    SharedPreferences myPrefs = await SharedPreferences.<em>getInstance</em>();<br>    myPrefs.setBool(key, value);<br>  }<br><br>  Future&lt;bool&gt; getBooleanValue(String key) async {<br>    SharedPreferences myPrefs = await SharedPreferences.<em>getInstance</em>();<br>    return myPrefs.getBool(key) ?? false;<br>  }<br>}</pre><p>We are done with the logic. Now let’s move onto the other screens</p><p>This splash screen, the FirstSplashScreen is meant only for the first time launch. Let’s make it.</p><p>Create new dart file named first_splash_screen and make a stful widget named FirstSplashScreen and the other respective variables. [Don’t forget to import dart:async]</p><pre>class FirstSplashScreen extends StatefulWidget {<br>  @override<br>  State&lt;StatefulWidget&gt; createState() =&gt; StartState();<br>}<br><br>class StartState extends State&lt;FirstSplashScreen&gt; {<br>  @override<br>  Widget build(BuildContext context) {<br>    return initScreen(context);<br>  }<br><br>  @override<br>  void initState() {<br>    super.initState();<br>    startTimer();<br>  }<br><br>  startTimer() async {<br>    var duration = Duration(seconds: 17);<br>    return new Timer(duration, route);<br>  }<br><br>  route() {<br>    Navigator.<em>push</em>(<br>        context, MaterialPageRoute(builder: (context) =&gt; HomeScreen()));<br>  }</pre><p>Let’s go on with the simple UI.</p><pre>initScreen(BuildContext context) {<br>  return Scaffold(<br>    backgroundColor: Colors.<em>blueAccent</em>,<br>    body: Center(<br>      child: Column(<br>        mainAxisAlignment: MainAxisAlignment.center,<br>        crossAxisAlignment: CrossAxisAlignment.center,<br>        children: &lt;Widget&gt;[<br>          Text(<br>            &#39;Launch Detection Demo&#39;,<br>            style: TextStyle(fontSize: 50.0, color: Colors.<em>white</em>),<br>          ),<br>          SizedBox(<br>            height: 20,<br>          ),<br>          SleekCircularSlider(<br>            min: 0,<br>            max: 100,<br>            initialValue: 100,<br>            appearance: CircularSliderAppearance(<br>              infoProperties: InfoProperties(<br>                  mainLabelStyle: TextStyle(<br>                color: Colors.<em>white</em>,<br>                fontSize: 25,<br>              )),<br>              customColors: CustomSliderColors(<br>                  dotColor: Colors.<em>white</em>,<br>                  progressBarColor: Colors.<em>black</em>,<br>                  shadowColor: Colors.<em>white</em>,<br>                  trackColor: Colors.<em>white</em>),<br>              spinnerDuration: 10,<br>              animDurationMultiplier: 10,<br>              animationEnabled: true,<br>              startAngle: 0.0,<br>              angleRange: 360,<br>            ),<br>          ),<br>          Text(<br>            &#39;Initializing app...&#39;,<br>            style: TextStyle(color: Colors.<em>white</em>, fontSize: 20),<br>          ),<br>        ],<br>      ),<br>    ),<br>  );<br>}</pre><p>We are done with this screen too. Let’s complete the other one now.</p><p>This splash screen, the SecondSplashScreen is meant only for the second time launch and thereafter.</p><p>Make a new dart file named second_splash_screen and make a stful widget called SecondSplashScreen and the other respective variables. [Don’t forget to import dart:async]</p><pre>class SecondSplashScreen extends StatefulWidget {<br>  @override<br>  State&lt;StatefulWidget&gt; createState() =&gt; StartState();<br>}<br><br>class StartState extends State&lt;SecondSplashScreen&gt; {<br>  @override<br>  Widget build(BuildContext context) {<br>    return initScreen(context);<br>  }<br><br>  @override<br>  void initState() {<br>    super.initState();<br>    startTimer();<br>  }<br><br>  startTimer() async {<br>    var duration = Duration(seconds: 5);<br>    return new Timer(duration, route);<br>  }<br><br>  route() {<br>    Navigator.<em>push</em>(<br>      context,<br>      MaterialPageRoute(<br>        builder: (context) =&gt; HomeScreen(),<br>      ),<br>    );<br>  }</pre><p>Let’s go on with the simple UI now.</p><pre>initScreen(BuildContext context) {<br>  return Scaffold(<br>    backgroundColor: Colors.<em>blueAccent</em>,<br>    body: Padding(<br>      padding: EdgeInsets.only(top: 20.0, left: 20.0, right: 20.0),<br>      child: Column(<br>        mainAxisAlignment: MainAxisAlignment.center,<br>        crossAxisAlignment: CrossAxisAlignment.center,<br>        children: &lt;Widget&gt;[<br>          Center(<br>            child: Text(<br>              &#39;Launch Detection Demo&#39;,<br>              style: TextStyle(fontSize: 50.0, color: Colors.<em>white</em>),<br>            ),<br>          ),<br>          SizedBox(<br>            height: 20,<br>          ),<br>          SleekCircularSlider(<br>            appearance: CircularSliderAppearance(<br>              customColors: CustomSliderColors(<br>                  dotColor: Colors.<em>white</em>,<br>                  progressBarColor: Colors.<em>black</em>,<br>                  shadowColor: Colors.<em>white</em>,<br>                  trackColor: Colors.<em>white</em>),<br>              spinnerMode: true,<br>              animationEnabled: true,<br>              size: 50.0,<br>              customWidths:<br>                  CustomSliderWidths(trackWidth: 10.0, shadowWidth: 5.0),<br>            ),<br>            initialValue: 90,<br>            onChange: (double value) {<br>              print(value);<br>            },<br>          ),<br>        ],<br>      ),<br>    ),<br>  );<br>}</pre><p>We are done with this screen as well.</p><p>Now let’s create the home screen for just the sake of making it.</p><pre>import &#39;package:flutter/material.dart&#39;;<br><br>class HomeScreen extends StatefulWidget {<br>  const HomeScreen({Key key}) : super(key: key);<br><br>  @override<br>  _HomeScreenState createState() =&gt; _HomeScreenState();<br>}<br><br>class _HomeScreenState extends State&lt;HomeScreen&gt; {<br>  @override<br>  Widget build(BuildContext context) {<br>    return Scaffold(<br>      backgroundColor: Colors.<em>blueAccent</em>,<br>      body: Center(child: Text(&#39;Good Luck For Your Awesome Flutter Journey&#39;, style: TextStyle(color: Colors.<em>white</em>, fontWeight: FontWeight.<em>bold</em>),)),<br>    );<br>  }<br>}</pre><p>Your main.dart will look something like this:</p><pre>import &#39;package:flutter/material.dart&#39;;<br>import &#39;shared_preferences.dart&#39;;<br><br>void main() {<br>  runApp(MyApp());<br>}<br><br>class MyApp extends StatelessWidget {<br>  // This widget is the root of your application.<br>  @override<br>  Widget build(BuildContext context) {<br>    return MaterialApp(<br>      home: SharedPref(),<br>    );<br>  }<br>}</pre><p>And…. that’s it🏁</p><p>If you liked the article, make sure to smash that clap button👏. Don’t forget to follow me for many other articles like that.</p><p><a href="https://www.buymeacoffee.com/akshatAryan">Buy me a coffee</a>☕ to show me your support.</p><p>Reach me out at GitHub <a href="https://github.com/dark-Shader">here</a>. You can find the source <a href="https://github.com/dark-Shader/launch_detection_flutter">here</a>.</p><p>Later!👋</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7af4cf4f6bcd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Implementing Side Drawer In Your Flutter App]]></title>
            <link>https://programmerspouch.medium.com/implementing-side-drawer-in-your-flutter-app-b0c2e4a1cea6?source=rss-f18a666f7197------2</link>
            <guid isPermaLink="false">https://medium.com/p/b0c2e4a1cea6</guid>
            <dc:creator><![CDATA[Programmers Pouch]]></dc:creator>
            <pubDate>Thu, 21 Oct 2021 05:28:07 GMT</pubDate>
            <atom:updated>2022-01-04T03:58:41.856Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/496/1*BKLNRUTnJRna4tOq4069sg.png" /></figure><p>Hey! In this article, we’ll be looking at creating a Drawer in flutter.🙀</p><p>The drawer is usually made for users to navigate through screens rapidly. If you haven’t seen a drawer before, here is what we’ll be making.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F637333964%3Fh%3Da8c30366e4%26app_id%3D122963&amp;dntp=1&amp;display_name=Vimeo&amp;url=https%3A%2F%2Fvimeo.com%2F637333964&amp;image=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F1280326444-17e73c11b3366ad6391b9ec53cd12e4f6044d56a3122e4898_640&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=vimeo" width="946" height="2048" frameborder="0" scrolling="no"><a href="https://medium.com/media/3bc0400d79bcc863e12b14922c814ef7/href">https://medium.com/media/3bc0400d79bcc863e12b14922c814ef7/href</a></iframe><p>So let’s get started!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*xhtAclfDA3Oxw8Zc9reepQ.gif" /></figure><p>For making a drawer, we use the Drawer widget. A Drawer is usually made with a Scaffold’s drawer property.</p><p>First, make a Scaffold with the drawer property.</p><pre>Scaffold(<br>  drawer:<br>);</pre><p>Now, add the Drawer widget.</p><pre>Scaffold(<br>  drawer: Drawer(<br>    child:<br>  ),<br>);</pre><p>Now, we have the Drawer up and ready. Add some content to it. We’ll be using a ListView widget for the child of the Drawer with some ListTiles and DrawerHeader. ListView is helpful because we can scroll through it if your widgets have taken more space than the screen supports.</p><pre>drawer: Drawer(<br>  child: ListView(<br>    children: [<br>      DrawerHeader(<br>        child: CircleAvatar(<br>          child: Image.asset(&#39;&#39;),<br>        ),<br>      ),<br>      ListTile(<br>        title: Text(<br>          &#39;Profile&#39;,<br>          style: TextStyle(color: Colors.<em>blue</em>),<br>        ),<br>        leading: Icon(<br>          Icons.<em>person</em>,<br>          color: Colors.<em>blue</em>,<br>        ),<br>      ),<br>      ListTile(<br>        title: Text(<br>          &#39;Share&#39;,<br>          style: TextStyle(color: Colors.<em>blue</em>),<br>        ),<br>        leading: Icon(<br>          Icons.<em>share</em>,<br>          color: Colors.<em>blue</em>,<br>        ),<br>      ),<br>      ListTile(<br>        title: Text(<br>          &#39;Settings&#39;,<br>          style: TextStyle(color: Colors.<em>blue</em>),<br>        ),<br>        leading: Icon(<br>          Icons.<em>settings</em>,<br>          color: Colors.<em>blue</em>,<br>        ),<br>      ),</pre><p>The Drawer has been made. But, the users can’t use it. Why?🤔 Of course, we haven’t made anything through which the users can click their way to the Drawer.</p><p>Actually, we don’t have to make any widget for that.😮 Since we have made a Scaffold, we have to add an AppBar to it. And with the AppBar’s iconTheme property, it can automatically detect the Drawer and make an icon for it.</p><p>If you don’t want the AppBar to be seen, change the elevation to 0 and the same color as the screen.</p><p>We can also change the drawerEnableOpenDragGesture property of the Scaffold to true so that the users can drag the drawer to close and open it.</p><p>So, add it in the Scaffold.</p><pre>appBar: AppBar(<br>  iconTheme: IconThemeData(size: 20),<br>  elevation: 0.0,<br>  backgroundColor: Colors.<em>white</em>,<br>),<br>drawerEnableOpenDragGesture: true,</pre><p>And, we have come to the end!🔚</p><p>Here’s the complete code file:</p><pre>Scaffold(<br>  appBar: AppBar(<br>    iconTheme: IconThemeData(size: 20),<br>    elevation: 0.0,<br>    backgroundColor: Colors.<em>white</em>,<br>  ),<br>  drawerEnableOpenDragGesture: true,<br>  drawer: Drawer(<br>    child: ListView(<br>      children: [<br>        DrawerHeader(<br>          child: CircleAvatar(<br>            child: Image.asset(&#39;&#39;),<br>          ),<br>        ),<br>        ListTile(<br>          title: Text(<br>            &#39;Profile&#39;,<br>            style: TextStyle(color: Colors.<em>blue</em>),<br>          ),<br>          leading: Icon(<br>            Icons.<em>person</em>,<br>            color: Colors.<em>blue</em>,<br>          ),<br>        ),<br>        ListTile(<br>          title: Text(<br>            &#39;Share&#39;,<br>            style: TextStyle(color: Colors.<em>blue</em>),<br>          ),<br>          leading: Icon(<br>            Icons.<em>share</em>,<br>            color: Colors.<em>blue</em>,<br>          ),<br>        ),<br>        ListTile(<br>          title: Text(<br>            &#39;Settings&#39;,<br>            style: TextStyle(color: Colors.<em>blue</em>),<br>          ),<br>          leading: Icon(<br>            Icons.<em>settings</em>,<br>            color: Colors.<em>blue</em>,<br>          ),<br>        ),<br>      ],<br>    ),<br>  ),<br>);</pre><p>This was all about this article. Hope to meet you soon again.</p><p>You can reach me out at <a href="https://github.com/akshatAgain/">GitHub</a>, <a href="https://www.linkedin.com/in/akshat-aryan-638486214/">LinkedIn</a> and <a href="https://twitter.com/AkshatzHere">Twitter</a>. Don’t forget to follow me on <a href="https://medium.com/@darkShaderDARK_SHADER">Medium </a>so that you can get the latest updates for my articles.</p><p><a href="https://www.buymeacoffee.com/akshatAryan">Buy me a coffee</a>☕ to show me your support.</p><p>Bye!👋</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b0c2e4a1cea6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>