<?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 Shivam Goyal on Medium]]></title>
        <description><![CDATA[Stories by Shivam Goyal on Medium]]></description>
        <link>https://medium.com/@shyvum?source=rss-238902022efa------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*EIK8v_QDQSOSVpPuRX3aSA.jpeg</url>
            <title>Stories by Shivam Goyal on Medium</title>
            <link>https://medium.com/@shyvum?source=rss-238902022efa------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 19:20:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shyvum/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Getting Started with Tech for Beginners]]></title>
            <link>https://shyvum.medium.com/getting-started-with-tech-for-beginners-ad09b4e4c3c0?source=rss-238902022efa------2</link>
            <guid isPermaLink="false">https://medium.com/p/ad09b4e4c3c0</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[roadmaps]]></category>
            <category><![CDATA[beginners-guide]]></category>
            <category><![CDATA[advice]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Shivam Goyal]]></dc:creator>
            <pubDate>Thu, 14 Jan 2021 23:20:52 GMT</pubDate>
            <atom:updated>2022-09-25T09:59:20.442Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uJt539Tq6OtucF3lhxr_FA.png" /></figure><h3>Agenda?</h3><p>A lot of people ask me, how to get started with tech. If you have been asking this to someone, this might be the answer.</p><p>Let me try to answer it by taking some relevant programming fields in context.</p><h3>Options?</h3><p>According to me, there are four major programming fields that a beginner can start with,</p><ol><li>Data Structures &amp; Algorithms</li><li>Competitive Programming</li><li>Web / App Development</li><li>Machine Learning / Computer Vision</li></ol><p>Let’s talk about them descriptively one by one.</p><h3>Data Structures &amp; Algorithms?</h3><p>An essential &amp; general starting point of everyone’s programming journey is Data Structures &amp; Algorithms.</p><p>In Data Structures you learn about the syntax and possible ways of structuring your data in different forms while in Algorithms you get to know the hustle part of mental work where you write procedural steps to solve a specific problem.</p><p>There are plenty of resources available online for learning DSA, I would recommend to pick up a dedicated regular class or a course. There are various benefits of joining a program, and the most important ones are regularity &amp; mentor support.</p><h4>Relevant Resources:</h4><ul><li><a href="https://www.jomaclass.com/data-structures-and-algorithms">JomaClass</a></li><li><a href="http://gomaster.in/">GoMaster</a></li><li><a href="https://www.interviewbit.com/">InterviewBit</a></li><li><a href="https://www.hackerrank.com/">HackerRank</a></li><li><a href="https://www.hackerearth.com/">HackerEarth</a></li></ul><h3>Competitive Programming?</h3><p>One of the branches of DSA comes out to be Competitive Programming where you have time &amp; space restrictions and need to solve a theoretical problem by writing optimized codes while using minimum resources and competing against 100s and 1000s of coders.</p><p>You can start with Competitive Coding right after you have gained knowledge of basic Data Structures. There are various platforms available online. I would recommend going with <a href="https://codeforces.com/">Codeforces</a> and <a href="https://codechef.com/">CodeChef</a>.</p><h4>Relevant Resources:</h4><ul><li><a href="https://clist.by/">CLIST</a></li><li><a href="https://www.youtube.com/channel/UCKuDLsO0Wwef53qdHPjbU2Q">William Lin</a></li><li><a href="https://g.co/kickstart">Google Kickstart</a></li></ul><h3>Web / App Development?</h3><p>If you are interested in making applications, I would recommend starting with Web or App Development as it’s the web and mobile apps with which you interact on a daily basis. More specifically start with Apps as they are in popular demand these days and I personally unlock my phone 100 times a day to dive into those.</p><p>You can choose any of the frameworks available online, there are tons of them. I use Flutter for App Development and ReactJS for Web Development. These are the prettiest framework I have worked with till now.</p><h4>Relevant Resources:</h4><ul><li>Web — <a href="https://blog.itsshivam.com/freeCodeCamp.org">freeCodeCamp</a></li><li>Web — <a href="https://courses.learncodeonline.in/learn/Full-Stack-MERN-Bootcamp">LearnCodeOnline</a></li><li>App — <a href="https://www.youtube.com/channel/UCFTM1FGjZSkoSPDZgtbp7hA">Pawan Kumar</a></li><li>App — <a href="https://www.udacity.com/course/build-native-mobile-apps-with-flutter--ud905">Udacity</a></li></ul><h3>Machine Learning / Computer Vision?</h3><p>Machine Learning is an intriguing field and really interesting to pursue as a career. But there are nearly no jobs available for freshers.</p><p>If you are in college, Machine Learning or Computer Vision might give you an upper hand in placements but might not get you placed all alone. I would recommend limiting Machine Learning to the extent you feel it’s gonna add up to your career.</p><h4>Relevant Resources:</h4><ul><li><a href="https://www.udemy.com/course/machinelearning/">Machine Learning A-Z</a></li></ul><h3>Mantra to success?</h3><p>Set your long term goals early in your career and short term goals as you go. Define them in such a way that your short-term goals adds up to a long-term goal. Similarly, your long-term goals add up to your life-goal.</p><p>Here’s how goals could look like:</p><h4>A Long Term Goal</h4><p>Get a Software Engineer job at Google.</p><h4>A Short Term Goal</h4><p>To acquire a skill that would help you get an internship in the upcoming summer.</p><blockquote><strong>ProTip</strong>: Having prior experience in form of internships adds a bit of weight to your resume when applying for full-time roles.</blockquote><h3>Success?</h3><p>Success is no accident. It is hard work, perseverance, learning, studying, sacrifice, and most of all, love of what you are doing or learning to do. ~ <a href="https://en.wikipedia.org/wiki/Pel%C3%A9">Pelé</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ad09b4e4c3c0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Interviewing Experience at Google — Application Engineering Intern]]></title>
            <link>https://shyvum.medium.com/interviewing-experience-at-google-application-engineering-intern-99a80046ef21?source=rss-238902022efa------2</link>
            <guid isPermaLink="false">https://medium.com/p/99a80046ef21</guid>
            <category><![CDATA[interview-experience]]></category>
            <category><![CDATA[applications-engineer]]></category>
            <category><![CDATA[internships]]></category>
            <category><![CDATA[hiring]]></category>
            <category><![CDATA[google]]></category>
            <dc:creator><![CDATA[Shivam Goyal]]></dc:creator>
            <pubDate>Sun, 27 Dec 2020 16:55:37 GMT</pubDate>
            <atom:updated>2024-11-01T20:20:34.292Z</atom:updated>
            <content:encoded><![CDATA[<h3>Interviewing Experience at Google — Application Engineering Intern</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lcvnSHT7HiFSnRvVxEcTmQ.png" /></figure><p>It was a cold winter night of November when I was scrolling through my LinkedIn and a mail popped up on my cell phone.</p><p>The subject said, “<strong>2021 Application Engineering Internship Opportunity with Google India!</strong>”.</p><p>At first, I was like, “<strong>Ahh.. this seems interesting. Let’s give it a read.</strong>”</p><blockquote>Neither I had applied nor been referred to this role. It was just sheer luck that the recruiter found me interesting and decided to shoot me an email.</blockquote><h3>Application Engineering? What’s that? 💼</h3><p>It was not the first time I was hearing the term <strong>Application Engineering</strong>, but my initial perspective about the role was a bit off. Like, everyone, I was applying only for SWE roles till now, never thought of going in the AE direction.</p><p>When I dug deeper into the role and read more about it, not only I found it <strong>more exciting</strong> than generic SWE roles, also I found it to be <strong>more aligned</strong> with <strong>my interests </strong>and<strong> my career perspective</strong>.</p><p>Application Engineering is more <strong>business-aligned</strong> and generally focused on building products for fellow <strong>Googlers</strong> rather than for public release.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FrGtcmKIZi5c%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DrGtcmKIZi5c&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FrGtcmKIZi5c%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/289c8a8e200d9af350290f0e168c2ad3/href">https://medium.com/media/289c8a8e200d9af350290f0e168c2ad3/href</a></iframe><h3>Recruitment Process 📃</h3><p>Let’s dive straight into the process step by step</p><ul><li>Application Review &amp; Shortlisting</li><li>2 x Hangout Interviews</li><li>Hiring Committee (HC) Review</li><li>Offer Review &amp; Extend</li></ul><h3>Application Review &amp; Shortlisting 👀</h3><p>When I got the initial email to check my interest in the role, I was asked to fill an <strong>Interview Availability Form</strong>.</p><p>The form asked for the times when I’m available to take the interviews in a span of 10 days in the second week of December along with my preferred programming languages.</p><blockquote>I wasn’t shortlisted till this time. Interviews will only be scheduled if I’m shortlisted for further interaction based on feedback from hiring teams.</blockquote><p>Two days later, I got a mail saying I’ve been shortlisted for the interviews and mandatorily need to take part in an <strong>Interview Prep Session</strong>. The session took place in the next week.</p><h3>2 x Hangout Interview 👔</h3><p>Following the Interview Prep Session, I got the invitations for the interviews.</p><p>The interviews were scheduled on the very first day of the availability I gave. Both the interviews were <strong>back to back</strong> with some rest between them. Along with the schedule, they shared the links to separate <strong>Interview Documents</strong>.</p><p>Both the interviews were approximately 1 hour each and were done via <strong>Google Meet</strong>.</p><h4>Coding Interview</h4><blockquote><strong>Result:</strong> Positive<br><strong>Experience:</strong> Good</blockquote><h4>Application Design Interview</h4><blockquote><strong>Result:</strong> Positive<br><strong>Experience:</strong> Average</blockquote><h3>Hiring Committee (HC) Review 🕒</h3><p>A couple of days after the interviews, the recruiter emailed notifying me that I’ve done well in my interviews and they would be moving me to the next stage, <strong>Intern Hiring Committee Review</strong>.</p><blockquote>Here I was also asked to confirm my graduating year and send the latest copies of resume and academic transcripts.</blockquote><h3>Offer! — the YaY moment! 🥳</h3><p>Around a week later, the recruiter notified me that I’ve cleared the hiring process and they would like to extend an internship offer to me.</p><blockquote>I was given 48 hours to accept the offer.</blockquote><h3>Are you interviewing? Here’re some tips. 😉</h3><h4>Before Interviews</h4><ul><li>Go through all the resources provided by hiring teams.</li><li>Research about the company. Make sure you know their values.</li><li>Prepare answers to general questions beforehand.</li><li>Go through your resume. Make sure you know, what they know about you.</li></ul><h4>During Interviews</h4><ul><li>Be on time. Join the call 5 minutes before the scheduled time.</li><li>Dress formally. Just because it’s virtual, doesn&#39;t mean it&#39;s casual.</li><li>Let the interviewer know your thought process. Keep talking.</li><li>Ask clarifying questions, and make use of what the interviewer gives you.</li></ul><h4>After Interviews</h4><ul><li>Ask follow-up questions relevant to the job.</li><li>Ask the interviewer for honest feedback.</li><li>Give closing greetings to the interviewer.</li></ul><h3>Looking for resources? Here’re some. 🚁</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FXKu_SEDAykw%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DXKu_SEDAykw&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FXKu_SEDAykw%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/98307ea0780c1f8e29bb3c2e0bd7c609/href">https://medium.com/media/98307ea0780c1f8e29bb3c2e0bd7c609/href</a></iframe><p><a href="https://www.interviewbit.com/google-interview-questions/">Google Interview Questions - InterviewBit</a></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fvideoseries%3Flist%3DPLA8lYuzFlBqAy6dkZHj5VxUAaqr4vwrka&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fplaylist%3Flist%3DPLA8lYuzFlBqAy6dkZHj5VxUAaqr4vwrka&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F0163cssUxLA%2Fhqdefault.jpg%3Fsqp%3D-oaymwEWCKgBEF5IWvKriqkDCQgBFQAAiEIYAQ%3D%3D%26rs%3DAOn4CLDqMxIH2W007M0RjtvRhuJLkxrc-Q%26days_since_epoch%3D18623&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="853" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/bf3388ca630733543109b4327be1208a/href">https://medium.com/media/bf3388ca630733543109b4327be1208a/href</a></iframe><p><a href="https://www.geeksforgeeks.org/top-10-system-design-interview-questions-and-answers/">Top 10 System Design Interview Questions and Answers</a></p><h3>Wanna know more about me? Stalk me here. 👀</h3><ul><li><a href="https://github.com/shyvum">shyvum - Overview</a></li><li><a href="https://goyalshivam.com/">Shivam Goyal</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=99a80046ef21" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Winning Experience in  JPMorgan Chase’s CodeforGood 2020]]></title>
            <link>https://shyvum.medium.com/winning-experience-in-jpmorgan-chase-codeforgood-2020-79703836588a?source=rss-238902022efa------2</link>
            <guid isPermaLink="false">https://medium.com/p/79703836588a</guid>
            <category><![CDATA[jp-morgan]]></category>
            <category><![CDATA[virtual]]></category>
            <category><![CDATA[hackathons]]></category>
            <category><![CDATA[hiring]]></category>
            <category><![CDATA[code-for-good]]></category>
            <dc:creator><![CDATA[Shivam Goyal]]></dc:creator>
            <pubDate>Mon, 24 Aug 2020 18:00:48 GMT</pubDate>
            <atom:updated>2020-12-16T22:05:03.813Z</atom:updated>
            <content:encoded><![CDATA[<h3>My Winning Experience in JPMorgan Chase’s CodeforGood 2020</h3><h4>Talking you through my journey &amp; experience of participating and winning in Code for Good 2020</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xp2HvK5aFyZntrz-jtGLCA.png" /></figure><h3>❔ Intro to JPMC’s Code for Good</h3><h4>According to JPMorgan Chase &amp; Co.,</h4><blockquote><a href="https://careers.jpmorgan.com/US/en/students/programs/code-for-good">Code for Good</a> is a series of hackathons hosted in JPMorgan’s global technology centers. During this event, participants spend 12–24 hours with our employees, developing creative solutions to help nonprofits tackle real-world problems.</blockquote><blockquote>It’s the chance of a lifetime to demonstrate how technology can be one of the greatest tools for solving social problems around the world.</blockquote><h4>According to me,</h4><blockquote>It’s a platform for university students, industry experts, and NPOs, where all come together to use technology to build a product that can help in solving real-world problems, not the bigger ones, but putting up a foundation stone for greater good.</blockquote><blockquote>Students get to learn from industry experts, and vice-versa. At the end, competent students are offered internships and FTE opportunities with the firm.</blockquote><h3>👉 The Selection Process to Code for Good</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ttv6VNtVYWVs7d_hOGP9jA.png" /></figure><h3>📃 The Problem Statement</h3><p>Our problem statement was given by <a href="http://inqui-lab.org/">Inqui-lab Foundation</a> and was centered on developing a data collection and analytics solution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rNWSRAPggmSKyIkLgMyQfw.jpeg" /></figure><h3>🎁 Presentation from Inqui-lab Foundation</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fdocs.google.com%2Fpresentation%2Fembed%3Fid%3D1ilW4imBMy_M88s_la9voB3WycjNSJXPAlCfzvy99Hbs%26size%3Dl&amp;display_name=Google+Docs&amp;url=https%3A%2F%2Fdocs.google.com%2Fpresentation%2Fd%2F1ilW4imBMy_M88s_la9voB3WycjNSJXPAlCfzvy99Hbs%2Fedit%3Fusp%3Dsharing&amp;image=https%3A%2F%2Flh3.googleusercontent.com%2FZYVssmcfrGrqSUeqFCyzTK0AQfHdd4fOUG5zVy16c7ZVJzgYwPpD5zsur4HsMoFnJn2JwC9aPw%3Dw1200-h630-p&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=google" width="700" height="559" frameborder="0" scrolling="no"><a href="https://medium.com/media/39c410405b340c723bf19a59b9cfd49e/href">https://medium.com/media/39c410405b340c723bf19a59b9cfd49e/href</a></iframe><h4>About Inqui-lab Foundation</h4><p>Inqui-Lab aims to nurture the next generation as grassroot problem solvers who can contribute meaningfully to society. Their mission is to design platforms and interventions that transform student learning spaces into places of creativity, design, and innovation.</p><h3>🎯 The Solution</h3><p>We created a Progressive Web Application (PWA) based on ReactJS to get the data filled-in using forms thereby making the data collection process easier. We also created different dashboards so as to see the data in a aggregated format and draw out conclusions.</p><p>The entire backend / APIs were created on NodeJS and the databases were on MongoDB.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zTd5fbxToXavwUMun5SDSQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cTva4yEPqJ7kH2NaG76aiQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*37cz5-mQWeWRGrjVJyDnzA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rpP8QyKCUK_VeGvxt91C5A.png" /></figure><h3>🔢 Data Flow Diagram</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZMTIdOYuqkVYzf4Nej28bw.png" /></figure><h3>💻 Tech Stack Used</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e987E8I2vK794IaQYaO15Q.png" /></figure><h3>📺 Video Demonstration</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FIwvphziZ3cM%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DIwvphziZ3cM&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FIwvphziZ3cM%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/5d26e23268bd38b6395982f78b92f577/href">https://medium.com/media/5d26e23268bd38b6395982f78b92f577/href</a></iframe><h3>🙌 The Team</h3><p>My team titled <strong>#Team46</strong>, was a team of 5 members from different parts of the country. We worked through the challenge in a very collaborative manner and as a result, we’re able to win the hackathon at the end of the day.</p><ul><li><a href="https://www.linkedin.com/in/shivamgoyal1899/">Shivam Goyal - Software Engineer - Agency Coda | LinkedIn</a></li><li><a href="https://www.linkedin.com/in/ravengineer554/">Rahul Bera - Head of Programming Department - Technocrats Robotics | LinkedIn</a></li><li><a href="https://www.linkedin.com/in/parshwa-shah-580a2a131/">Parshwa Shah - Bhartiya Vidya Bhavans Sardar Patel Institute of Technology Munshi Nagar Andheri Mumbai - Mumbai, Maharashtra, India | LinkedIn</a></li><li><a href="https://www.linkedin.com/in/jessiya-joy-03184b198/">Jessiya Joy - National Institute of Technology Calicut - Thrissur, Kerala, India | LinkedIn</a></li><li><a href="https://www.linkedin.com/in/aseem-khullar/">Aseem Khullar - Executive Team Member - Microsoft Student Chapter | LinkedIn</a></li></ul><h3>👬 The Mentors</h3><p>There were two mentors who were assigned to our team for guiding us throughout the hackathon day regarding technical as well as non-technical aspects of the product, problem statement.</p><p>The mentors were also responsible for judging the team members individually as the individual score of every team member is a major factor while extending job opportunities to participating students.</p><ul><li><a href="https://www.linkedin.com/in/sachin-bhade-b80b0619/">Sachin Bhade - Vice President - JPMorgan Chase | LinkedIn</a></li><li><a href="https://www.linkedin.com/in/jagendra-deshmukh-48b64b165/">Jagendra Deshmukh - Associate - JPMorgan Chase &amp;amp; Co. | LinkedIn</a></li></ul><h3>🎉 And the Winners</h3><p>At 02:08 PM, on Monday 17th Aug, <strong>#Team46</strong> was announced as the winners for the Inqui-lab Foundation’s problem statement.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vhUinfq-KHpEJWUQkqyA8g.png" /></figure><h3>📩 Final Words</h3><p>I really don’t have words to express how it feels to be a winner in such a large scale hiring hackathon. The moment when winners were being announced, I was so worried &amp; nervous. But the fact that we won it finally was really a dream come true for me and my team. We were so shocked that we literally asked the organizers to announce the result for our PS once again. 😅</p><p>Overall, it was a great experience, collaborating with students across India and building a product that soon will be used to solve a real-world problem and in turn would help lakhs of students to build their skills further.</p><p>Here, I would like to express my thanks and gratitute to Sachin and Jagendra as well. They stood with us for the entire day of the hackathon and motivated us to build the right product while keeping the environment as friendly as possible. Thanks again guys, It wouldn’t have been possible without you guys.</p><p>Although it was a virtual event and I personally missed the energy blasts and talking to tons of people like we do at in-person events, but the organizers really did a great job and made the hackathon as close to an in-person event as possible. All thanks to Anjana &amp; Mridula, you guys rock. 😉</p><h3>🔰 More about Code for Good</h3><p><a href="https://careers.jpmorgan.com/us/en/students/programs/code-for-good">Code for Good | JPMorgan Chase &amp; Co.</a></p><h3>💖 Wanna stalk me more?</h3><ul><li><a href="https://github.com/ShivamGoyal1899">ShivamGoyal1899 - Overview</a></li><li><a href="https://itsshivam.com/">Shivam Goyal</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=79703836588a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Flutter AlertDialog in just 15 minutes]]></title>
            <link>https://medium.com/flutter-community/building-a-flutter-alertdialog-in-just-15-minutes-57fb81b73698?source=rss-238902022efa------2</link>
            <guid isPermaLink="false">https://medium.com/p/57fb81b73698</guid>
            <category><![CDATA[popups]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[alertdialog]]></category>
            <category><![CDATA[app-development]]></category>
            <category><![CDATA[animation]]></category>
            <dc:creator><![CDATA[Shivam Goyal]]></dc:creator>
            <pubDate>Sun, 17 Nov 2019 17:39:36 GMT</pubDate>
            <atom:updated>2024-11-15T10:11:21.198Z</atom:updated>
            <content:encoded><![CDATA[<h4>Learn how to implement a customized Alert Dialog / Popup in Flutter.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PiqnTg_vsExV06VJLCpz1g.png" /></figure><h3>Introduction</h3><p>The AlertDialog is basically a Popup in Flutter. Whenever you want to create a floating box that is centered on the page, you can simply use an AlertDialog. The implementation of the same is very easy and has been provided in-build with Flutter SDK. So, let&#39;s dive in… 👻</p><h4>What you’ll build?</h4><p>In this tutorial, you’ll build a mobile app featuring an AlertDialog / Popup in Flutter. The AlertDialog will have the following features:</p><ul><li>Animated loader GIF</li><li>Customized actions buttons</li><li>Curved Edges</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DEAA3dz32j0_GMLMiBuroA.jpeg" /><figcaption>That’s exactly how our AlertDialog gonna look like</figcaption></figure><p>This tutorial focuses on adding an AlertDialog to the Flutter app. Non-relevant concepts and code blocks are glossed over and are provided for you to simply copy and paste.</p><h4>GitHub Profile | shyvum</h4><p><a href="https://github.com/shyvum">shyvum - Overview</a></p><h3>Setting up Flutter on your machine</h3><p>The detailed steps to install Flutter on your personal computer &amp; getting started with Flutter is available at the following blog post</p><p><a href="https://blog.goyalshivam.com/install-flutter-on-windows-and-mac">How to install Flutter on Mac &amp; Windows</a></p><h3>Coding the component</h3><h4>AlertDialog constructor</h4><pre>const AlertDialog({<br>    Key key,<br>    Widget title,<br>    EdgeInsetsGeometry titlePadding,<br>    TextStyle titleTextStyle,<br>    Widget content,<br>    EdgeInsetsGeometry contentPadding: const EdgeInsets.fromLTRB(24.0, 20.0, 24.0, 24.0),<br>    TextStyle contentTextStyle,<br>    List&lt;Widget&gt; actions,<br>    Color backgroundColor,<br>    double elevation,<br>    String semanticLabel,<br>    ShapeBorder shape<br>})</pre><h4>Downloading Assets</h4><p>Download the GIF by right-clicking, and saving it as listening.gif at /{%PROJECTROOT%}/assets/images/listening.gif</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*oxw4pvwDPHRp6Fxxt3_7Fg.gif" /><figcaption>Credits: <a href="https://in.pinterest.com/pin/643662971717965351/">Bendt on Pinterest</a></figcaption></figure><h4>Importing Assets</h4><p>Import the GIF to your project by adding the file path to your pubspec.yaml file.</p><pre>...<br>flutter:<br>  uses-material-design: true<br>  assets:<br>    - assets/images/listening.gif<br>...</pre><h4>Putting Code in action</h4><p>Create a file named voicePayDialog.dart in the same directory as of your main.dart file and amend the file with the following code:</p><pre>import &#39;package:flutter/material.dart&#39;;<br><br>class VoicePay extends StatefulWidget {<br>  @override<br>  _VoicePayState createState() =&gt; _VoicePayState();<br>}<br><br>class _VoicePayState extends State&lt;VoicePay&gt; {<br><br>  @override<br>  Widget build(BuildContext context) {<br>    return AlertDialog(<br>      shape: RoundedRectangleBorder(<br>        borderRadius: BorderRadius.all(<br>          Radius.circular(25),<br>        ),<br>      ),<br>      title: Text(<br>        &#39;VoicePay&#39;,<br>        textAlign: TextAlign.center,<br>        style: TextStyle(fontWeight: FontWeight.w700, fontSize: 25.0),<br>      ),<br>      content: Column(<br>        mainAxisSize: MainAxisSize.min,<br>        mainAxisAlignment: MainAxisAlignment.end,<br>        crossAxisAlignment: CrossAxisAlignment.center,<br>        children: &lt;Widget&gt;[<br>          Image.asset(&#39;assets/images/listening.gif&#39;),<br>          SizedBox(height: 10.0),<br>          Container(<br>            alignment: Alignment.center,<br>            height: 45.0,<br>            child: Text(<br>              &#39;Tap on mic to VoicePay&#39;,<br>              style: TextStyle(fontSize: 20.0),<br>              textAlign: TextAlign.center,<br>            ),<br>          ),<br>          SizedBox(height: 30.0),<br>          Row(<br>            mainAxisSize: MainAxisSize.max,<br>            mainAxisAlignment: MainAxisAlignment.spaceEvenly,<br>            children: &lt;Widget&gt;[<br>              IconButton(<br>                icon: Icon(Icons.keyboard),<br>                onPressed: () {},<br>              ),<br>              IconButton(<br>                icon: Icon(Icons.mic),<br>                onPressed: () {},<br>              ),<br>              IconButton(<br>                icon: Icon(Icons.translate),<br>                onPressed: () {},<br>              ),<br>            ],<br>          ),<br>        ],<br>      ),<br>    );<br>  }<br>}</pre><p>To show the AlertDialog / Popup add the following code to onPressed or onTap parameter of any button in your main.dart file:</p><pre>onPressed: () {<br>  showDialog(<br>    context: context,<br>    builder: (BuildContext context) {<br>      return VoicePay();<br>    },<br>  );<br>},</pre><blockquote>Remember to import voicePayDialog.dart in main.dart</blockquote><h4>Building &amp; running the application</h4><ul><li>Connect your Emulator or physical Android device to test the application.</li><li>Click on Build &amp; Run.</li><li>And Boooom 🧨, your app is ready to launch.</li></ul><h3>Congratulations!</h3><p>You have completed this tutorial and have built a Flutter app with an AlertDialog! Also, in the meantime, you integrated GIFs in the App.</p><h3>🔍 Read more of my Articles</h3><ul><li><a href="https://medium.com/enappd/building-a-flutter-datetime-picker-in-just-15-minutes-6a4b13d6a6d1">Building a Flutter DateTime Picker in just 15 minutes</a></li><li><a href="https://medium.com/enappd/adding-firebase-to-your-flutter-app-281b8f391b47">Adding Firebase to your Flutter App</a></li><li><a href="https://medium.com/@ShivamGoyal1899/guide-to-integrate-google-maps-with-flutter-db86d033ea25">Guide to integrate Google Maps with Flutter</a></li></ul><h3>🎯 That’s all for today.</h3><blockquote>If you got any queries hit me up in the comments or ping me over on <a href="/service/mailto:hi@itsshivam.com">hi@itsshivam.com</a> 📧</blockquote><blockquote>If you learned even a thing or two, clap your hands👏 as many times as you can to show your support! It really motivates me to contribute towards the community.</blockquote><blockquote>Feeling too generous? <a href="https://www.paypal.me/shivamgoyal1899/">Buy me a Drink</a> 🍺</blockquote><blockquote>Wanna collaborate? <a href="/service/mailto:hi@itsshivam.com">Let’s talk some tech</a> 😊</blockquote><blockquote>Stalk me over on <a href="https://itsshivam.com/">itsshivam.com</a>, <a href="https://github.com/ShivamGoyal1899">GitHub</a>, or <a href="https://linkedin.com/in/shivamgoyal1899/">LinkedIn</a>. 👀</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*r5VeD2fV04iDy8xfmaauHA.png" /></figure><p><a href="https://www.twitter.com/FlutterComm">JavaScript is not available.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=57fb81b73698" width="1" height="1" alt=""><hr><p><a href="https://medium.com/flutter-community/building-a-flutter-alertdialog-in-just-15-minutes-57fb81b73698">Building a Flutter AlertDialog in just 15 minutes</a> was originally published in <a href="https://medium.com/flutter-community">Flutter Community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to install Go Lang on Windows, macOS & Linux]]></title>
            <link>https://faun.pub/how-to-install-go-lang-on-windows-mac-ed476b81477d?source=rss-238902022efa------2</link>
            <guid isPermaLink="false">https://medium.com/p/ed476b81477d</guid>
            <category><![CDATA[go-programming]]></category>
            <category><![CDATA[golang]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[installation]]></category>
            <category><![CDATA[backend-development]]></category>
            <dc:creator><![CDATA[Shivam Goyal]]></dc:creator>
            <pubDate>Fri, 15 Nov 2019 15:16:04 GMT</pubDate>
            <atom:updated>2024-11-15T10:19:18.191Z</atom:updated>
            <content:encoded><![CDATA[<h4>Learn about what is Go Lang &amp; how to get it up and running on your Windows, Mac or Linux systems.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KUwHC5QFhhN51Z29VQTTSQ.png" /></figure><h3>What exactly is Go Lang?</h3><p>The Go programming language (also known as GoLang) is Google’s general-purpose programming language developed for the multi-core reality of today’s computers.</p><p>Concurrent, garbage-collected, and designed for scale, Go is a programming language made for building large-scale, complex software.</p><h3>Why use Go Lang? +1’s of GoLang?</h3><p>Go is expressive, concise, clean, and efficient. Its concurrency mechanisms make it easy to write programs that get the most out of multicore and networked machines, while it&#39;s novel type system enables flexible and modular program construction. Go compiles quickly to machine code yet has the convenience of garbage collection and the power of run-time reflection. It’s a fast, statically typed, compiled language that feels like a dynamically typed, interpreted language.</p><h3>Is Go Lang the future? or not?</h3><p>As Go Lang is made by <strong>Google</strong>, the project has regular financing. So, my answer is <strong>Maybe or Maybe not</strong>. The language is quite popular among guys but it’s still not in a position to bring up a revolution, it’s quite young.</p><blockquote><strong>Hail Google, Hail GoLang</strong>. ✈️</blockquote><h3>Firing GoLang on your system</h3><p>Setting up GoLang involves three basic steps as follows:</p><ol><li>Downloading the installation files</li><li>Installing the packages</li><li>Verifying the up &amp; running GoLang installation</li></ol><h3>Minimum System Requirements</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KSFb47INand-6B-S8-uZwA.png" /><figcaption>Minimum System Requirements</figcaption></figure><blockquote>Go Lang is currently supported only on x64 based processors.</blockquote><h3>Downloading Go Lang Installation Files</h3><p>Visit Go Lang’s official download page to download the installer according to your operating system.</p><p><a href="https://golang.org/dl/">Downloads</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5PtbPMdaHEJ_vAzEUWUdRw.png" /><figcaption>Downloadable options available</figcaption></figure><h3>Setting up on Windows</h3><ul><li>Double click the MSI installer, you just downloaded to start the Go Lang installation on your Windows system.</li><li>Follow the prompts to install the Go tools. By default, the installer puts the Go distribution in <strong>c:\Go</strong>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8l12V96ORfs2fTwYukKAWQ.png" /><figcaption>Running MSI Installer for Go Lang</figcaption></figure><ul><li>The installer should put the <strong>c:\Go\bin</strong> directory in your <strong>PATH</strong> environment variable. You may need to restart any open command prompts for the change to take effect.</li></ul><h3>Setting up on macOS 🍎</h3><ul><li>Double click the PKG installer, you just downloaded to start the Go Lang installation on your macOS system.</li><li>Follow the prompts to install the Go tools. By default, the installer puts the Go distribution in <strong>/usr/local/go</strong>.</li><li>The package should put the <strong>/usr/local/go/bin</strong> directory in your <strong>PATH</strong> environment variable. You may need to restart any open Terminal sessions for the change to take effect.</li></ul><h3>Setting up on Linux</h3><ul><li>Extract the <strong>.tar.gz</strong> archive you just downloaded to <strong>/usr/local</strong>, creating a Go tree in <strong>/usr/local/go</strong></li></ul><pre>sudo tar -C /usr/local -xzf go1.13.4.linux-amd64.tar.gz</pre><blockquote>Change the archive name as per requirement. <strong><em>go1.13.4.linux-amd64.tar.gz</em></strong> is the latest version available at the time of this writing.</blockquote><ul><li>Add <strong>/usr/local/go/bin</strong> to the <strong>PATH</strong> environment variable. You can do this by adding this line to your <strong>/etc/profile</strong> (for a system-wide installation) or <strong>$HOME/.profile</strong>:</li></ul><pre>export PATH=$PATH:/usr/local/go/bin</pre><h3>Verifying your installation</h3><blockquote>The steps here are tested on a Windows system while being almost 99% similar for macOS &amp; Linux. Follow along even if you have a macOS or Linux based system.</blockquote><p>Check that Go is installed correctly by setting up a workspace and building a simple program, as follows.</p><ul><li>Launch a terminal window and navigate to <strong>C:/Users/{%USERPROFILE%}</strong></li></ul><pre>cd C:/Users/{%USERPROFILE%}</pre><blockquote>Here <strong>{%USERPROFILE%}</strong> refers to your username on your machine, mine is <strong>shiva</strong> here. 🔥 Do remember to replace it with yours.</blockquote><ul><li>Now create the following directory structure inside the current directory and change the directory to <strong>/hello</strong>.</li></ul><pre>mkdir go/src/hello<br>cd go/src/hello</pre><ul><li>Now, create a file named <strong>hello.go</strong> using the text editor of your choice, and copy-paste the following content into it.</li></ul><pre>package main<br>import &quot;fmt&quot;<br>func main() {<br>    fmt.Printf(&quot;Hello, World..!!\n&quot;)<br>}</pre><ul><li>Save the file and go back to the terminal and run the following command to compile the code into a binary.</li></ul><pre>go build</pre><ul><li>The previous step creates a binary named <strong>hello.exe</strong> in the same directory. Simply run the executable to run the code.</li><li>If the installation had been correct, the <strong>exe</strong> will print <strong>Hello, World..!!</strong></li></ul><p><strong>The steps in Terminal will look somewhat like this</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/666/1*KfaF_4yXpA_go1Sr_RTqTg.png" /><figcaption>Live commands on Windows Terminal</figcaption></figure><blockquote><strong>ProTip:</strong> I recommend using <a href="https://www.microsoft.com/store/productId/9N0DX20HK701">Windows Terminal</a> with <a href="https://github.com/PowerShell/PowerShell">PowerShell</a> enabled.</blockquote><h3>Congratulations!</h3><p>YaY..!! 🥳 Welcome to the world of <strong>Go Lang</strong>. The installation is finished and you are now ready to show up your mettle in programming.</p><h3>🔍 Read more of my Articles</h3><ul><li><a href="https://blog.goyalshivam.com/install-flutter-on-windows-and-mac">How to install Flutter on Mac &amp; Windows</a></li><li><a href="https://blog.goyalshivam.com/building-a-flutter-datetime-picker-in-just-15-minutes">Building a Flutter DateTime Picker in just 15 minutes</a></li><li><a href="https://blog.goyalshivam.com/building-a-flutter-alertdialog-in-just-15-minutes">Building a Flutter AlertDialog in just 15 minutes</a></li></ul><h3>🎯 That’s all for today.</h3><blockquote><em>If you got any queries hit me up in the comments or ping me over on </em><a href="/service/mailto:hey@goyalshivam.com">hey@goyalshivam.com</a> 📧</blockquote><blockquote><em>If you learned even a thing or two, clap your hands👏 as many times as you can to show your support! It really motivates me to contribute towards the community.</em></blockquote><blockquote><em>Feeling too generous? </em><a href="https://github.com/sponsors/shyvum"><em>Buy me a Book</em></a><em> 📖</em></blockquote><blockquote><em>Wanna collaborate? </em><a href="/service/mailto:hey@goyalshivam.com"><em>Let’s talk some tech</em></a><em> 😊</em></blockquote><blockquote><em>Stalk me over on </em><a href="https://goyalshivam.com/"><em>goyalshivam.com</em></a><em>, </em><a href="https://github.com/shyvum"><em>GitHub</em></a><em>, or </em><a href="https://www.linkedin.com/in/shyvum/"><em>LinkedIn</em></a><em>. 👀</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/0*Piks8Tu6xUYpF4DU" /></figure><p><strong>Follow us on </strong><a href="https://twitter.com/joinfaun"><strong>Twitter</strong></a><strong> </strong>🐦<strong> and </strong><a href="https://www.facebook.com/faun.dev/"><strong>Facebook</strong></a><strong> </strong>👥<strong> and join our </strong><a href="https://www.facebook.com/groups/364904580892967/"><strong>Facebook Group</strong></a><strong> </strong>💬<strong>.</strong></p><p><strong>To join our community Slack </strong>🗣️ <strong>and read our weekly Faun topics </strong>🗞️,<strong> click here⬇</strong></p><figure><a href="https://www.faun.dev/join/?utm_source=medium.com%2Ffaun&amp;utm_medium=medium&amp;utm_campaign=faunmediumbanner"><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*oSdFkACJxs5iy1oR" /></a></figure><h4>If this post was helpful, please click the clap 👏 button below a few times to show your support for the author! ⬇</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed476b81477d" width="1" height="1" alt=""><hr><p><a href="https://faun.pub/how-to-install-go-lang-on-windows-mac-ed476b81477d">How to install Go Lang on Windows, macOS &amp; Linux</a> was originally published in <a href="https://faun.pub/">FAUN.dev() 🐾</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Guide to integrate Google Maps with Flutter]]></title>
            <link>https://shyvum.medium.com/guide-to-integrate-google-maps-with-flutter-db86d033ea25?source=rss-238902022efa------2</link>
            <guid isPermaLink="false">https://medium.com/p/db86d033ea25</guid>
            <category><![CDATA[google-maps]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[api-integration]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Shivam Goyal]]></dc:creator>
            <pubDate>Tue, 12 Nov 2019 12:27:11 GMT</pubDate>
            <atom:updated>2019-12-12T14:58:46.963Z</atom:updated>
            <content:encoded><![CDATA[<h4>Learn how to build a mobile app featuring a Google Map using the Flutter SDK.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UZfbwXk_x0itmuRX3fjg0g.png" /></figure><h3>Introduction</h3><p>Flutter is Google’s mobile app SDK for crafting high-quality native experiences on iOS and Android in record time.</p><p>With the <a href="https://pub.dartlang.org/packages/google_maps_flutter">Google Maps Flutter plugin</a>, you can add maps based on Google maps data to your application. The plugin automatically handles access to the Google Maps servers, map display, and response to user gestures such as clicks and drags. You can also add markers to your map. These objects provide additional information for map locations, and allow the user to interact with the map.</p><h4>What you’ll build?</h4><p>In this tutorial, you’ll build a mobile app featuring a Google Map using the Flutter SDK. Your app will:</p><ul><li>Display a Google Map</li><li>Retrieve map data from a web service</li><li>Display this data as markers on the Map</li></ul><h4>What is Flutter?</h4><ul><li><strong>Fast to develop:</strong> Build your Android and iOS applications in milliseconds with Stateful Hot Reload.</li><li><strong>Expressive and flexible: </strong>Quickly ship features with a focus on native end-user experiences.</li><li><strong>Native performance on both iOS and Android:</strong> Flutter’s widgets incorporate all critical platform differences — such as scrolling, navigation, icons, and fonts — to provide full native performance.</li></ul><p>Google Maps has:</p><ul><li><strong>99% coverage of the world:</strong> Build with reliable, comprehensive data for over 200 countries and territories.</li><li><strong>25 million updates daily:</strong> Count on accurate, real-time location information.</li><li><strong>1 billion monthly active users:</strong> Scale confidently, backed by Google Maps’ infrastructure.</li></ul><p>This tutorial walks you through creating a Google Maps experience in a Flutter app for both iOS and Android.</p><h4>What you’ll learn?</h4><ul><li>How to create a new Flutter application.</li><li>How to configure a Google Maps Flutter plugin.</li><li>How to add Markers to a map, using location data from a web service.</li></ul><p>This tutorial focuses on adding a Google map to the Flutter app. Non-relevant concepts and code blocks are glossed over and are provided for you to simply copy and paste.</p><h4>Github Repository | @ShivamGoyal1899</h4><p><a href="https://github.com/ShivamGoyal1899/GoogleOfficeLocations">ShivamGoyal1899/GoogleOfficeLocations</a></p><h4>Package Used | google_maps_flutter</h4><p><a href="https://pub.dev/packages/google_maps_flutter">google_maps_flutter | Flutter package</a></p><h3>Setting up Flutter on your machine</h3><p>The detailed steps to install Flutter on your personal computer &amp; getting started with Flutter is available at the following blog post</p><p><a href="https://medium.com/enappd/install-flutter-on-windows-and-mac-1fd1dde453ba">How to install Flutter on Mac &amp; Windows</a></p><p>You can run this tutorial using any of the following devices:</p><ul><li>A physical device (Android or iOS) connected to your computer and set to developer mode.</li><li>The iOS simulator. (Requires installing Xcode tools.)</li><li>The Android emulator. (Requires setup in Android Studio.)</li></ul><h3>Getting started</h3><h4>Getting started with Flutter</h4><p>The easiest way to get started with Flutter is to use the flutter command-line tool to create all the required code for a simple getting started experience.</p><pre><strong>$</strong> flutter create google_maps_in_flutter<br>Creating project google_maps_in_flutter...<br>[Listing of created files elided]<br>Running &quot;flutter packages get&quot; in google_maps_in_flutter...     6.1s<br>Wrote 66 files.<br><br>All done!<br><strong>[✓]</strong> Flutter (Channel dev, v1.5.0, on Mac OS X 10.14.3 18D109, locale en-IN)<br><strong>[✓]</strong> Android toolchain - develop for Android devices (Android SDK version 28.0.3)<br><strong>[✓]</strong> iOS toolchain - develop for iOS devices (Xcode 10.2)<br><strong>[✓]</strong> Android Studio is fully installed. (version 3.1)<br><strong>[✓]</strong> IntelliJ IDEA Community Edition (version 2018.3.5)<br><strong>[✓]</strong> VS Code (version 1.33.1)<br><strong>[✓]</strong> Connected device is fully installed. (1 available)<br><br>In order to run your application, type:<br><br>  <strong>$</strong> cd google_maps_in_flutter<br> <strong> $ </strong>flutter run<br><br>Your application code is in google_maps_in_flutter/lib/main.dart.</pre><h4>Adding Google Maps Flutter plugin as a dependency</h4><p>Adding additional capability to a Flutter app is easy using <a href="https://pub.dartlang.org/flutter">Pub packages</a>. In this tutorial, you introduce the <a href="https://pub.dartlang.org/packages/google_maps_flutter">Google Maps Flutter plugin</a> by adding a single line to the pubspec.yaml file.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3c3ca9a25651a3486fc70cf4e05a7f58/href">https://medium.com/media/3c3ca9a25651a3486fc70cf4e05a7f58/href</a></iframe><p>Download the package with the following command::</p><pre><strong>$</strong> flutter packages get<br>Running &quot;flutter packages get&quot; in google_maps_in_flutter...    0.9s</pre><h3>Adding Google Maps to the app</h3><h4>It’s all about the API keys</h4><p>To use Google Maps in your Flutter app, you need to configure an API project with the <a href="https://cloud.google.com/maps-platform/">Google Maps Platform</a>, following both the <a href="https://developers.google.com/maps/documentation/android-sdk/signup">Maps SDK for Android’s Get API key</a>, and <a href="https://developers.google.com/maps/documentation/ios-sdk/get-api-key">Maps SDK for iOS’ Get API key</a> processes. With API keys in hand, carry out the following steps to configure both Android and iOS applications.</p><h4>Adding an API key for an Android app</h4><p>To add an API key to the Android app, edit the AndroidManifest.xml file in android/app/src/main. Add a single meta-data entry containing the API key created in the previous step.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/963878dfb4d780b341593c4f58bc83d6/href">https://medium.com/media/963878dfb4d780b341593c4f58bc83d6/href</a></iframe><h4>Adding an API key for an iOS app</h4><p>To add an API key to the iOS app, edit the AppDelegate.m file in ios/Runner. Unlike Android, adding an API key on iOS requires changes to the source code of the Runner app. The AppDelegate is the core singleton that is part of the app initialization process.</p><p>Make two changes to this file. First, add an #import statement to pull in the Google Maps headers, and then call the provideAPIKey() method of the GMSServices singleton. This API key enables Google Maps to correctly serve map tiles.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/09184ecb89ca40d57d6377589fcea4ac/href">https://medium.com/media/09184ecb89ca40d57d6377589fcea4ac/href</a></iframe><p>You also need to add a setting to ios/Runner/Info.plist. These entry forces Flutter on iOS into a single-threaded mode, which is required for the platform view embedding to work. This technical restriction is being worked on and will be lifted before Google Maps moves out of Developer Preview.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0aa83f6d500c7b77143d97ca68871777/href">https://medium.com/media/0aa83f6d500c7b77143d97ca68871777/href</a></iframe><h4>Putting a map on the screen</h4><p>Now it’s time to get a map on the screen. Update lib/main.dart as follows:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f468534d3ba0aa5357ca2216f7cccc7b/href">https://medium.com/media/f468534d3ba0aa5357ca2216f7cccc7b/href</a></iframe><h4>Running the app</h4><p>Run the Flutter app in either iOS or Android to see a single map view, centered on Portland. Feel free to modify the map center to represent your hometown, or somewhere that is important to you.</p><pre><strong>$</strong> flutter run</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bDmcsldsYWkHawu2Sn7bjg.png" /></figure><h3>Upgrading to Google Maps SDK for iOS 3.0</h3><h4>Using the latest version of Maps for iOS</h4><p>When running the app in the previous step on iOS, you may have seen a warning on the console about the version of the Google Maps for iOS plugin was old. This is due to a minimum version mismatch: Flutter supports a minimum of iOS version 8, while the latest version of Google Maps SDK for iOS supports a minimum iOS version 9. The version that CocoaPods installed by default was the last version of Google Maps SDK for iOS that supports iOS version 8. In this step, you change the iOS Runner project to use the latest version of Google Maps SDK for iOS.</p><blockquote>Please note, this step only applies to iOS, and uses Xcode to make changes to the iOS target. If you are on Windows or Linux, then this step doesn’t apply to you. Please skip ahead to the next step.</blockquote><h4>Set a declared platform for CocoaPods</h4><p>Edit ios/Podfile to declare a minimum platform version.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5c613ad11d709062d1854804c5c9529c/href">https://medium.com/media/5c613ad11d709062d1854804c5c9529c/href</a></iframe><h4>Update the CocoaPod dependency</h4><p>Run CocoaPods to pull the up-to-date version of Google Maps SDK for iOS:</p><pre><strong>$</strong> (cd ios &amp;&amp; pod update)<br>Analyzing dependencies<br>Fetching podspec for `Flutter` from `.symlinks/flutter/ios`<br>Fetching podspec for `google_maps_flutter` from `.symlinks/plugins/google_maps_flutter/ios`<br>Downloading dependencies<br>Using Flutter (1.0.0)<br>Installing GoogleMaps 3.0.3<br>Using google_maps_flutter (0.0.1)<br>Generating Pods project<br>Integrating client project<br>Pod installation complete! There are 2 dependencies from the Podfile and 3 total pods installed.</pre><h4>Set the deployment target in Xcode</h4><p>Configure the deployment target iOS version in the iOS Runner Xcode project so that the binary versions of the Runner and Google Maps match. Open the Runner project from the command line as follows.</p><pre><strong>$ </strong>open ios/Runner.xcworkspace/</pre><p>This opens up the Xcode workspace for the iOS Runner project. Configure the Deployment Target for Runner in the General preferences pane.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fP8DnUeRrPos_wESCDw-Wg.png" /></figure><h4>Running the app, again</h4><p>Run the Flutter app in iOS, this time using the latest version of Google Maps SDK for iOS.</p><pre><strong>$</strong> flutter run<br>Launching lib/main.dart on iPhone XR in debug mode...<br>Running pod install...                                       1.2s<br>Running Xcode build...<br> ├─Assembling Flutter resources...                           1.3s<br> └─Compiling, linking and signing...                         4.5s<br>Xcode build done.                                            7.6s<br>Google Maps SDK for iOS version: 3.0.33124.0<br>Syncing files to device iPhone XR...                         1,267ms<br><br>🔥  To hot reload changes while running, press &quot;r&quot;. To hot restart (and rebuild state), press &quot;R&quot;.</pre><h3>Put Google on the Map</h3><p>Google has many offices around the world, from <a href="https://about.google/locations/?region=north-america">North America</a>, <a href="https://about.google/locations/?region=latin-america">Latin America</a>, <a href="https://about.google/locations/?region=europe">Europe</a>, <a href="https://about.google/locations/?region=asia-pacific">Asia Pacific</a>, to <a href="https://about.google/locations/?region=africa-middle-east">Africa &amp; Middle East</a>. The nice thing about these maps, if you investigate them, is that they have an easily usable <a href="https://about.google/static/data/locations.json">API endpoint</a> for supplying the office location information in JSON format. In this step, you put these office locations on the map.</p><p>As you grow your codebase, it’s time to start using tooling that Dart provides to make the code more readable and maintainable. In this step, you use code generation to parse JSON, and code linting to surface potential <a href="https://en.wikipedia.org/wiki/Code_smell">code smells</a>.</p><p>To use these capabilities, add some new dependencies to the pubspec.yaml file. These dependencies provide access to http requests, the ability to mechanize JSON parsing, a configuration of useful lint rules used widely at Google, and a build runner that ties all of it together. Edit the dependencies stanza of your pubspec.yaml file as follows:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5664b6ed258e9b5298b098fd63468438/href">https://medium.com/media/5664b6ed258e9b5298b098fd63468438/href</a></iframe><p>Run flutter packages get on the command line to retrieve these new dependencies, and to prepare the app for the next stages.</p><pre><strong>$</strong> flutter packages get <br>Running &quot;flutter packages get&quot; in google_maps_in_flutter...     0.5s</pre><h4>Using the providing tooling</h4><pre><strong>$</strong> flutter format .<br>Formatting directory .:<br>Formatted lib\main.dart<br>Unchanged test\widget_test.dart</pre><p>For linting, Dart provides the ability to <a href="https://www.dartlang.org/guides/language/analysis-options">configure a customized code linter</a>. In this step, you add a handful of linters to the app, but the full list of available lints is specified in the <a href="https://dart-lang.github.io/linter/lints/">Linter for Dart documentation</a>.</p><p>Add a file to the root of the project called analysis_options.yaml and fill it with the following content.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b20e40c7a776327ad523320642d210db/href">https://medium.com/media/b20e40c7a776327ad523320642d210db/href</a></iframe><p>The first line includes a default set of rules used widely at Google, and the linter rules section gives a taste of what is possible. The exclude line references a file that hasn&#39;t been generated yet. To run the lint rules, analyze the code as follows:</p><pre><strong>$</strong> flutter analyze<br>Analyzing google_maps_in_flutter...<br>No issues found! (ran in 1.8s)</pre><p>If the analyzer issues warnings, don’t worry, you will fix them shortly.</p><h4>Parsing JSON with code generation</h4><p>You might notice that the JSON data returned from the API endpoint has a regular structure. It would be handy to generate the code to marshal that data into objects that you can use in code. While Dart provides a variety of options for de-serializing JSON data (from build-it-yourself, to signing the data and using built_value), this step uses JSON annotations.</p><p>In the lib/src directory, create a locations.dart file and describe the structure of the returned JSON data as follows:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2254f0ff11094da8e12f026584827168/href">https://medium.com/media/2254f0ff11094da8e12f026584827168/href</a></iframe><p>Once you’ve added this code, your IDE (if you are using one) should display some red squiggles, as it references a nonexistent sibling file, locations.g.dart. This generated file converts between untyped JSON structures and named objects. Create it by running the build_runner:</p><pre><strong>$</strong> flutter packages pub run build_runner build<br>[INFO] Generating build script...<br>[INFO] Generating build script completed, took 291ms<br><br>[INFO] Initializing inputs<br>[INFO] Reading cached asset graph...<br>[INFO] Reading cached asset graph completed, took 65ms<br><br>[INFO] Checking for updates since last build...<br>[INFO] Checking for updates since last build completed, took 595ms<br><br>[INFO] Running build...<br>[INFO] 1.2s elapsed, 0/1 actions completed.<br>[INFO] Running build completed, took 1.2s<br><br>[INFO] Caching finalized dependency graph...<br>[INFO] Caching finalized dependency graph completed, took 27ms<br><br>[INFO] Succeeded after 1.2s with 1 outputs (1 actions)</pre><p>Your code should now analyze cleanly again.</p><p>Modify the main.dart file to request the map data, and then use the returned info to add offices to the map:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/953e23838a7dccbd91b0ebdf7defdd15/href">https://medium.com/media/953e23838a7dccbd91b0ebdf7defdd15/href</a></iframe><p>This code performs several operations:</p><ul><li>In _onMapCreated, it uses the JSON parsing code from the previous step, awaiting until it&#39;s loaded. It then uses the returned data to create Markers inside a setState() callback. Once the app receives new markers, setState flags Flutter to repaint the screen, causing the office locations to display.</li><li>The markers are stored in a Map that is associated with the GoogleMap widget. This links the markers to the correct map. You could, of course, have multiple maps and display different markers in each.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MqWLDQjGVCZGPcT1SYd9uw.png" /></figure><p>Here’s a screenshot of what you have accomplished. There are many interesting additions that can be made at this point. For example, you could add a list view of the offices that moves and zooms the map when the user clicks an office but, as they say, this exercise is left to the reader!</p><h3>Congratulations!</h3><p>You have completed this tutorial and have built a Flutter app with a Google Map! You’ve also interacted with a JSON Web Service.</p><h3>🔍 Read more of my Articles</h3><ul><li><a href="https://medium.com/flutter-community/building-a-flutter-alertdialog-in-just-15-minutes-57fb81b73698">Building a Flutter AlertDialog in just 15 minutes</a></li><li><a href="https://medium.com/@ShivamGoyal1899/understanding-version-control-systems-github-simplified-with-sourcetree-59e1c0b57999">Understanding Version Control Systems: GitHub Simplified with SourceTree</a></li><li><a href="https://medium.com/enappd/adding-firebase-to-your-flutter-app-281b8f391b47">Adding Firebase to your Flutter App</a></li></ul><h3>🎯 That’s all for today.</h3><blockquote>If you got any queries hit me up in the comments or ping me over on <a href="/service/mailto:hi@itsshivam.com">hi@itsshivam.com</a> 📧</blockquote><blockquote>If you learned even a thing or two, clap your hands👏 as many times as you can to show your support! It really motivates me to contribute towards the community.</blockquote><blockquote>Feeling too generous? <a href="https://www.paypal.me/shivamgoyal1899/">Buy me a Drink</a> 🍺</blockquote><blockquote>Wanna collaborate? <a href="/service/mailto:hi@itsshivam.com">Let’s talk some tech</a> 😊</blockquote><blockquote>Stalk me over on <a href="https://itsshivam.com/">itsshivam.com</a>, <a href="https://github.com/ShivamGoyal1899">GitHub</a>, or <a href="https://linkedin.com/in/shivamgoyal1899/">LinkedIn</a>. 👀</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=db86d033ea25" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What’s new with Flutter 1.9 & how to upgrade to the latest version]]></title>
            <link>https://shyvum.medium.com/whats-new-with-flutter-1-9-how-to-upgrade-to-the-latest-version-6848a17d5403?source=rss-238902022efa------2</link>
            <guid isPermaLink="false">https://medium.com/p/6848a17d5403</guid>
            <category><![CDATA[updates]]></category>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[Shivam Goyal]]></dc:creator>
            <pubDate>Wed, 11 Sep 2019 15:07:26 GMT</pubDate>
            <atom:updated>2019-12-12T14:59:41.279Z</atom:updated>
            <content:encoded><![CDATA[<h4>Learn about what Google has introduced in the latest Flutter release.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yK9xBZ1P6FjLzLohSAvfuw.png" /></figure><p>Flutter has got a new &amp; improved version of itself in it’s September release. The release is available now in the stable channel for users to upgrade. The new features and updates span a wide range, from support for macOS Catalina and iOS 13 to improved tooling support, as well as new Dart language features and new Material widgets.</p><h3>Upgrading to Flutter 1.9</h3><p>If you already have Flutter on your system and you’re on the default stable channel, you can upgrade to version 1.9 by running <strong>flutter upgrade</strong> from the command line.</p><p>If you want to freshly install Flutter on your system, this is the place for you:</p><p><a href="https://medium.com/enappd/install-flutter-on-windows-and-mac-1fd1dde453ba">How to install Flutter on Mac &amp; Windows</a></p><h3>New Features &amp; Upgrades</h3><h4>New widgets and framework enhancements</h4><ul><li><strong>ToggleButtons<br></strong> The <strong>ToggleButtons</strong> widget bundles a row of <strong>ToggleButton </strong>widgets together, often composed of a set of <strong>Icon </strong>and <strong>Text </strong>widgets, to form a set of buttons with fully customizable look and behavior. Do you want a single selection or multi-select? Do you want to require at least one selection or allow none? Do you want a square or rounded edges, thick or thin borders, icons or text, etc? You can see some of these options below.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/216/1*bWU7d5bEOTT8j9bqELV-eQ.gif" /><figcaption>ToggleButtons</figcaption></figure><ul><li><strong>ColorFiltered<br></strong> As shown in the image below, the <strong>ColorFiltered </strong>widget allows you to recolor a tree of child widgets just like you can recolor an image using one of several different algorithms (some of which are shown in the example screenshot above). This has many uses, for example, handling color blindness accessibility issues for your users.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/216/1*IRAouhX67Z8AdDK_n5y_GA.gif" /><figcaption>ColorFiltered</figcaption></figure><h4>Worldwide language support</h4><p>Google has also added support for 24 new languages, out of which 7 are Indian languages.</p><p>Languages that are added include:</p><p><em>Afrikaans | Amharic | Assamese | Azerbaijani | Belarusian | Bengali | Basque | Gujarati | Icelandic | Georgian | Kannada | Kirghiz | Lao | Macedonian | Burmese | Nepali | Oriya | Punjabi | Sinhalese | Telugu | Uzbek | Zulu</em></p><h4>Dart 2.5 release</h4><p>The end-to-end developer experience depends not just on the features of Flutter but also on the underlying language itself. As part of the Flutter 1.9 release, Google is also releasing Dart 2.5. Dart 2.5 includes a pre-release of Foreign Function Interface (FFI) support, providing native extensions so Dart can call directly into code written in C. It also introduces machine learning-powered code completions for the IDE. You can learn about both of these and more in the Dart 2.5 announcement.</p><p><a href="https://medium.com/dartlang/announcing-dart-2-5-super-charged-development-328822024970">Announcing Dart 2.5: Super-charged development</a></p><h4>Support for macOS Catalina and iOS 13</h4><p>As Apple prepares to release Catalina, the latest version of macOS, Google has worked hard to make sure that Flutter is ready for you to upgrade. Google has updated the end-to-end tooling experience to ensure it works well on Catalina and with Xcode 11. This includes adding support for the new Xcode build system, enabling 64-bit support throughout the toolchain, and simplifying platform dependencies.</p><p>With iOS 13 on the way, Google has also been working to ensure your Flutter apps look great on the latest iPhone release. Flutter 1.9 includes an implementation of the iOS 13 draggable toolbar, with both long-press and drag-from-right, and supports vibration feedback. Work on iOS dark mode is also well underway with a number of pull requests already merged.</p><p>Finally, in the latest development builds, you can now turn on experimental support for Bitcode, which is Apple’s platform-independent intermediate representation of a compiled program. Submitting your app as Bitcode allows Apple to optimize your binary in the future without resubmission, and opens the door to Flutter potentially supporting platforms like watchOS and tvOS that require Bitcode for app submission.</p><h4>Toolchain improvements</h4><p>With this release, new projects default to Swift instead of Objective-C and Kotlin instead of Java for iOS and Android projects respectively. Since many packages are written with Swift, making it the default language removes manual work for adding those packages to an app created with the default options. Swift 5 is ABI stable, and thanks to app thinning work Apple has done in recent releases, the Swift dynamic libraries no longer need to be included in the distribution package for iOS 12.2 or greater, reducing the size of Swift applications compared to previous releases.</p><p>And as Kotlin is now the default language for new projects in Android Studio, it seems natural to make the language switch for Android also. These options are now the default for both the <strong>flutter </strong>CLI tool and the IntelliJ/Android Studio and VS Code plugins for Flutter, but you can always switch back to Objective-C or Java if you prefer.</p><h4>Error Message Beautification</h4><p>Google has been working to improve Flutter’s error messages by making them more readable, more concise and more actionable.</p><p>In the latest release of the Flutter plugin for IntelliJ/Android Studio and the extension for VS Code, Google shipped a new feature that displays error messages in a rich, yet concise, format. The logging console can now display error messages with the following improvements:</p><ol><li>Highlighting the summary of the error in red</li><li>Adding whitespace between sections to make the message more scannable</li><li>Calling out the hint in the message, if available, for resolving the error</li><li>Collapsing long lists and trees in the message</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*M0tiPIqRA0AehSY4.png" /><figcaption>Error Message Beautification</figcaption></figure><h4>Flutter web is stable</h4><p>And finally, the <strong>flutter_web repository</strong> is deprecated now the web support has been merged into the <strong>main flutter repository</strong>! What this means is that if you have the latest builds of Flutter from the master or dev channel, you can target the web with the latest experimental version of Flutter by running <strong>flutter run -d chrome</strong>.</p><p>When you create a project, Flutter now creates a web runner via a minimal <strong>web/index.html</strong> file that bootstraps your web-compiled Flutter code. With that file in place, you can use the Flutter CLI tool or the IDE plugins to edit and run Flutter apps on the web.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ghtblhSRf52FYIPP.png" /><figcaption>Flutter Web in VS Code</figcaption></figure><p>Above is a screenshot of VS Code with web support enabled for Flutter. Notice the <strong>web/index.html</strong> file, along with the dropdown list allowing you to choose Chrome as your target development device. Support for web output with Flutter is still at an early phase, but this release represents a major step forward towards enabling production support for web development with Flutter.</p><p><strong>Some major Flutter Web Applications are:</strong></p><ul><li><a href="https://flutter-widget-livebook.blankapp.org/">Flutter Widget Livebook</a> is built with Flutter for web and shows Flutter widgets running live in your browser.</li><li>Panache is a tool for creating themes for Flutter which you can then download and drop directly into your code.</li></ul><p><a href="https://rxlabz.github.io/panache_web/">Panache, create your Flutter Material theme</a></p><h4>Over 1500 PRs merged on Github</h4><p>This release is Flutter’s biggest update yet with more than 1,500 PRs from more than 100 contributors in the two months since their last stable release in July.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*-UoHD6KgLIvJiMeq.gif" /></figure><h3>🔍 Read more of my Articles</h3><ul><li><a href="https://medium.com/@ShivamGoyal1899/understanding-version-control-systems-github-simplified-with-sourcetree-59e1c0b57999">Understanding Version Control Systems: GitHub Simplified with SourceTree</a></li><li><a href="https://medium.com/enappd/building-a-flutter-datetime-picker-in-just-15-minutes-6a4b13d6a6d1">Building a Flutter DateTime Picker in just 15 minutes</a></li><li><a href="https://medium.com/enappd/adding-firebase-to-your-flutter-app-281b8f391b47">Adding Firebase to your Flutter App</a></li></ul><h3>🎯 That’s all for today.</h3><blockquote>If you got any queries hit me up in the comments or ping me over on <a href="/service/mailto:hi@itsshivam.com">hi@itsshivam.com</a> 📧</blockquote><blockquote>If you learned even a thing or two, clap your hands👏 as many times as you can to show your support! It really motivates me to contribute towards the community.</blockquote><blockquote>Feeling too generous? <a href="https://www.paypal.me/shivamgoyal1899/">Buy me a Drink</a> 🍺</blockquote><blockquote>Wanna collaborate? <a href="/service/mailto:hi@itsshivam.com">Let’s talk some tech</a> 😊</blockquote><blockquote>Stalk me over on <a href="https://itsshivam.com/">itsshivam.com</a>, <a href="https://github.com/ShivamGoyal1899">GitHub</a>, or <a href="https://linkedin.com/in/shivamgoyal1899/">LinkedIn</a>. 👀</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6848a17d5403" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Version Control Systems: GitHub Simplified with SourceTree]]></title>
            <link>https://shyvum.medium.com/understanding-version-control-systems-github-simplified-with-sourcetree-59e1c0b57999?source=rss-238902022efa------2</link>
            <guid isPermaLink="false">https://medium.com/p/59e1c0b57999</guid>
            <category><![CDATA[atlassian]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[version-control]]></category>
            <category><![CDATA[sourcetree]]></category>
            <dc:creator><![CDATA[Shivam Goyal]]></dc:creator>
            <pubDate>Sun, 08 Sep 2019 13:22:30 GMT</pubDate>
            <atom:updated>2019-12-12T15:01:30.579Z</atom:updated>
            <content:encoded><![CDATA[<h4>Learn about how to get Git up and running on your system along with the best industry practices using SourceTree.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XKEYxzaY9mcqOwiz58hATg.png" /></figure><h3>What is a Version Control System?</h3><p>Version control systems are a category of software tools that help a software team manage changes to source code over time. Version control software keeps track of every modification to the code in a special kind of database. If a mistake is made, developers can turn back the clock and compare earlier versions of the code to help fix the mistake while minimizing disruption to all team members.</p><p>In simple words, Version Control enables your code to live long by logging the state continuously, in an easily accessible format.</p><h3>Do we developers really need VCS?</h3><p>Having a VCS linked to your project is not a mandatory feature, but surely is a recommended one.</p><p>Having a VCS makes it easy to track ‘<strong>who developed what</strong>’ when the project is being developed on multiple devices simultaneously, by multiple developers.</p><p>While it is possible to develop software without using any version control, doing so subjects the project to a huge risk that no professional team would be advised to accept. So the question is not whether to use version control but <strong>which version control system to use</strong>.</p><h3>Which Version Control is best for you?</h3><p>There are plenty of choices available in the market including:</p><ol><li>Git</li><li>Mercurial</li><li>SVN</li><li>CVS</li></ol><p>The industry’s most used VCS is <strong>Git</strong> and hence is the most recommended one.<strong> </strong>Here, we will only be talking about Git.</p><h3>Pros &amp; Cons of Git Version Control</h3><h4>Pros of using Git</h4><p>It’s exactly why to pick Git over others.</p><ul><li>Distributed fault-tolerant network architecture</li><li>Optimized for fast commits and checkouts</li><li>Non-destructive updates through the use of an immutable log</li></ul><h4>Cons of using Git</h4><p>Nothing is perfect, hence is Git.</p><ul><li>Weak support for large binary files</li><li>Very large repositories with extensive history can slow down interactions</li><li>Learning curve and un-intuitive commands</li></ul><h3>Setting up Git</h3><p>Now, it’s time to set up Git on your system.</p><p>There are plenty of ways to start with, but we will be using a <strong>VCS</strong> client called <strong>SourceTree </strong>as it’s the most prevailing VCS client in the tech industry.</p><h4>Reasons for choosing SourceTree</h4><p>There are five major reasons for choosing SourceTree over Command-Line or any other Git client.</p><ol><li><strong>Branch management<br></strong>Managing branches in Sourcetree is easy. It enables you to switch working copies with a single click. It also tells you how far ahead or behind you are to the version in the repository, and alerts you to push or pull. Know where you are with visual branch management.</li><li><strong>Working Copy</strong><br>Using the command line can sometimes feel like you are working in the dark. The ‘Working Copy’ section shows the difference between your local copy and the version in the Git repository. This gives you a ‘real-time’ view of your local files, so you can see exactly what you have changed.</li><li><strong>Branch History</strong><br>A huge part of the SourceTree interface is History. This section displays the full history of the current branch. Each commit and file change is displayed and accessible, providing a very powerful tool for version control. This alone is a huge benefit for projects which are worked on regularly by multiple developers.</li><li><strong>GitFlow</strong><br>One feature I make use of is GitFlow. Having 6+ developers working on one set of code at once can get complicated. GitFlow adds a structured process to your workflow, which ensures that parallel code changes are completed without any hiccups, and it’s a two-click setup! I have seen a huge reduction in merge conflicts thanks to GitFlow.</li><li><strong>It’s Free<br></strong>It doesn’t cost a thing to download or use SourceTree, great huh!?</li></ol><h4>Installing SourceTree</h4><ul><li>Go to the Sourcetree website and click the download button.</li></ul><p><a href="https://sourcetreeapp.com/">Sourcetree | Free Git GUI for Mac and Windows</a></p><ul><li>From the ZIP file you download, click the application file (EXE for Windows or DMG for Mac) to download.</li><li>After you install, you’ll have to agree to the Atlassian Customer Agreement and hit <strong>Continue</strong>.</li><li>You need an Atlassian account to use Sourcetree. When you get to this screen, click either <strong>Use an existing account</strong> or <strong>Go to My Atlassian </strong>and follow the prompts to <a href="https://id.atlassian.com/signup?application=mac&amp;continue=https%3A%2F%2Fmy.atlassian.com%2Fproducts%2Findex">create a new account</a>. Once you’ve got an account, you’ll be able to log in with <strong>Use an existing account</strong>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jwtSplCDlV1s3nvh.png" /><figcaption>Logging in to SourceTree</figcaption></figure><ul><li>If you want to connect to a remote hosting service, use the default options as you enter your Bitbucket or GitHub credentials. If you can’t continue without generating an SSH key, select <strong>HTTPS</strong> to continue or see <a href="https://confluence.atlassian.com/x/X4FmKw">Set up an SSH key</a> for more details about setting up SSH with Sourcetree.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Qp0mimT5NbIDBdrh.png" /><figcaption>Connecting extra accounts</figcaption></figure><ul><li>Follow the prompts until you’re done with the setup. If you aren’t ready to clone a repository, click <strong>Skip Setup</strong>.</li></ul><h4>Connecting to GitHub</h4><ul><li>Firstly, <strong>sign up</strong> on GitHub, if you already don’t have a GitHub account.</li></ul><p><a href="https://github.com/join">Build software better, together</a></p><ul><li>Switch to SourceTree. Click the gear icon and select <strong>Accounts.</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xFBS8KMlow_RY1Hl.png" /><figcaption>Add GitHub account</figcaption></figure><ul><li>Click <strong>Add</strong> from the <strong>Accounts</strong> tab.</li><li>After you select a <strong>GitHub </strong>as Host, enter your hosting details. Keep the default <strong>Auth Type</strong> and click <strong>Connect Account</strong> to enter your credentials.</li><li>When you enter your account details, you can choose whether you prefer to connect with HTTPS or SSH. Choose <strong>HTTPS</strong> for now.</li><li>An authentication window will open in your browser. Login with your GitHub Credentials and grant permission.</li></ul><p><strong>Hola…!!! 🙌 </strong>Your Github account is logged into SourceTree and you are good to go.</p><h3>Breakfast + Lunch + Dinner Commands</h3><p>These are the commands which are highly used in each and every project.</p><ul><li><strong>git init &lt;directory&gt;<br></strong>Create empty Git repo in the specified directory. Run with no arguments to initialize the current directory as a git repository</li><li><strong>git add &lt;directory&gt;<br></strong> Stage all changes in <strong>&lt;directory&gt;</strong> for the next commit. Replace <strong>&lt;directory&gt;</strong> with a <strong>&lt;file&gt;</strong> to change a specific file.</li><li><strong>git commit -m “&lt;message&gt;”<br></strong> Commit the staged snapshot, but instead of launching a text editor, use <strong>&lt;message&gt;</strong> as the commit message.</li><li><strong>git push &lt;remote&gt; &lt;branch&gt;<br></strong> Push the branch to &lt;remote&gt;, along with necessary commits and objects. Creates named branch in the remote repo if it doesn’t exist.</li><li><strong>git pull &lt;remote&gt;<br></strong> Fetch the specified remote’s copy of the current branch and immediately merge it into the local copy.</li><li><strong>git clone &lt;repo&gt;<br></strong> Clone repo located at onto local machine. The original repo can be located on the local filesystem or on a remote machine via HTTP or SSH.</li><li><strong>git status<br></strong> List which files are staged, unstaged, and untracked.</li><li><strong>git log<br></strong> Display the entire commit history using the default format. For customization see additional options.</li><li><strong>git diff<br></strong> Show unstaged changes between your index and working directory.</li></ul><h3>PowerUser Tips</h3><p>Here are the tips to make the best use of Git with your projects.</p><h4>Git CheatSheet</h4><iframe src="https://drive.google.com/viewerng/viewer?url=https%3A//www.atlassian.com/dam/jcr%3A8132028b-024f-4b6b-953e-e68fcce0c5fa/atlassian-git-cheatsheet.pdf&amp;embedded=true" width="600" height="780" frameborder="0" scrolling="no"><a href="https://medium.com/media/cc85aca5989683c1ef04a3a9853ed328/href">https://medium.com/media/cc85aca5989683c1ef04a3a9853ed328/href</a></iframe><h4>SourceTree Shortcuts</h4><p><a href="https://kapeli.com/cheat_sheets/Sourcetree.docset/Contents/Resources/Documents/index">Sourcetree</a></p><h4>SourceTree Dark Mode</h4><p>Enable Dark Theme for SourceTree in <strong>Tools &gt;&gt; Options.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/1*_vbbLxCI1rwn-VYqYPhhpA.png" /><figcaption>SourceTree Dark Mode</figcaption></figure><h4>Push with Commit</h4><p>Tick the checkbox against <strong>‘Push changes immediately…’</strong> to make sure your changes are updated on the <strong>remote</strong> repository as soon as you commit the change to the local copy of repository.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/706/1*-VYAS5kOEpkfrrFNmCcYQg.png" /><figcaption>Push with Commit</figcaption></figure><h4>SourceTree QuickAccess Menu</h4><p>Use the QuickAccess menu to access frequently used features easily.</p><ul><li><strong>Terminal</strong> to open Terminal directly at the repository directory</li><li><strong>Remote</strong> to open the remote repository in the browser</li><li><strong>Explorer</strong> to open the local repository in the File Explorer</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/379/1*5_-ZmJ4OxHtH2Z5lxfI54A.png" /><figcaption>QuickAccess</figcaption></figure><h4><strong>Faster Repository Search</strong></h4><ul><li>Press <strong>Ctrl + B</strong> on your keyboard to toggle Bookmarks Sidebar.</li><li>Type your search query straight away.</li><li>Hit <strong>ENTER</strong> to open the Working Copy of repo in <strong>SourceTree</strong>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/459/1*WZ6gSsLdpspWBHwz7_7Baw.png" /><figcaption>Faster Repository Search</figcaption></figure><h3>🔍 Read more of my Articles</h3><ul><li><a href="https://medium.com/enappd/install-flutter-on-windows-and-mac-1fd1dde453ba">How to install Flutter on Mac &amp; Windows</a></li><li><a href="https://medium.com/enappd/whats-new-with-flutter-1-7-how-to-upgrade-to-the-latest-version-6dd94adcd678">What’s new with Flutter 1.7 &amp; how to upgrade to the latest version</a></li><li><a href="https://medium.com/enappd/adding-firebase-to-your-flutter-app-281b8f391b47">Adding Firebase to your Flutter App</a></li></ul><h3>🎯 That’s all for today.</h3><blockquote>If you got any queries hit me up in the comments or ping me over on <a href="/service/mailto:hi@itsshivam.com">hi@itsshivam.com</a> 📧</blockquote><blockquote>If you learned even a thing or two, clap your hands👏 as many times as you can to show your support! It really motivates me to contribute towards the community.</blockquote><blockquote>Feeling too generous? <a href="https://www.paypal.me/shivamgoyal1899/">Buy me a Drink</a> 🍺</blockquote><blockquote>Wanna collaborate? <a href="/service/mailto:hi@itsshivam.com">Let’s talk some tech</a> 😊</blockquote><blockquote>Stalk me over on <a href="https://itsshivam.com/">itsshivam.com</a>, <a href="https://github.com/ShivamGoyal1899">GitHub</a>, or <a href="https://linkedin.com/in/shivamgoyal1899/">LinkedIn</a>. 👀</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=59e1c0b57999" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building an iOS-style Shopping App with a minimalist design using Flutter]]></title>
            <link>https://medium.com/enappd/building-an-ios-style-shopping-app-with-a-minimalistic-design-using-flutter-f75456f5f9bf?source=rss-238902022efa------2</link>
            <guid isPermaLink="false">https://medium.com/p/f75456f5f9bf</guid>
            <category><![CDATA[cupertino]]></category>
            <category><![CDATA[app-development]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[shopping]]></category>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Shivam Goyal]]></dc:creator>
            <pubDate>Tue, 23 Jul 2019 15:48:47 GMT</pubDate>
            <atom:updated>2019-12-12T15:04:06.640Z</atom:updated>
            <content:encoded><![CDATA[<h4>Learn how to use Cupertino style (iOS) to make apps in Flutter</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R0gH6YefOwnB3gWLQjEF_w.png" /></figure><h3>Introduction</h3><p>The Material Design language was created for any platform, not just Android. When you write a Material app in Flutter, it has the Material look and feels on all devices, even iOS. If you want your app to <em>look</em> like a standard iOS-styled app, then you would use the Cupertino library.</p><p>You can technically run a Cupertino app on either Android or iOS, but (due to licensing issues) Cupertino won’t have the correct fonts on Android. For this reason, use an iOS-specific device when writing a Cupertino app.</p><h4>What you’ll build?</h4><p>In this tutorial, you’ll build a shopping app with an iOS materialistic design using the Flutter SDK. Your app will have:</p><ul><li>Three tabs for <strong>Products</strong>, <strong>Search</strong> and <strong>Cart</strong>.</li><li>Holistic flow for buying any product.</li><li>Use the <strong>provider </strong>package to manage state between screens.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*308ry-b9mD5sZxxbtaedcQ.png" /></figure><p>This tutorial focuses on building important components and Cupertino layout. Non-relevant concepts and code blocks are glossed over and are provided for you to simply copy and paste.</p><h4>Github Repository | @ShivamGoyal1899</h4><p><a href="https://github.com/ShivamGoyal1899/CupertinoShoppingApp">ShivamGoyal1899/CupertinoShoppingApp</a></p><h4>Package Used | provider</h4><p><a href="https://pub.dev/packages/provider">provider | Flutter package</a></p><h3>Setting up Flutter on your machine</h3><p>The detailed steps to install Flutter on your personal computer &amp; getting started with Flutter is available at the following blog post</p><p><a href="https://medium.com/enappd/install-flutter-on-windows-and-mac-1fd1dde453ba">How to install Flutter on Mac &amp; Windows</a></p><h3>Coding the application</h3><h4>Create the initial Cupertino app</h4><ul><li>Create a simple templated Flutter app, using the instructions in the above blog. Name the project <strong>cupertino_store.</strong> You’ll be modifying this starter app to create the finished app.</li><li>Replace the contents of <strong>main.dart </strong>with the following code.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b944dd3fd576509ee9e3f397435f51c4/href">https://medium.com/media/b944dd3fd576509ee9e3f397435f51c4/href</a></iframe><ul><li>Add a file to the <strong>lib </strong>directory called <strong>styles.dart</strong>. The <strong>Styles </strong>class defines the text and color styling to customize the app.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/49c063f549081fca36df7979098ffd2a/href">https://medium.com/media/49c063f549081fca36df7979098ffd2a/href</a></iframe><ul><li>Add the following <strong>CupertinoStoreApp </strong>class to <strong>lib/app.dart</strong>.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c9894d71267dfb7dd1bad8dec018f404/href">https://medium.com/media/c9894d71267dfb7dd1bad8dec018f404/href</a></iframe><ul><li>Add the following <strong>CupertinoStoreHomePage </strong>class to <strong>lib/app.dart</strong> to create the layout for the homepage.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6791fd6adab93163ec9e5ab08084da7f/href">https://medium.com/media/6791fd6adab93163ec9e5ab08084da7f/href</a></iframe><ul><li>At the top of the project, edit the <strong>pubspec.yaml</strong> file. Add the libraries that you will need, and a list of the image assets.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/94be26b95c4d1513360efcdf8b6903d6/href">https://medium.com/media/94be26b95c4d1513360efcdf8b6903d6/href</a></iframe><h4>Create the structure for a 3-tab app</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LkWTLn2vGc5hkSJFkHo0zQ.png" /><figcaption>BottomAppBar</figcaption></figure><ul><li>The final app features 3 tabs:<br>Product list | Product search | Shopping cart</li><li>Replace the <strong>CupertinoStoreHomePage </strong>class with the following, which sets up a 3-tab scaffold:</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/74dea0fbc590abf3b9c09d339e1ad1ae/href">https://medium.com/media/74dea0fbc590abf3b9c09d339e1ad1ae/href</a></iframe><ul><li>Create a <strong>lib/product_list_tab.dart </strong>file for the first tab that compiles cleanly, but only displays a white screen. Use the following content:</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/808cb7a613b8c6e7e31d70ccc9ded1f2/href">https://medium.com/media/808cb7a613b8c6e7e31d70ccc9ded1f2/href</a></iframe><ul><li>Create a <strong>lib/search_tab.dart</strong> file that compiles cleanly, but only displays a white screen. Use the following content:</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b738f9f1d7a3c3dbe313b8ef002ef9aa/href">https://medium.com/media/b738f9f1d7a3c3dbe313b8ef002ef9aa/href</a></iframe><ul><li>Create a <strong>lib/shopping_cart_tab.dart</strong> file that compiles cleanly, but only displays a white screen. Use the following content:</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ae7a5b3c0bec3bfcb14dbb4ca227f649/href">https://medium.com/media/ae7a5b3c0bec3bfcb14dbb4ca227f649/href</a></iframe><ul><li>Update the import statements in <strong>lib/app.dart</strong> to pull in the new tab widgets:</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/59a76610037cdb0b2157a8dafce6f34d/href">https://medium.com/media/59a76610037cdb0b2157a8dafce6f34d/href</a></iframe><h4>Add state management</h4><ul><li>Create a <strong>model</strong> directory under <strong>lib</strong>. Add a <strong>lib/model/product.dart</strong> file that defines the product data coming from the data source:</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b5f2f4958a8b603005b5277836ae8aaf/href">https://medium.com/media/b5f2f4958a8b603005b5277836ae8aaf/href</a></iframe><ul><li>Create a <strong>lib/model/products_repository.dart</strong> file. This file contains all products for sale. Each product belongs to a category.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7b8382837d576ee99e6b11b7567643c5/href">https://medium.com/media/7b8382837d576ee99e6b11b7567643c5/href</a></iframe><ul><li>Here is the list of method signatures provided by this class.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7216d714b761a99acaa50433a1662533/href">https://medium.com/media/7216d714b761a99acaa50433a1662533/href</a></iframe><ul><li>In the <strong>main()</strong>method, initialize the model. Add the lines marked with NEW.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/471373b5dba5a8a5b33686260ab2acda/href">https://medium.com/media/471373b5dba5a8a5b33686260ab2acda/href</a></iframe><h4>List products for sale</h4><ul><li>Create the lib/product_row_item.dart file, with the following content:</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/95d2ac67cc3a66537faecea828ef57c3/href">https://medium.com/media/95d2ac67cc3a66537faecea828ef57c3/href</a></iframe><ul><li>In <strong>lib/product_list_tab.dart</strong>, import the <strong>product_row_item.dart</strong> file.</li></ul><pre><strong>import</strong> &#39;package:flutter/cupertino.dart&#39;;<br><strong>import</strong> &#39;package:provider/provider.dart&#39;;<br><br><strong>import</strong> &#39;model/app_state_model.dart&#39;;<br><strong>import</strong> &#39;product_row_item.dart&#39;;      <strong><em>// add this line</em></strong></pre><ul><li>In the <strong>build()</strong> method for <strong>ProductRowTab</strong>, get the product list and the number of products. Add the new lines indicated below:</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/12e2f4d447cba04d051600d7c152312e/href">https://medium.com/media/12e2f4d447cba04d051600d7c152312e/href</a></iframe><ul><li>Also in the <strong>build()</strong> method, add a new sliver to the sliver widgets list to hold the product list. Add the new lines indicated below:</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e03fe85e9f49f148ad5c65622b5766e5/href">https://medium.com/media/e03fe85e9f49f148ad5c65622b5766e5/href</a></iframe><h4>Add product search</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*feb51AWSGeWjmu1JtdBNKA.gif" /></figure><ul><li>Update the imports in lib/search_tab.dart. Add imports for the classes that the search tab will use:</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e10cc37990a54b6f9412957bf7b0d238/href">https://medium.com/media/e10cc37990a54b6f9412957bf7b0d238/href</a></iframe><ul><li>Update the build() method in _SearchTabState. Initialize the model and replace the CustomScrollView with individual components for searching and listing.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8d996a2214f00152354645218506b34c/href">https://medium.com/media/8d996a2214f00152354645218506b34c/href</a></iframe><ul><li>Add supporting variables, functions, and methods to the _SearchTabState class. These include initState(), dispose(), _onTextChanged(), and _buildSearchBox(), as shown below:</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/15daa4001d49fc9bc554bf44ec463bb1/href">https://medium.com/media/15daa4001d49fc9bc554bf44ec463bb1/href</a></iframe><ul><li>Create a new file, lib/search_bar.dart. The SearchBar class handles the actual search on the product list. Seed the file with the following content:</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5616f24edad0640f91ed893c23f8fc1c/href">https://medium.com/media/5616f24edad0640f91ed893c23f8fc1c/href</a></iframe><h4>Add customer info</h4><ul><li>Update the <strong>lib/shopping_cart_tab.dart</strong> file. Add private methods for building the name, email, and location fields. Then add a <strong>_buildSliverChildBuildDelegate()</strong> method that builds out parts of the user interface.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/83024b43918689d35b954b3f617e441a/href">https://medium.com/media/83024b43918689d35b954b3f617e441a/href</a></iframe><ul><li>Update the <strong>build()</strong> method in the <strong>_SearchTabState </strong>class. Add a <strong>SliverSafeArea </strong>that calls the <strong>_buildSliverChildBuildingDelegate</strong> method:</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d8fd8a6d91174223f264571b0cb6fb18/href">https://medium.com/media/d8fd8a6d91174223f264571b0cb6fb18/href</a></iframe><h4>Add date picker</h4><ul><li>Add imports and a <strong>const</strong> to <strong>lib/shopping_cart_tab.dart</strong>. Add the new lines, as shown:</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8144bfa8a053bdcf983f8fbf23cd85b0/href">https://medium.com/media/8144bfa8a053bdcf983f8fbf23cd85b0/href</a></iframe><ul><li>Add a <strong>_buildDateAndTimePicker()</strong> function to the <strong>_ShoppingCartTab</strong> widget. Add the function, as follows:</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5bc47c0864ab3d5a34d3a580ada80d80/href">https://medium.com/media/5bc47c0864ab3d5a34d3a580ada80d80/href</a></iframe><ul><li>Add a call to build the date and time UI, to the <strong>_buildSliverChildBuilderDelegate </strong>function. Add the new code, as shown:</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/91d858b4095b52d06feb586ec940159b/href">https://medium.com/media/91d858b4095b52d06feb586ec940159b/href</a></iframe><h4>Add selected items for purchase</h4><ul><li>Import the product package in <strong>shopping_cart_tab.dart</strong>.</li></ul><pre><strong>import</strong> &#39;model/product.dart&#39;;</pre><ul><li>Add a currency format to the <strong>_ShoppingCartTabState </strong>class.</li></ul><pre><strong>final</strong> _currencyFormat = NumberFormat.<strong>currency</strong>(symbol: &#39;\$&#39;);</pre><ul><li>Add a product index to the <strong>_buildSliverChildBuilderDelegate </strong>function.</li></ul><pre>SliverChildBuilderDelegate _buildSliverChildBuilderDelegate(<br>   AppStateModel model) {<br> return SliverChildBuilderDelegate(<br>   (context, index) {<br>     final productIndex = index - 4;    <em>// NEW</em><br>     switch (index) {]<br>  <em>// ...</em></pre><ul><li>In the same function, display the items to purchase. Add the code to the <strong>default:</strong> section of the switch statement, as follows:</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4480267fddba7e1440212d338611219a/href">https://medium.com/media/4480267fddba7e1440212d338611219a/href</a></iframe><h3>Building &amp; running the application</h3><ul><li>Connect your Emulator or physical Android device to test the application.</li><li>Click on Build &amp; Run.</li><li>And Boooom 🔥, your app is ready.<br>The final build would look like the below illustration.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*7vgO_HahD3t-T6ztdqcraQ.gif" /></figure><h3>🔍 Read more of my Articles</h3><ul><li><a href="https://medium.com/enappd/building-a-flutter-datetime-picker-in-just-15-minutes-6a4b13d6a6d1">Building a Flutter DateTime Picker in just 15 minutes</a></li><li><a href="https://medium.com/flutter-community/building-a-flutter-alertdialog-in-just-15-minutes-57fb81b73698">Building a Flutter AlertDialog in just 15 minutes</a></li><li><a href="https://medium.com/enappd/flutter-tutorial-for-native-app-building-and-facebook-authentication-978f0ee44976">How to add Facebook Authentication to your Flutter App</a></li></ul><h3>🎯 That’s all for today.</h3><blockquote>If you got any queries hit me up in the comments or ping me over on <a href="/service/mailto:hi@itsshivam.com">hi@itsshivam.com</a> 📧</blockquote><blockquote>If you learned even a thing or two, clap your hands👏 as many times as you can to show your support! It really motivates me to contribute towards the community.</blockquote><blockquote>Feeling too generous? <a href="https://www.paypal.me/shivamgoyal1899/">Buy me a Drink</a> 🍺</blockquote><blockquote>Wanna collaborate? <a href="/service/mailto:hi@itsshivam.com">Let’s talk some tech</a> 😊</blockquote><blockquote>Stalk me over on <a href="https://itsshivam.com/">itsshivam.com</a>, <a href="https://github.com/ShivamGoyal1899">GitHub</a>, or <a href="https://linkedin.com/in/shivamgoyal1899/">LinkedIn</a>. 👀</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*r5VeD2fV04iDy8xfmaauHA.png" /></figure><p><a href="https://store.enappd.com/">Enappd | Ionic, React native, Firebase themes, templates and starters</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f75456f5f9bf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/enappd/building-an-ios-style-shopping-app-with-a-minimalistic-design-using-flutter-f75456f5f9bf">Building an iOS-style Shopping App with a minimalist design using Flutter</a> was originally published in <a href="https://medium.com/enappd">Enappd</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Connecting Cloud Firestore Database to Flutter]]></title>
            <link>https://medium.com/enappd/connecting-cloud-firestore-database-to-flutter-voting-app-2da5d8631662?source=rss-238902022efa------2</link>
            <guid isPermaLink="false">https://medium.com/p/2da5d8631662</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[firebase]]></category>
            <category><![CDATA[firestore]]></category>
            <category><![CDATA[app-development]]></category>
            <dc:creator><![CDATA[Shivam Goyal]]></dc:creator>
            <pubDate>Tue, 23 Jul 2019 15:47:09 GMT</pubDate>
            <atom:updated>2019-12-12T15:05:00.884Z</atom:updated>
            <content:encoded><![CDATA[<h4>Learn how to connect your Flutter app with Cloud Firestore and update the database in real-time</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LWqcxVittdzOI2oAL6KHMQ.png" /></figure><h3>Introduction</h3><p>Cloud Firestore is a flexible, scalable database for mobile, web, and server development from Firebase and Google Cloud Platform. Like Firebase Realtime Database, it keeps your data in-sync across client apps through realtime listeners and offers offline support for mobile and web so you can build responsive apps that work regardless of network latency or Internet connectivity. Cloud Firestore also offers seamless integration with other Firebase and Google Cloud Platform products, including Cloud Functions.</p><h4>What you’ll build?</h4><p>In this tutorial, you’ll build a mobile app featuring realtime Cloud Firestore Database using the Flutter SDK. Your app will:</p><ul><li>Display a voting interface connected to a Firestore database.</li><li>Update the database on the cloud as you tap on a particular vote.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*PqwflenUVNH0wIBC.png" /><figcaption>That’s how the final implementation gonna look like</figcaption></figure><p>This tutorial focuses on adding Cloud Firestore to a Flutter app. Non-relevant concepts and code blocks are glossed over and are provided for you to simply copy and paste.</p><h4>GitHub Profile | @ShivamGoyal1899</h4><p><a href="https://github.com/ShivamGoyal1899">ShivamGoyal1899 - Overview</a></p><h4>Package Used | cloud_firestore</h4><p><a href="https://pub.dev/packages/cloud_firestore">cloud_firestore | Flutter package</a></p><h3>Setting up Flutter on your machine</h3><p>The detailed steps to install Flutter on your personal computer &amp; getting started with Flutter is available at the following blog post</p><p><a href="https://medium.com/enappd/install-flutter-on-windows-and-mac-1fd1dde453ba">How to install Flutter on Mac &amp; Windows</a></p><h3>Adding Firebase to your Flutter App</h3><p>This tutorial requires already setup Firebase. The detailed steps to integrate Firebase with Flutter is available at the following blog post</p><p><a href="https://medium.com/enappd/adding-firebase-to-your-flutter-app-281b8f391b47">Adding Firebase to your Flutter App</a></p><p>Your Firebase-Flutter setup is finished, and you’re ready to start building your app!</p><h3><strong>Create your Cloud Firestore database</strong></h3><p>You’ll start by setting up Cloud Firestore and initializing it with some values.</p><ul><li>Open the <a href="https://console.firebase.google.com/">Firebase console</a>, then select the Firebase project that you created during setup.</li><li>From the left nav <strong>Develop</strong> section, select <strong>Database</strong>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/308/1*0um9HaWpBX_X_SiuXhA8jg.png" /></figure><ul><li>In the <strong>Cloud Firestore</strong> pane, click <strong>Create database</strong>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/522/1*s_0SYZq2gL_BUbJLem_mSA.png" /></figure><ul><li>In the <strong>Secure rules for Cloud Firestore dialog</strong>, select <strong>Start in test mode</strong>, then click <strong>Next</strong>. On the next screen, select <strong>Cloud Firestore location</strong>. I suggest selecting <strong>nam5 (us-central) </strong>. However, you can select according to your preference.</li><li>Test mode allows any user to read and write to your database, which is convenient during development. However, this can be a security risk. Before releasing an app to production, you should add security rules.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*Bm9EyN60KIJzOHakHLQ3iQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*CBO-PoNGpRk9SaoZOvToOg.png" /></figure><ul><li>Our database will have one collection, that we’ll name “candidate”. In the collection is where the names and votes are stored. Click <strong>Start Collection</strong>, set the collection’s ID to <strong>candidate</strong>, then click <strong>Next</strong>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*duF9HT0AhhCogMhu4jWrzQ.png" /></figure><ul><li>You can now add documents to your collection. Each document has a <strong>Document ID</strong>, and we’ll need to have <strong>name </strong>and <strong>votes </strong>fields.</li><li>Enter a candidate name using all lowercase letters. In this example, we used <strong>tom</strong>.<br>Using an actual candidate name for each Document ID ensures that the documents are displayed alphabetically by candidate name. By default, Document IDs are auto-generated timestamps, and documents are displayed in the order that they were created.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/893/1*63_Zqzp3VacQrWo7Bdwp9w.png" /></figure><ul><li>For the existing <strong>Field</strong>, enter the value of <strong>name</strong>, select <strong>string </strong>for the <strong>Type</strong>, then enter the <strong>Value</strong> of <strong>Tom</strong>.</li><li>Click the <strong>Add Field</strong> icon to add a second field to contain the number of <strong>votes</strong>. Select <strong>number </strong>for the <strong>Type</strong>, then initialize the <strong>Value</strong> as 0.</li><li>Click <strong>Save</strong>.</li><li>Add additional baby names by clicking <strong>Add Document</strong>.<br>After adding several documents to your collection, your database should look something like this:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FxZ97mib5tTeuU-ik161qw.png" /><figcaption>Firestore Console</figcaption></figure><h3>Coding the application</h3><h4>Add Cloud Firestore plugin to your app</h4><ul><li>From the root directory of your Flutter app, open your <strong>pubspec.yaml</strong> file.</li><li>Add the FlutterFire plugin for the Cloud Firestore. All Flutter apps with Cloud Firestore, both iOS and Android versions, require the <strong>cloud_firestore</strong> plugin.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3ed911a0e785144d99ba3ddc6fde7f30/href">https://medium.com/media/3ed911a0e785144d99ba3ddc6fde7f30/href</a></iframe><ul><li>Run <strong>flutter packages get</strong>.</li></ul><h4>Adding the User Interface</h4><ul><li>Using your IDE or editor, open <strong>lib/main.dart</strong>. This file currently contains the entire code for the default Flutter app.</li><li>Delete all of the code in <strong>main.dart</strong>, then replace it with the following:</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4b11c1a290ac3b42efcbb1271afe3651/href">https://medium.com/media/4b11c1a290ac3b42efcbb1271afe3651/href</a></iframe><ul><li>Save the file, then <strong>hot-reload</strong> your app. You should see the following app:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qulyUYpUb9_6v12RZPsmqQ.png" /><figcaption>Mock created with dummyData</figcaption></figure><ul><li>The app is currently just a mock. Clicking on names only prints to the console. The next step is to connect this app to Cloud Firestore. Before doing that, you can read about how the code in <strong>main.dart</strong> is structured.</li></ul><p>The first half of this program is fairly straightforward:</p><ul><li>You imported <strong>cloud_firestore.dart</strong>, a plugin for communicating with the Cloud Firestore.</li><li>You added some dummy data (soon to be replaced by a Cloud Firestore instance).</li><li>You set the app’s title to <strong>Voting Panel</strong>.</li></ul><p>The interesting part of the code is in <strong>_MyHomePageState</strong>. The <strong>build </strong>method in this block defines the widget hierarchy that Flutter uses to create the display for your app.</p><ul><li>The app has an <strong>AppBar</strong> (with a title of <strong>Voting Panel</strong>).</li><li>The app’s body contains a <strong>ListView</strong>, which renders each of the dummy data points as individual list items.</li></ul><p>The longest method by far is <strong>_buildListItem</strong>, which tells Flutter how to build each item in the list (displayed as the rounded rectangles with candidate names and the number of votes).</p><p>Lastly, you have <strong>Record</strong>, the convenience class that holds a single record for a name. You don&#39;t strictly need this class for a simple app like this to function, but it makes the code a bit cleaner.</p><h4>Connect your Flutter app to Cloud Firestore</h4><p>Our app is now connected to Cloud Firestore! It’s time to fetch our collection (<strong>candidate</strong>) and use it instead of our <strong>dummySnapshot </strong>object.</p><p>From Dart, you get the reference to Cloud Firestore by calling <strong>Firestore.instance</strong>. Specifically for our collection of baby names, call <strong>Firestore.instance.collection(&#39;candidate&#39;).snapshots()</strong> to return a <strong>stream </strong>of snapshots.</p><p>Let’s plug that stream of data into our Flutter UI using a <strong>StreamBuilder </strong>widget.</p><ul><li>In your IDE or editor, open <strong>lib/main.dart</strong>, then find the <strong>_buildBody </strong>method.</li><li>Replace the entire method with the following code:</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/beb3316870b1247f1ba9ffaf96abada0/href">https://medium.com/media/beb3316870b1247f1ba9ffaf96abada0/href</a></iframe><ul><li>The code that you just copy-pasted has a type error. It’s trying to pass a list of <strong>DocumentSnapshot </strong>to a method that expects something else. Find <strong>_buildList </strong>and change its signature to this:</li></ul><pre><strong>Widget</strong> _buildList(BuildContext context, List&lt;DocumentSnapshot&gt; snapshot) {<br>  ...</pre><ul><li>Instead of a list of <strong>Map</strong>, it now takes a list of <strong>DocumentSnapshot</strong>.</li><li>We’re almost there. The method <strong>_buildListItem </strong>still thinks it&#39;s getting a <strong>Map</strong>. Find the start of the method, then replace it with this:</li></ul><pre><strong>Widget</strong> _buildListItem(BuildContext context, DocumentSnapshot data) {<br> final record = Record.fromSnapshot(data);</pre><ul><li>Instead of a <strong>Map</strong>, you&#39;re now taking a <strong>DocumentSnapshot</strong>, and using the <strong>Record.fromSnapshot()</strong> named constructor to build the <strong>Record</strong>. Remove the <strong>dummySnapshot </strong>field from the top of <strong>lib/main.dart</strong>. It&#39;s not needed anymore.</li><li>Save the file, then hot-reload your app. After about a second, your app should look like this:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*brrbur5ZGdCGLrmG7-hAFA.png" /><figcaption>Reading from the Cloud Firestore database</figcaption></figure><p>You’ve just read from the database that you created! If you want, you can go to the Firebase console and change the database. Your app will reflect the changes almost immediately (after all Cloud Firestore is a real-time database!).</p><h4>Add interactivity</h4><p>Next, you will allow users to actually vote!</p><ul><li>In <strong>lib/main.dart</strong>, find the line that says <strong>onTap: () =&gt; print(record)</strong>. Change it to this:</li></ul><pre><strong>onTap</strong>: () =&gt; record.reference.<strong>updateData</strong>({&#39;votes&#39;: record.votes+1})</pre><p>Instead of just printing the record to the console, this new line updates the baby name’s database reference by incrementing the vote count by one.</p><ul><li>Save the file, then <strong>hot-reload</strong> your app.</li></ul><p>Voting is now functional, including the update to the user interface.</p><blockquote><strong>How does this work?</strong><br>When the user taps the tile containing a name, you are telling Cloud Firestore to update the data of that reference. In turn, this causes Cloud Firestore to notify all listeners with the updated snapshot. As your app is listening through the StreamBuilder implemented above, it&#39;s updated with the new data.</blockquote><p><strong>Here are the final contents of </strong><strong>lib/main.dart.</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/024871cf9bc2700e289f2a75526843c1/href">https://medium.com/media/024871cf9bc2700e289f2a75526843c1/href</a></iframe><h3>Building &amp; running the application</h3><ul><li>Connect your Emulator or physical Android device to test the application.</li><li>Click on Build &amp; Run.</li><li>And Boooom 🔥, your app is ready.<br>The final build would look like the below illustration.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*6uLYCQE4eHbxoh29dZClZQ.gif" /><figcaption>That’s how the Final Implementation will look like</figcaption></figure><h3>🔍 Read more of my Articles</h3><ul><li><a href="https://medium.com/enappd/building-flutter-pulltorefresh-in-just-15-minutes-9dbf2bee0089">Building Flutter PullToRefresh in just 15 minutes</a></li><li><a href="https://medium.com/@ShivamGoyal1899/understanding-version-control-systems-github-simplified-with-sourcetree-59e1c0b57999">Understanding Version Control Systems: GitHub Simplified with SourceTree</a></li><li><a href="https://medium.com/enappd/building-a-flutter-datetime-picker-in-just-15-minutes-6a4b13d6a6d1">Building a Flutter DateTime Picker in just 15 minutes</a></li></ul><h3>🎯 That’s all for today.</h3><blockquote>If you got any queries hit me up in the comments or ping me over on <a href="/service/mailto:hi@itsshivam.com">hi@itsshivam.com</a> 📧</blockquote><blockquote>If you learned even a thing or two, clap your hands👏 as many times as you can to show your support! It really motivates me to contribute towards the community.</blockquote><blockquote>Feeling too generous? <a href="https://www.paypal.me/shivamgoyal1899/">Buy me a Drink</a> 🍺</blockquote><blockquote>Wanna collaborate? <a href="/service/mailto:hi@itsshivam.com">Let’s talk some tech</a> 😊</blockquote><blockquote>Stalk me over on <a href="https://itsshivam.com/">itsshivam.com</a>, <a href="https://github.com/ShivamGoyal1899">GitHub</a>, or <a href="https://linkedin.com/in/shivamgoyal1899/">LinkedIn</a>. 👀</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*r5VeD2fV04iDy8xfmaauHA.png" /></figure><p><a href="https://store.enappd.com/">Enappd | Ionic, React native, Firebase themes, templates and starters</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2da5d8631662" width="1" height="1" alt=""><hr><p><a href="https://medium.com/enappd/connecting-cloud-firestore-database-to-flutter-voting-app-2da5d8631662">Connecting Cloud Firestore Database to Flutter</a> was originally published in <a href="https://medium.com/enappd">Enappd</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>