<?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 Saheb Singh on Medium]]></title>
        <description><![CDATA[Stories by Saheb Singh on Medium]]></description>
        <link>https://medium.com/@thegrowingdeveloper?source=rss-c7efdaef256b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*Ib__zJB4vZOq5oQh3JId3Q.jpeg</url>
            <title>Stories by Saheb Singh on Medium</title>
            <link>https://medium.com/@thegrowingdeveloper?source=rss-c7efdaef256b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 12:24:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@thegrowingdeveloper/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[NavigationRail - Latest Widget added in Flutter]]></title>
            <link>https://medium.com/@thegrowingdeveloper/navigationrail-latest-widget-added-in-flutter-733276406326?source=rss-c7efdaef256b------2</link>
            <guid isPermaLink="false">https://medium.com/p/733276406326</guid>
            <category><![CDATA[flutter-widget]]></category>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Saheb Singh]]></dc:creator>
            <pubDate>Tue, 12 May 2020 02:10:19 GMT</pubDate>
            <atom:updated>2020-05-13T15:49:38.362Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*V0qAP5tvrbiebfpcEIQsUw.gif" /><figcaption>credits : material.io</figcaption></figure><p>Flutter 1.17 is now officially released with lots of features and improvements. NavigationRail() is one of those widgets that were added to collection and I am personally liking the concept as it opens up a whole lot of opportunities to design a perfect UI for a mobile application with seamless Navigation.</p><p>You can also watch the NavigationRail in action and learn to implement it in this video.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FERAYW3Cq_3M%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DERAYW3Cq_3M&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FERAYW3Cq_3M%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/c35cc6b7f95a9d0d549619018fcdbc68/href">https://medium.com/media/c35cc6b7f95a9d0d549619018fcdbc68/href</a></iframe><p>The icons you see in the <strong>Rail</strong> is known as <strong>NavigationRailDestination. </strong>Let’s look at the code that I wrote for this NavigationRail().</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/63ac49669e81d2752f91a78f90c732c9/href">https://medium.com/media/63ac49669e81d2752f91a78f90c732c9/href</a></iframe><p>A navigation rail is usually used as the first or last element of a Row which defines the app’s Scaffold body. I used a Row with first child as the NavigationRail() and the other an Expanded widget that contains a Container with the Text widget displaying the current selected index.</p><h3>What parameters you get :-</h3><p>Let’s look at the parameters used inside NavigationRail</p><ul><li><strong><em>destinations </em></strong>: Takes up a list of NavigationRailDestination(icons and labels in NavigationRail are termed as destinations).NavigationRailDestination has three parameters- icon ,label and selectedIcon</li><li><strong>selectedIndex</strong> : The present selected index</li><li><strong><em>backgroundColor</em></strong> : gives background color to the NavigationRail , a darkish shade of grey in this case.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/839/1*arie9wz9n-Qw0GJH9lFsOA.png" /></figure><ul><li><strong><em>extended</em></strong> : whether the rail needs to be extended or not , I used a boolean value and GestureDetector to toggle the boolean value on tap, i.e the rail gets extended and vice versa when tapped.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CqGzKiIMD_59I6QZm3uDcQ.png" /></figure><ul><li><strong><em>labelType</em></strong> : you can choose between three labelTypes : <strong>NavigationRailLabelType.none: </strong>No label to be shown , <strong>NavigationRailLabelType.selected: </strong>Label show only on selected destinations(icons), <strong>NavigationRailLabelType.all : </strong>Label shown on all destinations</li><li><strong><em>selectedLabelTextStyle, unselectedLabelTextStyle :</em></strong> You can define your own text styles for your labels.</li><li><strong><em>selectedIconTheme, unselectedIconTheme : </em></strong>You can define your own Icon Theme here.</li></ul><p>To know more about the other parameters and methods, you go to this <a href="https://api.flutter.dev/flutter/material/NavigationRail-class.html">link</a>.</p><p>I am very excited to explore the possibilities of how we can add the NavigationRail in our UI to make it more attractive and seamlessly Navigable.</p><p>I’m gonna wrap up for this now, Hope you enjoyed reading about the NavigationRail and do let me know how you feel about this widget.</p><p>Happy Coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=733276406326" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[COVID-19 Tracker Mobile app | Overview and Explanation]]></title>
            <link>https://medium.com/@thegrowingdeveloper/covid-19-tracker-mobile-app-overview-and-explanation-e2867fb04fe2?source=rss-c7efdaef256b------2</link>
            <guid isPermaLink="false">https://medium.com/p/e2867fb04fe2</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[api-integration]]></category>
            <category><![CDATA[covid19]]></category>
            <dc:creator><![CDATA[Saheb Singh]]></dc:creator>
            <pubDate>Mon, 27 Apr 2020 08:35:30 GMT</pubDate>
            <atom:updated>2020-06-16T15:04:05.982Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K6Ba-5wwZqWgqjzakze2FA.png" /><figcaption>Crisp UI with full API integration</figcaption></figure><p>#StaySafe #StayAtHome</p><p>Corona Virus outbreak has undoubtedly shut-down all the world , be it be the powereful USA or the med-giant Italy. COVID-19 has now become a serious concern and needs to be tackled with great patience and public co-operation. It’s always better to stay aware of the cases around the globe and to be aware of the countries that are most affected by this disease.</p><p>The complete video is out on our<a href="https://www.youtube.com/c/TheGrowingDeveloper"> Youtube channel</a></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FXFGf_jMJSfw%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DXFGf_jMJSfw&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FXFGf_jMJSfw%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/8c67a3f3d7e7b405eae0e1eded9281fe/href">https://medium.com/media/8c67a3f3d7e7b405eae0e1eded9281fe/href</a></iframe><p>The main points covered in this tutorial are:</p><ul><li>API used &gt; To learn about fetching data from API in detail &gt; <a href="http://thegrowingdeveloper.org/coding-blog/flutter-api-integration-learn-to-fetch-data-from-internet">Detailed API Tutorial</a></li><li>methods to call the API</li><li>sorting the data according to the cases counts</li></ul><p>Let’s see how the code is structured.</p><p>In this tutorial , we will learn how we can develop or own COVID-19 mobile application using Google’s latest framework Flutter. So without wasting any time let’s start.<br>Start by creating a new flutter project and I’ll name it as tgd_corona_tracker</p><p>We will first create a column and wrap it with <strong>SingleChildScrollView()</strong> widget to make it scrollable(Column by default is not scrollable).</p><p>The code for making the first container having the quote is as follows:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/70107917ec88dc55e8076ff06f124f30/href">https://medium.com/media/70107917ec88dc55e8076ff06f124f30/href</a></iframe><p>We have our main data class where we have stored the quote as well as the faqs written statically.Let’s see what is inside our <strong>DataSource</strong> class in datasource.dart file.</p><p>Now comes the WorldWide panel, for this world wide panel we have created another class and passed the worldwide data from our main <strong>HomePage()</strong> class.(HomePage() is our root class )</p><p>First, let’s see how the data is fetched and then we will look into the WorldWide panel structure.</p><p><strong>Fetching data from the Corona Api:</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f8fd7da7b9a591b4a8a9c39ffb97fbe4/href">https://medium.com/media/f8fd7da7b9a591b4a8a9c39ffb97fbe4/href</a></iframe><p>Map worldData is now storing the data which is passed to WorldWide Panel. The reference is made just after the quote Container like this:</p><pre>worldData == null? CircularProgressIndicator(): <br>WorldwidePanel(worldData: worldData,)</pre><h3>WorldWidePanel() structure is as follows:</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/52934f825fdfd71da4910ee9f4c04ed9/href">https://medium.com/media/52934f825fdfd71da4910ee9f4c04ed9/href</a></iframe><p>Similarly for the most affected countries , I have created another function as follows:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ebc122a8877ad2349ffcd7d4157548cf/href">https://medium.com/media/ebc122a8877ad2349ffcd7d4157548cf/href</a></iframe><p>List countryData will now have the most affected countries data in descending order, we will bw displaying only the top five affected countries. Let’s have a look at the structure</p><h3>MostAffectedCountries panel.</h3><p>Let’s make our MostAffectedCountries panel which will show the details of the most affected countries.Make a new file as mostAffectedPanel.dart and copy the code below.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2ba0c0ebf7713b1b5d99dd71fe0878c7/href">https://medium.com/media/2ba0c0ebf7713b1b5d99dd71fe0878c7/href</a></iframe><p>The api provides the details of all the countries sorted according to the number of deaths.We will display only the top five affected countries hence the itemCount for the ListView.builder is set to 5 only.</p><h3>InfoPanel()</h3><p>Next is our InfoPanel() which mainly consists of three buttons:</p><ul><li>FAQ button</li><li>Donate Button</li><li>Myth Busters Button</li></ul><p>FAQ button will open our FAQs page which will contain the FAQs statically stored. The other two buttons will open the Donation link and MythBusters link of the WHO website respectively.The code for the same is like this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d68b306d5cbb3fa43eb98f8f2cd270cc/href">https://medium.com/media/d68b306d5cbb3fa43eb98f8f2cd270cc/href</a></iframe><p>For the sake of the length of this blog , I have uploaded the entire code structure on my Githib repo :</p><p><a href="https://github.com/singh-saheb/tgd_covid_tracker_app">tgd_corona_tracker source code</a></p><p>The same API (corona.lmao.ninja/countries) was used in the Country wise stats page to get the country details.<br>You can watch the video for a more detailed explanation</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e2867fb04fe2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building Amazing Wallet UI from Scratch in Flutter]]></title>
            <link>https://medium.com/@thegrowingdeveloper/building-amazing-wallet-ui-from-scratch-in-flutter-1503c5124662?source=rss-c7efdaef256b------2</link>
            <guid isPermaLink="false">https://medium.com/p/1503c5124662</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[ui-design]]></category>
            <category><![CDATA[flutter-ui]]></category>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[app-development]]></category>
            <dc:creator><![CDATA[Saheb Singh]]></dc:creator>
            <pubDate>Mon, 27 Apr 2020 08:27:13 GMT</pubDate>
            <atom:updated>2020-06-09T07:18:32.250Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wy-_SzTr6Xxqm7QauAXbtw.png" /></figure><p>The UI just looks crisp and amazing but at the same time pretty complex right? Don’t worry , this guide will walk you through all the steps and in the atmost simplest ways.</p><p>If you prefer watching the video , then I just uploaded the video for this UI on my youtube channel <a href="https://www.youtube.com/watch?v=zyhPamYS3BU&amp;t=8s"><strong>The Growing Developer</strong></a><strong> </strong>,<strong> </strong>The video is embedded below :)</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FzyhPamYS3BU%3Fstart%3D8%26feature%3Doembed%26start%3D8&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DzyhPamYS3BU&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FzyhPamYS3BU%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/15f019cbbe343b458cc773d914c76268/href">https://medium.com/media/15f019cbbe343b458cc773d914c76268/href</a></iframe><p>To read all the <strong>must-read</strong> articles, go to <a href="http://thegrowingdeveloper.org/">The Growing Developer</a></p><p>Start by creating a new flutter project. You can either use Android Studio or Visual Studio Code and if you prefer terminal then run the below command in your preferred terminal</p><pre>flutter create my_wallet_app_ui</pre><p>Now head to your <strong>lib</strong> folder and you will find the <strong><em>main.dart</em></strong> file, this is the entry point for your flutter application and we will write the code to initialise our app in this file.Copy the below code in your <em>main.dar</em>t file and I’ll explain you a little.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e520d746fc39022d8ca1bf79f5054060/href">https://medium.com/media/e520d746fc39022d8ca1bf79f5054060/href</a></iframe><ul><li>As you can see that we have declared our main() function and inside that we have called our runApp() function which has the MyApp() object in it which in turn return the MaterialApp widget which is responsible for attaching our flutter app to the view.</li><li>The ThemeData is having the fontFamily parameter set up as “Circular” i.e I am using custom fonts in my application.You can get the fonts from my github repo(link at the end)</li></ul><h3>DashboardPage()</h3><p>Make a new file and name it as <em>dashboard.dart ,</em>copy the below code in the dashboard.dart file and will explain you a little</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1b0dc97bff4182a8b39f02a023a61aa1/href">https://medium.com/media/1b0dc97bff4182a8b39f02a023a61aa1/href</a></iframe><ul><li><strong>CustomAppBar() </strong>is our custom built app bar widget</li><li><strong>CardWidget()</strong> contains the code for making or card UI</li><li><strong>ExpensesWidget() </strong>contains the expense list and the pie chart logic</li></ul><p>All the widgets are passed inside a Column to arrange them in vertical direction, Expanded() is used to equally spread the CardWidget() and ExpensesWidget()</p><p>SizeConfig is just a class that I made to get the dynamic height and width of the screen.You can replace it by the following line</p><p><em>//MediaQuery.of(context).size.width/height</em></p><h3>CardWidget():</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d0ff6ea7789c1b31c7f0df4c1029d822/href">https://medium.com/media/d0ff6ea7789c1b31c7f0df4c1029d822/href</a></iframe><p><strong>Stack</strong> and <strong>Positioned</strong> are used to give the Circles that you can see in the UI on the Credit Card.The card logo is a png image which is inside an images folder. Similarly for the BankCard() widget Alignment() is used to allign the details accordingly at different places on the card.</p><p>Below is the code fo the <strong>BankCard() </strong>widget:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ef74917d49befaeee56e96ffc88eb2cd/href">https://medium.com/media/ef74917d49befaeee56e96ffc88eb2cd/href</a></iframe><h3>ExpensesWidget()</h3><p>The expenses widget will have a Row and as it’s children we wil first pass he list of expenses and then our pieChart which is custom made using the CustomPainter provided by the flutter tem.</p><p>The list of expenses is pretty straight forward , all you have to do is make a ListView.builder and use the expenses list to make widget out of it.Look at the below code to understand</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/97223db73f9ad1f36963da501156d240/href">https://medium.com/media/97223db73f9ad1f36963da501156d240/href</a></iframe><p>Now our next task is to create the <strong>PieChart</strong> , to get the area of the expense we will calculate the total expenses and divide each expense by the total to get the percentage of the expense and make the arc accordingly. The entire logic is explained in the video above. Let’s quickly see the code written inside the PieChart class</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b53673cc7ca4f72ea3a81dfb124efeac/href">https://medium.com/media/b53673cc7ca4f72ea3a81dfb124efeac/href</a></iframe><h3>PieChartCustomPainter() class:</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9e42a3424061a4818dd6dc9f54abda6c/href">https://medium.com/media/9e42a3424061a4818dd6dc9f54abda6c/href</a></iframe><p>I think now is the time to wrap up the blog here. Do watch the video on my youtube channel to get a better understanding on the entire project structure.</p><p>You can also get the souce code on my github repo:</p><p><a href="https://github.com/singh-saheb/my_wallet_app_ui/blob/master/lib/piechart/piechartcustompainter.dart">Link to Github repo</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1503c5124662" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>