<?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 Harshit khandelwal on Medium]]></title>
        <description><![CDATA[Stories by Harshit khandelwal on Medium]]></description>
        <link>https://medium.com/@harshit2756?source=rss-23d333f3fe7a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*gV8QuAmYOGE-heGE-JHmrw.jpeg</url>
            <title>Stories by Harshit khandelwal on Medium</title>
            <link>https://medium.com/@harshit2756?source=rss-23d333f3fe7a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 14:36:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@harshit2756/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[Skip The APK: How to Deploy Flutter Mobile Apps as Instant Web Preview ]]></title>
            <link>https://medium.com/@harshit2756/skip-the-apk-how-to-deploy-flutter-mobile-apps-as-instant-web-preview-724ce3b1f502?source=rss-23d333f3fe7a------2</link>
            <guid isPermaLink="false">https://medium.com/p/724ce3b1f502</guid>
            <category><![CDATA[live-previews]]></category>
            <category><![CDATA[flutter-web]]></category>
            <category><![CDATA[flutter-app-development]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[dart]]></category>
            <dc:creator><![CDATA[Harshit khandelwal]]></dc:creator>
            <pubDate>Mon, 28 Oct 2024 15:41:58 GMT</pubDate>
            <atom:updated>2025-02-08T05:40:43.443Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tEcQfrEADQ9B8WB9" /></figure><p>Hey Flutter developers and software companies! Let’s talk about that painful moment in every app showcase:</p><blockquote><strong>Job Seekers:</strong></blockquote><blockquote>“Thanks for applying! Could you show us your Flutter projects?”<br>*Sends APK* <br>“Ah… our recruiters review 100+ applications daily and can’t install APKs on company devices. Maybe send screenshots?”<br> And just like that, your brilliant app joins the graveyard of unseen projects. In a stack of applications, recruiters won’t take the extra time to bypass security protocols just to see your work.</blockquote><blockquote>Service Companies:</blockquote><blockquote>Client: “The app concept sounds great! Can we see a demo?”<br>You: *Sends APK* <br>Client: “Our corporate policy… unknown sources… security concerns…”<br>Translation: You just asked a potential client to trust an unknown APK from an unproven vendor. Not exactly the professional first impression you were aiming for, right?</blockquote><p>Here’s the hard truth: Every time you send an APK, you’re:</p><ul><li>Asking busy recruiters to break their workflow</li><li>Expecting clients to trust unknown software</li><li>Adding friction to your portfolio review</li><li>Looking less professional than competitors with instant demos</li></ul><p>But what if there was a way to turn your Flutter app into a professional, instantly accessible web preview that works right in their browser? 🤔</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*wT_Y8z5FY5asdrlNLn5ukw.png" /></figure><p>Let me show you how Device Preview and GitHub Pages can transform your app demos from “Sorry, can’t install that” to “Wow, this looks impressive!”</p><h3>The Solution:</h3><p>Let’s transform your Flutter app into a professional web demo in 3 simple steps:</p><h4>Step 1: Add Device Preview and Configure🚀</h4><ol><li>Add <a href="https://pub.dev/packages/device_preview">Device preview</a> Package to your pubspec.yaml</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/664/1*MXnlV7vGvJxInWasE5eQPA.png" /><figcaption>pubspec.yaml</figcaption></figure><p><em>Pro-Tip: This gives your app superpowers like:</em></p><ul><li><em>Live device switching (iPhone, Pixel, tablets)</em></li><li><em>Orientation flipping</em></li><li><em>Dark/Light mode toggle</em></li><li><em>Different screen sizes preview</em></li></ul><p><strong>2. Main Configuration — The Control Center 🎯</strong><br>This is where we set the stage for your app’s presentation. Starting with the iPhone 13 Pro Max gives your demo a premium feel, while the clean white background keeps the focus on your app. Think of it as framing your masterpiece in an art gallery!</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/52e462f99a96437597002a6ea19c1add/href">https://medium.com/media/52e462f99a96437597002a6ea19c1add/href</a></iframe><p><strong>3. Tools Configuration — Your Demo’s Swiss Army Knife 🔧<br></strong>Less is more! We’ve carefully selected only the essential tools. By hiding complex options like orientation and keyboard, we’re creating a distraction-free environment where your app’s features can shine. It’s like giving a demo with just the right amount of controls — not overwhelming, but powerful enough to impress.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/636af00897591964c339953dd6793883/href">https://medium.com/media/636af00897591964c339953dd6793883/href</a></iframe><p><strong>4. Device List — The Device Zoo 📱<br></strong>We’ve curated this list like a fine wine selection! Each device represents a different user segment, ensuring your app looks fantastic across the spectrum. From budget-conscious users to premium seekers, you’re covered. It’s like having a device lab in your browser!</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f0ef3a52e73e504aaf6ab7a8793b74ae/href">https://medium.com/media/f0ef3a52e73e504aaf6ab7a8793b74ae/href</a></iframe><p><strong>5. Advanced Features — For The Extra Mile ⚡</strong></p><p>Want to showcase your app on a specific device? This is your secret weapon! Creating custom devices allows you to tailor the preview experience exactly to your needs. It’s like having a custom-made display case for your app!</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/05ab2d7c758c010b042a1bd342156e0d/href">https://medium.com/media/05ab2d7c758c010b042a1bd342156e0d/href</a></iframe><p><strong>4. App Integration — Bringing It All Together 🔄<br></strong>This is where your app gets its preview superpowers! By integrating Device Preview into your MaterialApp, you’re essentially giving your app the ability to shape-shift between devices seamlessly. It’s like teaching your app to speak multiple device languages fluently!</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/507256b4f7e5170934bfc9c02d4cbdb4/href">https://medium.com/media/507256b4f7e5170934bfc9c02d4cbdb4/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EwTuFkR9_qSB0HFOq_ESBg.gif" /><figcaption>Demo Video</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/710/1*3EW74sgyT8JLgkLk1wQ1zw.png" /></figure><h4><strong>Step 3: Deploy </strong>On <strong>GitHub Pages 🚀</strong></h4><p><strong>1. Build your web app:</strong><br>Run this Command From your Root of the project</p><pre>flutter build web</pre><p>After Running this command You will see Web folder in your build floder</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/219/1*8ea_xocbnrlQXKa2QmWaxA.png" /></figure><p><strong>2. Set up docs folder:</strong><br>now run the below commands to move all the content to docs folder</p><pre>mkdir docs<br>xcopy /E /H /Y build\web\* docs\</pre><p><strong>3. Configure GitHub Pages:</strong></p><p>Follow the steps shown below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y6_XaC8MKdFxxZeYIRsOQA.gif" /></figure><p><strong>4.The Result: Professional Demo URL 🎯</strong></p><p>Your app will be live at:</p><pre>https://yourusername.github.io/your-repo-name/</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*YmomlLN0VbLA9IeMeRfoWQ.png" /></figure><h3>Common Issues and Solutions 🔧</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F23664732&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fbut-wait-theres-more-hold-up-excited-gif-23664732&amp;image=https%3A%2F%2Fmedia.tenor.com%2F--iVeSoCRVsAAAAN%2Fbut-wait-theres-more.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/42490a0f0b322605d5106b95c223ae32/href">https://medium.com/media/42490a0f0b322605d5106b95c223ae32/href</a></iframe><ol><li>Blank Page After Deployment:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/314/1*yqgv1s92uhuyTfRQwouSOA.png" /></figure><pre>&lt;!-- remove this from your web/index.html --&gt;<br>&lt;base href=&quot;$FLUTTER_BASE_HREF&quot;&gt;</pre><p>And make sure to clean and rebuild the project and then move the new build to docs folder by running below commads.</p><pre>flutter clean<br>flutter build web<br>xcopy /E /H /Y build\web\* docs\</pre><p>2. Assets Not Loading:</p><pre># Update in pubspec.yaml<br>assets:<br>  - assets/</pre><p>3. Firebase features not working :<br>Make sure you implement that feature for web also as the device preview just emulates the device it’s not specifically running the selected OS.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F14267265&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fthank-you-for-coming-to-my-ted-talk-thank-you-for-coming-to-my-ted-thanks-for-coming-to-my-ted-gif-14267265&amp;image=https%3A%2F%2Fmedia.tenor.com%2FUE-kfyPK-MsAAAAN%2Fthank-you-for-coming-to-my-ted-talk-thank-you-for-coming-to-my-ted.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/8ce665c2eb0e9febfd1ea956a83ca09b/href">https://medium.com/media/8ce665c2eb0e9febfd1ea956a83ca09b/href</a></iframe><blockquote>“Thanks for reading this far! Since this is my first blog post, I’d love to hear your thoughts. Was there something I could have explained better? Or maybe you have ideas on topics I could cover next? Your feedback would mean a lot as I continue learning and sharing with the community. Feel free to leave a comment, share this guide with others, or reach out directly — I’m excited to hear from you!”</blockquote><p>Found this helpful? Don’t forget to:</p><ul><li>Share with fellow Flutter developers</li><li>⭐ Star the project on GitHub: [<a href="https://github.com/Harshit2756/flutter_pay_roll">Flutter Pay Roll App Repository</a>]</li><li>👋 Follow me for more Flutter magic: <a href="https://github.com/Harshit2756">GitHub</a> | <a href="https://www.linkedin.com/in/harshit-khandelwal-3a76631b9/">LinkedIn</a></li></ul><p><a href="https://github.com/Harshit2756/flutter_pay_roll">GitHub - Harshit2756/flutter_pay_roll: Pay Roll is a Flutter application designed to manage employee payroll efficiently. It provides a user-friendly interface for tracking salaries, deductions, and bonuses, and is designed to streamline payroll processing for HR departments. Whether you&#39;re an HR manager or a small business owner, this project offers a seamless experience across mobile</a></p><p>Questions about implementation? Drop them below! 👇</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=724ce3b1f502" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>