<?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 Alvin Aprianto on Medium]]></title>
        <description><![CDATA[Stories by Alvin Aprianto on Medium]]></description>
        <link>https://medium.com/@apriantoalvin82?source=rss-12fc4e3c0920------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*xjGTq5v6pKcnPmZFpJS2Lg.png</url>
            <title>Stories by Alvin Aprianto on Medium</title>
            <link>https://medium.com/@apriantoalvin82?source=rss-12fc4e3c0920------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 11:11:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@apriantoalvin82/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[How One Year on Upwork Changed My Life]]></title>
            <link>https://medium.com/@apriantoalvin82/how-one-year-on-upwork-changed-my-life-a921a1357f56?source=rss-12fc4e3c0920------2</link>
            <guid isPermaLink="false">https://medium.com/p/a921a1357f56</guid>
            <category><![CDATA[upwork]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[freelance]]></category>
            <category><![CDATA[life]]></category>
            <category><![CDATA[life-lessons]]></category>
            <dc:creator><![CDATA[Alvin Aprianto]]></dc:creator>
            <pubDate>Wed, 11 Dec 2024 16:38:41 GMT</pubDate>
            <atom:updated>2024-12-11T16:38:41.184Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YwWOULIszts71x3q" /><figcaption>Photo by <a href="https://unsplash.com/@verstuyftj?utm_source=medium&amp;utm_medium=referral">Jonas Verstuyft</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>When I was 22 years old, I remember that I said</p><blockquote>“I would buy a house for my parents in 1 year”</blockquote><p>And now I’m 23 and i have already bought a house for my parents. <strong>It happened because of Upwork.</strong></p><p>When I first joined Upwork, I had no idea what to expect. I was just a beginner with no reviews, no ratings, and no clear understanding of how to stand out among the thousands of freelancers on the platform. I felt overwhelmed, but I reminded myself of my goal — buying a house for my parents within a year. That goal kept me motivated through every setback.</p><h3>Start</h3><p>I spent countless hours researching. I watched videos, read articles, and even joined forums where seasoned freelancers shared their experiences.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FWs6T5PN7wHv3cY8xy8%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FWs6T5PN7wHv3cY8xy8%2Fgiphy.gif%3Fcid%3D790b7611n0yreg91nwdxyx4vgcuiop5ofrj0fwcvedjydgpb%26ep%3Dv1_gifs_search%26rid%3Dgiphy.gif%26ct%3Dg&amp;image=https%3A%2F%2Fmedia3.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExcjNrYjR6MXY5b2JxOTMwOXo1bzhkc21naGZkZW82Z3VlbGdpZDJ5ZCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2FWs6T5PN7wHv3cY8xy8%2Fgiphy_s.gif&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="261" frameborder="0" scrolling="no"><a href="https://medium.com/media/2f8a8f301e3c26e4c43b44c29f86cf6d/href">https://medium.com/media/2f8a8f301e3c26e4c43b44c29f86cf6d/href</a></iframe><p>I set my hour rate low, because to start with, I thought about getting clients. Even like, i applied for a price below the budget of the job posted.</p><p>After i applied many job in one week, I was lucky enough to get my first client. I’m not chasing money at that time, so i’m really happy. What i think is how to get a client and get good reviews.</p><h3>Growth</h3><p>What I was afraid of in Upwork was English because my English was quite bad at that time especially when speaking.</p><p>Understanding my English is like solving this maze — good luck!</p><p>But this is the my favourite part. Because of that i have to forced my self to learn and speak correctly in English. Even though some of my friends mocked me at that time because my English, I didn’t care about it.</p><p>And here it is, my English improving over time until now I am confident and quite fluent, right?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sSeSXVUnECmhkMgMRCH9TQ.png" /></figure><p>Other than that, because I work remotely with my clients across the world with different time zones, my time management skills have also developed over time as I work at Upwork. How I communicate, negotiate, and make a deals with clients also increased.</p><p>And the most important thing for me is my income began to stabilize, and for the first time, I felt like I was in control of my future. I can achieve my dream to buy a house for my parents. And yes, i can achieve that now</p><p>YEAHHHHH!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2Ft3sZxY5zS5B0z5zMIz%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExZWttbjR6cWgyMjV1bWNtazZ6MW55ZTk3ZnIzZDNuZjJkdWVoZDJmYSZlcD12MV9naWZzX3NlYXJjaCZjdD1n%2Ft3sZxY5zS5B0z5zMIz%2Fgiphy.gif&amp;image=https%3A%2F%2Fmedia0.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExZWpxazQ0dmtxbzNhdWUwYWswaHR2aTUwZTdiejBhcmwwY3dtMXAzOSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2Ft3sZxY5zS5B0z5zMIz%2Fgiphy_s.gif&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/2f325df49e452e75626939f651a69314/href">https://medium.com/media/2f325df49e452e75626939f651a69314/href</a></iframe><h3><strong>Transform</strong></h3><p>Looking back now, I can see how Upwork didn’t just provide me with an income — it gave me a new perspective on life. It taught me resilience, patience, and the value of consistent effort. Every late night spent working, every rejection I faced, and every challenge I overcame shaped me into the person I am today.</p><p>When I handed the keys of that house to my parents, I wasn’t just fulfilling a promise — I was showing them that their sacrifices had paid off. It was a moment of pride, gratitude, and immense joy.</p><h3>Message</h3><p><em>From me to you who read this.</em></p><p>To anyone out there just starting or chasing their dreams, I want you to remember this</p><blockquote>“The journey won’t be easy”</blockquote><p>You’ll face challenges that push you to your limits, moments of doubt, and times when giving up feels like the easiest option. But it’s in those moments that <strong>growth happens and that’s matter</strong>.</p><p>Breaking your limits is never comfortable, but it’s the only way to truly discover what you’re capable of. The harder the journey, the sweeter the reward. Whether it’s achieving a personal goal, like I did, or reaching a milestone that once felt impossible, the effort you put in will be worth it.</p><p>So keep going. Embrace the struggle. Learn from every obstacle. And most importantly, believe in yourself. Your hard work and persistence will pay off — sometimes in ways you can’t even imagine.</p><p>This is your time to create a story you’ll look back on with pride. Chase your dreams, and let nothing hold you back.</p><p>Just a little bit quote here</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*dHAeq6I5poNmFLqvuxE9gg.jpeg" /></figure><p>Cheers up ! Thanks !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a921a1357f56" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Basic Guidance MediaQuery You Should Know in Flutter 2023]]></title>
            <link>https://medium.com/@apriantoalvin82/basic-guidance-mediaquery-you-should-know-in-flutter-2023-e079c77bd30?source=rss-12fc4e3c0920------2</link>
            <guid isPermaLink="false">https://medium.com/p/e079c77bd30</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[flutter-ui]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[media-queries]]></category>
            <dc:creator><![CDATA[Alvin Aprianto]]></dc:creator>
            <pubDate>Wed, 19 Jul 2023 16:13:12 GMT</pubDate>
            <atom:updated>2023-07-19T16:13:12.563Z</atom:updated>
            <content:encoded><![CDATA[<h3>Basic Guidance MediaQuery You Should Know in Flutter</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IHOEbE5QffbN0f9RYln4Ow.png" /></figure><p>Hello! I hope you’re having a wonderful day today.</p><p>All Flutter developers are familiar with <strong>MediaQuery</strong>. One of the built-in utility classes in Flutter that help you to access the device’s screen size, orientation, and other media properties. It allows you to access the device’s characteristics and dimensions, helping you create responsive and adaptive user interfaces.</p><p>I’m sure the average Flutter beginner will use the Media Query section more to access the height and width of the screen. Of course, there are still many functions of Media Query apart from accessing the height and width of the screen. What are they? Of course, if you know, you won’t be reading this article right ? Okay so if you improve knowledge about <strong>MediaQuery</strong> in Flutter, make sure you read this article to the end.</p><h4>Screen Size</h4><p>I will start from what many people know and are very basic. Yes, access screen size. To access the screen size you can use this</p><pre>MediaQuery.sizeOf(context)</pre><p>You can use it to get the size of the screen on your phone. You can also specify the height and width of your screen. Usually this function is used to give the size of a widget to be adjusted to your screen size. For example when you want to have a container that is the same size as the screen size on your phone like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dZUTv3NUqmIPVfJil_oo7g.jpeg" /><figcaption>*sorry the image is too large hehe</figcaption></figure><h4>Screen Orientation</h4><p>With MediaQuery you also can access screen orientation in your phone. You can use</p><pre>MediaQuery.orientationOf(context)</pre><p>With that you can make adjustments in the view that you create. I will give a simple example. See below</p><p>Portrait Mode</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4650DMoRS8WWGyePw4rWfg.jpeg" /></figure><p>Landscape Mode</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AdAVe-oGtSp0FAPerMYgKA.jpeg" /></figure><p>As you can see i have a view which consists of columns containing text and button. If portrait mode, no problem will occur. But if you change it to landscape you can see there is a bottom overflow on that view. And this is <strong>MediaQuery.orientationOf()</strong> time to shine. You can use it to solve the problem by adding conditions on the spacing between content in the column.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MCJyY3m8N1C1Yf11ndLo8w.jpeg" /></figure><p>Look. MediaQuery just saved your life!</p><h4>Device Pixel Ratio</h4><p>The third is the device pixel ratio. With media query you can access this by calling this.</p><pre>MediaQuery.devicePixelRatioOf(context)</pre><p>With this you can customize widgets such as text or images depending on the device pixel ratio of your cellphone. The <strong>higher the resolution</strong> of your cellphone, the <strong>higher the device pixel ratio.</strong> So, this can help you optimize the resolution and avoid blurriness in text or images in Flutter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4H4wq_mrBy6JSgWyYJv1xw.jpeg" /></figure><h4>Padding and View Inset</h4><p>You must have typed on your cellphone, right? When you type the keyboard will appear and it will have an effect on changing the inset view of your screen, especially the bottom part, because your screen is covered by the keyboard. That’s view inset. How about padding? You can see the padding here from the notification bar above. There is padding, each phone has a different padding. You can access that with this</p><pre>// viewinset<br>MediaQuery.viewInsetsOf(context)<br>// padding<br>MediaQuery.paddingOf(context)</pre><p>You can see an example as below</p><p>When you are not typing it will be like this, the bottom view inset will be 0.0</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*coItJCBeYVXXxxc_OY_s_w.jpeg" /></figure><p>But when you typing, the bottom view inset will change to size height of keyboard which 265.33</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ocq8atUiKkqz6qefFiZI1Q.jpeg" /></figure><h4>Text Scale Factor</h4><p>Next is the text scale factor. With MediaQuery you can access the text scale factor on your cellphone. You can call this function to access the text scale factor</p><pre>MediaQuery.textScaleFactorOf(context)</pre><p>Every phone has a different text scale factor, you can check or change it in your cellphone settings. By accessing this, you can customize the widget as you like to <strong>avoid overflow</strong>, for example as shown below.</p><p>This is the view when i set the text scale factor to <strong>1.0</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*umf_-LNCmgi--UXkF707Mw.jpeg" /></figure><p>And this is the view when i set to <strong>1.15</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Kx3iZxkEnE35ZYFhlD2UEA.jpeg" /></figure><p>So to fix that overflow you can use text scale factor from MediaQuery and make the conditions depend on the text scale factor like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5gl8I6daD9TD_BLsbp6qTA.jpeg" /></figure><h4>Platform Brightness</h4><p>The last one is the brightness platform or the contrast mode of your phone ( <strong>light</strong> or <strong>dark</strong> ). With MediaQuery you can access it and pass the conditions as you want. You can access that with</p><pre>MediaQuery.platformBrightnessOf(context)</pre><p>Examples are as below.</p><p>When dark mode, text color will be green and change text to “dark”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r6Jp7TeyJRkRlUVGKlBTeA.jpeg" /></figure><p>When light mode, text color will be red and change text to “light”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WWasTNt2xJeDjfGNBijoWg.jpeg" /></figure><p>So those are some basic ways to use MediaQuery to improve your code in Flutter. Actually, there are still a few more MediaQuery, but because I rarely use them, I won’t include them in this article, peace haha. But if you want to discuss other functions, you can comment in the comments below. You can see the detail from my project on Github.</p><p><a href="https://github.com/alvinaprianto/basic-media-query">GitHub - alvinaprianto/basic-media-query</a></p><p>See you in the next article and Thank you!!! Byee!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FRu9sjtZ09XOEg%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fwwe-peace-out-seth-rollins-Ru9sjtZ09XOEg&amp;image=https%3A%2F%2Fmedia0.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExYm51MnNzdjg2dDZsMmVkazRvNTdqbnV4anc5czh2bW5oYXBpdmFkMiZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2FRu9sjtZ09XOEg%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/da2854f6fee4fccb6cac194f736ff0b1/href">https://medium.com/media/da2854f6fee4fccb6cac194f736ff0b1/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e079c77bd30" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Google Auth in Flutter Made Simple 2023]]></title>
            <link>https://medium.com/@apriantoalvin82/google-auth-in-flutter-made-simple-2023-afad0a04bf61?source=rss-12fc4e3c0920------2</link>
            <guid isPermaLink="false">https://medium.com/p/afad0a04bf61</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[authentication]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[flutterfire]]></category>
            <category><![CDATA[firebase]]></category>
            <dc:creator><![CDATA[Alvin Aprianto]]></dc:creator>
            <pubDate>Mon, 13 Feb 2023 02:26:35 GMT</pubDate>
            <atom:updated>2023-02-13T02:26:35.331Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xqubvfb9Kzen3icgCAHVpw.png" /></figure><p>Hello guys, today i’m gonna share my knowledge about how to setup and use firebase authentication with google in Flutter! And of course in 2023!</p><p>Well i think I don’t need to explain what firebase is and rambling on, because if you click on this article it means you already understand what firebase is. So without any further do, let’s get started!!</p><h3>Setup Firebase #1</h3><p>First of all, we have to setup firebase project on your flutter project. In 2023 we don’t need manual setup via the Firebase Website and i think <strong>it only takes about 60 seconds! Awesome right?</strong> We will use FlutterFire CLI for our firebase project setup. If you don’t know about what’s FlutterFire and how to setup you can just read my simple and clear article in the link below :</p><p><a href="https://medium.com/@apriantoalvin82/how-to-use-flutterfire-in-flutter-2023-2654db85118b">https://medium.com/@apriantoalvin82/how-to-use-flutterfire-in-flutter-2023-2654db85118b</a></p><p>Don’t worry because that article very simple and clear, like flash lol, and then you can back to this article after that.</p><h3>Enable Auth Provider #2</h3><p>This is so important step, so we don’t skip this step okay!</p><ol><li>Click the aunthetication in <a href="https://console.firebase.google.com/">https://console.firebase.google.com</a> on your dashboard project:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Tj0xup55N__KxjnoCs0cjg.png" /></figure><p>2. Go to tab Sign-in method method:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v4fJ3OmKqvFOMpQUINsn4w.png" /></figure><p>3. Then we can enable the google auth provider, add your email and save:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Kcuva557qCb9tC2G2dol0g.png" /></figure><p>4. After that you can go to project settings , click on setting icon and choose project settings:</p><p>5. Then we have to add our SHA-1 and SHA-256 key from our computer, but if you have read my article about use flutter fire you can skip this</p><p>6. To know SHA-1 and SHA-256 you can run following command inside your flutter project on /android directory:</p><pre>./gradlew signingReport</pre><h3>Install Package #3</h3><p>We can type this following command inside your flutter project</p><pre>flutter pub add firebase_auth, google_sign_in</pre><h3>Start Coding #4</h3><ol><li>In our lib/main.dartfile, initialize all config for firebase:</li></ol><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b17f87736b2c5cdde439cca6a02df038/href">https://medium.com/media/b17f87736b2c5cdde439cca6a02df038/href</a></iframe><p>2. Create file lib/login_screen.dart and copy the following code below:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6891fb079b55948154972177cfb0fc0c/href">https://medium.com/media/6891fb079b55948154972177cfb0fc0c/href</a></iframe><blockquote><em>Note:</em></blockquote><ol><li>In this code we have one button with ElevatedButton for login with google</li><li>First we signIn with GoogleSignIn().signIn()</li><li>We use then callback function to handle that</li><li>And then we take data from callback and pass it into GoogleAuthProvider on credential variable</li><li>After that we pass variable into signInWithCredential() function by firebase</li><li>And then we navigate to home screen</li></ol><p>3. Create file lib/home_screen.dart and copy the following code below:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0cf075fc655cec6207aae69699996a78/href">https://medium.com/media/0cf075fc655cec6207aae69699996a78/href</a></iframe><blockquote><em>Note:</em></blockquote><ol><li>In home screen we use Stream Builder for fetch data from authStateChanges().</li><li>The UI depends on that state, when user logged in or not.</li><li>When user logged in we can user for signOut() for logout.</li></ol><h3>Just Run The Code!</h3><p>Last, we can just run the code and we can try it! Enjoy:</p><pre>flutter run</pre><h3>Conclusion</h3><p>So in this article we learn about how to use firebase service specifically authentication with google. Hope this article helpful for everyone who need it. If you enjoy this article you can follow me, like, and save this article! And also if you have idea about what should i do next or question, you can give a respond. See you in the next!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=afad0a04bf61" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Simple Fast Firebase Email & Password Authentication in Flutter]]></title>
            <link>https://medium.com/@apriantoalvin82/2023-simple-fast-firebase-email-password-authentication-in-flutter-a46bfc01b020?source=rss-12fc4e3c0920------2</link>
            <guid isPermaLink="false">https://medium.com/p/a46bfc01b020</guid>
            <category><![CDATA[authentication]]></category>
            <category><![CDATA[firebase]]></category>
            <category><![CDATA[flutter-app-development]]></category>
            <category><![CDATA[email]]></category>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Alvin Aprianto]]></dc:creator>
            <pubDate>Mon, 06 Feb 2023 08:00:00 GMT</pubDate>
            <atom:updated>2023-02-07T14:33:18.521Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pMvsLysYeUZLrLd6-KuAmQ.jpeg" /></figure><p>Hello guys, today i’m gonna share my knowledge about how to setup and use firebase authentication with email and password in Flutter! And of course in 2023!</p><p>Well i think I don’t need to explain what firebase is and rambling on, because if you click on this article it means you already understand what firebase is. So without any further do, let’s get started!!</p><h3>Setup Firebase #1</h3><p>First of all, we have to setup firebase project on your flutter project. In 2023 we don’t need manual setup via the Firebase Website and i think <strong>it only takes about 60 seconds! Awesome right?</strong> We will use FlutterFire CLI for our firebase project setup. If you don’t know about what’s FlutterFire and how to setup you can just read my simple and clear article in the link below :</p><p><a href="https://medium.com/@apriantoalvin82/how-to-use-flutterfire-in-flutter-2023-2654db85118b">How to use FlutterFire in Flutter 2023</a></p><p>Don’t worry because that article very simple and clear, like flash lol, and then you can back to this article after that.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F7354958&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fthe-flash-dc-running-fast-speedy-gif-7354958&amp;image=https%3A%2F%2Fmedia.tenor.com%2FRSIshKYWCO0AAAAC%2Fthe-flash-dc.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/340fb82d264ae6c9bcf75c782fe6f041/href">https://medium.com/media/340fb82d264ae6c9bcf75c782fe6f041/href</a></iframe><h3>Enable Auth Provider #2</h3><p>This is so important step, so we don’t skip this step okay!</p><ol><li>Click the aunthetication in <a href="https://console.firebase.google.com/"><strong>https://console.firebase.google.com</strong></a> on your dashboard project:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Tj0xup55N__KxjnoCs0cjg.png" /></figure><p>2. Go to <strong>tab Sign-in method</strong> :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v4fJ3OmKqvFOMpQUINsn4w.png" /></figure><p>3. Then we can <strong>enable the email &amp; password provider</strong> and save:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZXLwqk5zGqMvh9xqKEBQHA.png" /></figure><h3>Install Package #3</h3><p>We can type this following command inside your flutter project</p><pre>flutter pub add firebase_auth</pre><h3>Start Coding #4</h3><ol><li>In our lib/main.dartfile, initialize all config for firebase:</li></ol><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e65580d45133a6def92f03b4ec6115ad/href">https://medium.com/media/e65580d45133a6def92f03b4ec6115ad/href</a></iframe><p>2. Create file <strong>lib/login_screen.dart</strong> and copy the following code below:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/da879ac01be3e27aa0776f0ed5152616/href">https://medium.com/media/da879ac01be3e27aa0776f0ed5152616/href</a></iframe><blockquote><em>Note:</em></blockquote><p>a) In this code we have <strong>two TextFormField for email and password</strong> and also have <strong>validator</strong>, for handle user <strong>if fill the field wrong</strong>.</p><p>b) We use <strong>Form wrapping the Column</strong> for check the validator in the TextFormField <strong>after that if valid</strong> , then it will <strong>run loginFunction() for login with email &amp; password</strong>.</p><p>c) In the loginFunction() we have <strong>try catch for catch the error and pass the message to SnackBar</strong>.</p><p>d) We can <strong>navigate to register screen </strong>if we <strong>click register text button</strong>.</p><p>3. Create file <strong>lib/register_screen.dart</strong> and copy the following code below:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ca1bb660232f568d222d6b8968718c13/href">https://medium.com/media/ca1bb660232f568d222d6b8968718c13/href</a></iframe><blockquote><em>Note:</em></blockquote><p>a) In this register screen we have <strong>three TextFormField for email, password and confirm password</strong>, this is also have <strong>validator</strong>, for handle user <strong>if fill the field wrong</strong>.</p><p>b) We use <strong>Form wrapping the Column</strong> for check the validator in the TextFormField <strong>after that if valid</strong> , then it will <strong>run registerFunction() for register with email &amp; password</strong>.</p><p>c) In the registerFunction() we have try catch <strong>for catch the error and pass the message to SnackBar</strong>.</p><p>d) We can <strong>navigate to login screen</strong> if we <strong>click login text button</strong>.</p><p>4. Create file <strong>lib/home_screen.dart</strong> and copy the following code below:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/199c09d47e8af07431c4eef5d85c94de/href">https://medium.com/media/199c09d47e8af07431c4eef5d85c94de/href</a></iframe><blockquote><em>Note:</em></blockquote><p>a) In that code we use <strong>Stream Builder for fetch data from authStateChanges()</strong>.</p><p>b) The UI depends on that <strong>state</strong>, when <strong>user logged in or not</strong>.</p><p>c) When user logged in we can user for <strong>signOut()</strong> for logout.</p><h3>Just Run The Code!</h3><p>Last, we can just run the code and we can try it! Enjoy:</p><pre>flutter run</pre><h3><strong>Conclusion</strong></h3><p>So in this article we learn about <strong>how to use firebase service specifically authentication with email &amp; password</strong>. Hope this article helpful for everyone who need it. If you enjoy this article you can follow me, like, and save this article! And also <strong>if you have idea about what should i do next or question, you can give a respond</strong>. See you in the next!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a46bfc01b020" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to use FlutterFire in Flutter 2023]]></title>
            <link>https://medium.com/@apriantoalvin82/how-to-use-flutterfire-in-flutter-2023-2654db85118b?source=rss-12fc4e3c0920------2</link>
            <guid isPermaLink="false">https://medium.com/p/2654db85118b</guid>
            <category><![CDATA[firebase]]></category>
            <category><![CDATA[flutterfire]]></category>
            <category><![CDATA[flutter-app-development]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Alvin Aprianto]]></dc:creator>
            <pubDate>Wed, 01 Feb 2023 04:29:42 GMT</pubDate>
            <atom:updated>2023-02-16T09:43:28.531Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*klYPzv4Op11TrPgC41UAnw.png" /></figure><p><strong>Firebase</strong> is a Google-backend application development software that enables developers to develop iOS, Android and <a href="https://www.techtarget.com/searchsoftwarequality/definition/Web-application-Web-app">Web apps</a>. Firebase provides tools for tracking analytics, reporting and fixing app crashes, creating marketing and product experiment. <strong>FlutterFire</strong> is a set of Flutter plugins which connect your Flutter application to <a href="https://firebase.com/">Firebase</a>.</p><p>In this article we will be learning about how to use or setup FlutterFire in Flutter. Calm down, because this will be very easy!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*Lb_tFI60kHv6g0h_2hA9vQ.jpeg" /></figure><h3><strong>Installation #1</strong></h3><p>First of all, we have to install Flutter Fire CLI</p><p>You can install the Firebase CLI using a method that matches your operating system, experience level, and/or use case. Regardless of how you install the CLI, you have access to the same functionality and the firebasecommand. But in this article I will recommend the installation according to each operating system.</p><p><strong>Windows</strong></p><p>On this operating system i will recommend install with standalone binary. You can download the binary file on the link below :</p><p><a href="https://firebase.tools/bin/win/instant/latest">https://firebase.tools/bin/win/instant/latest</a></p><p><strong>Mac &amp; Linux</strong></p><p>Meanwhile, for this operating system, I suggest installing it with automatic install script</p><pre>curl -sL https://firebase.tools | bash</pre><h3><strong>Login to Firebase #2</strong></h3><p>Log into Firebase using your Google account by running the following command:</p><pre>firebase login</pre><h3><strong>Activate FlutterFire #3</strong></h3><p>Install / activate the FlutterFire CLI by running the following command from any directory:</p><pre>dart pub global activate flutterfire_cli</pre><h3><strong>Configure Flutter Fire #4</strong></h3><ol><li>Configure Flutter Fire inside your flutter project:</li></ol><pre>flutterfire configure</pre><p>2. Then we can following step by command line, from create firebase project until choose firebase services that you want to use.</p><h3><strong>Install Package #5</strong></h3><p>Install package firebase core:</p><pre>flutter pub add firebase_core</pre><h3><strong>Initialize Firebase #6</strong></h3><p>In your <strong><em>lib/main.dart </em></strong><em>file</em>, initialize Firebase using the <strong>DefaultFirebaseOptionsobject</strong> exported by the configuration file:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/84918a6e2e5b7ca9c3829ab95bc48b14/href">https://medium.com/media/84918a6e2e5b7ca9c3829ab95bc48b14/href</a></iframe><h3><strong>Conclusion</strong></h3><p>In this article we learned about how to use FlutterFire in Flutter. We have learned from the start of installation to its use. And everything is very easy as I previously said. I hope this article is helpfull and see you in the next article! Goodbye! 🤙🏻</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2654db85118b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>