<?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 Pranjal Kumar on Medium]]></title>
        <description><![CDATA[Stories by Pranjal Kumar on Medium]]></description>
        <link>https://medium.com/@pranjal-barnwal?source=rss-bf6767516b25------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*y_MoraHk8o_XNAotUlZzpA.png</url>
            <title>Stories by Pranjal Kumar on Medium</title>
            <link>https://medium.com/@pranjal-barnwal?source=rss-bf6767516b25------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 10:43:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pranjal-barnwal/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[Unlocking the Future of Design with Apple Vision Pro: A Journey into Spatial Technology]]></title>
            <link>https://pranjal-barnwal.medium.com/unlocking-the-future-of-design-with-apple-vision-pro-a-journey-into-spatial-technology-764a34b373ab?source=rss-bf6767516b25------2</link>
            <guid isPermaLink="false">https://medium.com/p/764a34b373ab</guid>
            <category><![CDATA[apple]]></category>
            <category><![CDATA[ar-vr]]></category>
            <dc:creator><![CDATA[Pranjal Kumar]]></dc:creator>
            <pubDate>Fri, 21 Jul 2023 07:11:07 GMT</pubDate>
            <atom:updated>2023-07-21T07:26:49.480Z</atom:updated>
            <content:encoded><![CDATA[<h3>Exploring the Cutting-Edge Spatial Design Technology by Apple and Its Impact on UX Designers</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*a7sGqfN9YWGo-ya3.png" /><figcaption>Apple Vision Pro</figcaption></figure><h3><strong>Introduction</strong></h3><p>In the ever-evolving world of technology, spatial design has emerged as a groundbreaking concept that seamlessly blends Virtual Reality (VR) and Augmented Reality (AR) capabilities. Leading the charge in this realm is Apple Vision Pro, a hybrid headset that has opened up a plethora of opportunities for User Experience (UX) designers. In this educational blog, we embark on a captivating journey into the realm of Apple Vision Pro, exploring its features, principles, and the profound impact it has on the world of design.</p><h3>Understanding Apple Vision Pro</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*s4ZGDlQAJNxXOdpOks2xRA.gif" /><figcaption>Deep-dive Vision Pro</figcaption></figure><p>Apple Vision Pro is not just another headset; it’s a spatial design technology that revolutionizes the way we interact with digital content. It seamlessly combines the immersive experiences of VR with the context-enhancing aspects of AR, offering designers a versatile canvas to create captivating applications.</p><h3>Spatial Design: The Future of UX Design</h3><p>For UX designers, Vision Pro offers an unparalleled opportunity to delve into the world of spatial design and elevate their careers. A series of comprehensive tutorials and guides are available in a multi-video playlist, which covers crucial foundations of spatial design, Vision OS principles, and app designing specifically tailored for the Apple Vision Pro.</p><figure><img alt="Spatial Design" src="https://cdn-images-1.medium.com/max/1024/0*sQVaTGmwRYAwTXJG.png" /></figure><h3>The VR-AR Fusion: A Hybrid Experience</h3><p>The essence of Vision Pro lies in its ability to blend VR and AR, providing users with a seamless hybrid experience. The headset covers everything from the user’s eyes, making it capable of simulating VR experiences while superimposing digital elements into the real world.</p><h3>Unleashing the Potential of Vision OS</h3><p>Vision OS takes spatial design to new heights, allowing designers to create 3D spaces with interactive elements. Windows within Vision OS can be moved in 3D space, with the ability to adjust their position in various axes. These windows are made of glass material, adding realism by reflecting and adapting to surrounding lighting conditions. With additional panels, tab bars, and toolbars, the possibilities for intuitive design are limitless.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*Nokp84le3Bp38-qJ.jpg" /><figcaption>Apple Vision Pro keyboard</figcaption></figure><h3>Designing Tab Bars and Toolbars for Vision OS</h3><p>Mastering the art of designing tab bars and toolbars in Vision OS is key to creating a seamless user experience. The tab bar, affixed to one side of the window, boasts vertical icons that expand upon interaction. The toolbar, always at the bottom edge, overlaps and interacts with the main window, offering an array of window management tools. Attention to detail is paramount, as small adjustments in 3D space can significantly impact user interaction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/0*euCwS3XpjD-gVZWA" /><figcaption>Tab Bars and Toolbars for Vision OS</figcaption></figure><h3>Immersive 3D Experiences: A Reality with Vision Pro</h3><p>Vision Pro takes users into the realm of fully immersive 3D experiences, allowing them to navigate and view content from any angle. The meditation app within Vision Pro exemplifies the level of immersion users can expect, making it an exceptional tool for designers to craft captivating experiences.</p><h3>The Power of Eye Communication</h3><p>Among the most thrilling features of Vision Pro is its eye communication capability. By detecting the user’s eye movement, Vision Pro creates a hovering effect, enhancing interaction with digital elements. Hand gestures, such as touching, tapping, long-pressing, and dragging, complement this futuristic technology.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*g0iebqc9OLtl9wIK" /><figcaption>Control everything right from your eyes</figcaption></figure><h3>Mastering App Construction and Design</h3><p>To harness the true potential of Apple Vision Pro, designers are encouraged to delve into detailed documentation and figma files provided by Apple. Experimentation and exploration of pre-made components and materials empower designers to create cutting-edge applications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YX0SkGLncb2YlSmF.png" /></figure><h3>Conclusion: Embracing the Spatial Revolution</h3><p>As technology forges ahead, spatial design emerges as the future of UX design, and Apple Vision Pro leads the way. UX designers have a golden opportunity to unlock new realms of creativity, innovation, and immersive user experiences with this groundbreaking spatial design technology. By embracing Apple Vision Pro, designers can take a quantum leap into the future and shape the way users interact with digital content.</p><blockquote>Explore the possibilities of spatial design and embark on a journey of innovation and creativity with Apple Vision Pro!</blockquote><p><strong>References:</strong></p><ul><li><a href="https://developer.apple.com/visionos">Official Documentation</a></li><li><a href="https://www.figma.com/community/file/1247925396288435116">Sample UI Kit</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=764a34b373ab" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Journey of a Widget: Understanding the Lifecycle in Flutter]]></title>
            <link>https://pranjal-barnwal.medium.com/the-journey-of-a-widget-understanding-the-lifecycle-in-flutter-4cbb81f20f22?source=rss-bf6767516b25------2</link>
            <guid isPermaLink="false">https://medium.com/p/4cbb81f20f22</guid>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[widget]]></category>
            <dc:creator><![CDATA[Pranjal Kumar]]></dc:creator>
            <pubDate>Sun, 02 Jul 2023 16:37:57 GMT</pubDate>
            <atom:updated>2023-07-02T16:37:57.828Z</atom:updated>
            <content:encoded><![CDATA[<p>In Flutter, widgets have a lifecycle that determines how they are created, updated, and disposed of. Understanding the widget lifecycle is essential for managing state, performing side effects, and optimizing your Flutter application. Let’s dive into an overview of the widget lifecycle in Flutter:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*XILBw8-5g5ztFRkKV-6P_w.jpeg" /><figcaption>Widget Lifecycle in Flutter</figcaption></figure><h3>Construction</h3><p>When you instantiate a widget by calling its constructor, the widget is created. During construction, you typically provide any required parameters and initialize the widget’s state. The constructor is called once for each instance of the widget.</p><h3>Initialization</h3><p>After construction, the framework calls the initState() method of the widget&#39;s corresponding State object. This is where you can perform any initialization tasks that require the widget to have access to its BuildContext. You can initialize variables, subscribe to streams, set up listeners, and perform other setup tasks.</p><h3>Build</h3><p>The build() method is called whenever the widget needs to be rendered or updated. This method returns a widget tree, describing how the UI should look based on the current state of the widget. The framework invokes build() initially and subsequently whenever the widget&#39;s state changes or when its parent requests a rebuild.</p><h3>State Updates</h3><p>When the widget’s state changes, either through user interaction, data changes, or other events, the framework calls the setState() method of the widget&#39;s State object. This triggers a rebuild of the widget, causing the framework to call build() again. By calling setState(), you signal that the widget&#39;s state has changed and should be reflected in the UI.</p><h3>Rebuilding</h3><p>When the framework determines that a widget needs to be rebuilt, it calls the build() method to obtain a new widget tree. The new tree is compared to the previous tree, and the framework applies the necessary updates to the UI to reflect the changes. The rebuild process is efficient because Flutter uses a diffing algorithm to determine the minimal changes required to update the UI.</p><h3>Deactivation</h3><p>If a widget is removed from the widget tree but might be added back later, the framework calls the deactivate() method of the widget&#39;s State object. This method allows the widget to clean up any resources it no longer needs while preserving its state. For example, you can pause animations, cancel subscriptions, or release resources.</p><h3>Disposal</h3><p>When a widget is removed from the widget tree permanently, the framework calls the dispose() method of the widget&#39;s State object. This is the final opportunity for the widget to release resources, cancel subscriptions, or perform any cleanup tasks. After dispose() is called, the widget and its state are no longer usable.</p><p>It’s important to note that widgets in Flutter are immutable. When a widget’s state changes, Flutter rebuilds the widget tree, creating a new set of widgets with the updated state. This approach allows for efficient UI updates and helps maintain a declarative programming style.</p><p>Understanding the widget lifecycle enables you to manage state appropriately, handle asynchronous operations, and optimize your Flutter app’s performance by minimizing unnecessary rebuilds and resource usage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gZraN2IEy8I1VqxbZF_zyA.png" /><figcaption>Flutter Widget Lifecycle</figcaption></figure><h3>Seven Cycles of StatefulWidget</h3><p>The lifecycle of a stateful widget in Flutter consists of seven cycles. Understanding these cycles is essential for managing the state and controlling the behavior of the widget. Let’s explore each cycle:</p><ol><li>createState(): This method is required and creates a State object for the widget. It holds all the mutable state for that widget. The State object is associated with the BuildContext by setting the mounted property to true.</li><li>initState(): This method is automatically called after the widget is inserted into the tree. It is executed only once when the state object is created for the first time. Use this method for initializing variables and subscribing to data sources.</li><li>didChangeDependencies(): The framework calls this method immediately after initState(). It is also called when an object that the widget depends on changes. Use this method to handle changes in dependencies, but it is rarely needed as the build method is always called after this.</li><li>build(): This method is required and is called many times during the lifecycle. It is called after didChangeDependencies() and whenever the widget needs to be rebuilt. Update the UI of the widget in this method.</li><li>didUpdateWidget(): This method is called when the parent widget changes its configuration and requires the widget to rebuild. It receives the old widget as an argument, allowing you to compare it with the new widget. Use this method to handle changes in the widget&#39;s configuration.</li><li>setState(): The setState() method notifies the framework that the internal state of the widget has changed and needs to be updated. Whenever you modify the state, use this method to trigger a rebuild of the widget&#39;s UI.</li><li>deactivate(): This method is called when the widget is removed from the widget tree but can be reinserted before the current frame changes are finished. Use this method for any cleanup or pausing ongoing operations.</li><li>dispose(): This method is called when the State object is permanently removed from the widget tree. Use this method for cleaning up resources, such as data listeners or closing connections.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/479/1*2JKqkXKuRptjg3zm6X0r4Q.png" /></figure><p>After the dispose() method, the State object is no longer in the tree, and the mounted property is set to false. The state object cannot be remounted.</p><p>Understanding these lifecycle cycles helps in managing state changes, handling dependencies, and updating the UI effectively in stateful widgets.</p><p><em>Note: The constructor function is not part of the lifecycle as the state of the widget property is empty during that time.</em></p><p>Now that you have a comprehensive understanding of the widget lifecycle in Flutter, you can harness its power to create robust and efficient Flutter applications.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4cbb81f20f22" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Line Break Types: CR LF, LF, and CR]]></title>
            <link>https://pranjal-barnwal.medium.com/understanding-line-break-types-cr-lf-lf-and-cr-ecd0f15ec925?source=rss-bf6767516b25------2</link>
            <guid isPermaLink="false">https://medium.com/p/ecd0f15ec925</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[line-breaks]]></category>
            <dc:creator><![CDATA[Pranjal Kumar]]></dc:creator>
            <pubDate>Sun, 02 Jul 2023 16:21:52 GMT</pubDate>
            <atom:updated>2023-07-02T16:21:52.997Z</atom:updated>
            <content:encoded><![CDATA[<p>Line breaks play an essential role in text formatting, yet they are often overlooked in the programming world. Operating systems and text editors have their conventions for line breaks, leading to variations in line break types. This article will explore the differences between three common line break types: CR LF, LF, and CR.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*J_MSqJ_zRPOIjAXqBWDH-Q.gif" /></figure><h3>CR LF (Carriage Return Line Feed)</h3><p>The CR LF line break type is commonly used in Windows operating systems and DOS-based text files. It combines two characters: Carriage Return (CR) and Line Feed (LF). Let’s delve into the significance of each of these characters:</p><ul><li>Carriage Return (CR): Represented as \r, this character moves the cursor to the beginning of the current line without advancing to the next line. It&#39;s like pushing the typewriter carriage back to the left.</li><li>Line Feed (LF): Represented as \n, this character moves the cursor down to the next line without affecting the horizontal position. It&#39;s like moving the typewriter carriage down to the next line.</li></ul><p>In Windows and DOS text files, the combination of CR and LF characters indicates a line break. The CR LF sequence \r\n is commonly used to represent line breaks in these systems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/428/1*_3VfbLPRpQpaTKgNtwdPMA.png" /><figcaption>Line breaks</figcaption></figure><h3>LF (Line Feed)</h3><p>The LF line break type is predominantly used in Unix, Linux, macOS, and modern text editors, including those for web development. In this convention, a single Line Feed character (\n) represents a line break. Unlike CR LF, there is no preceding Carriage Return character. The LF line break type solely relies on the line feed character to move to the next line.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/170/1*yOUPzH_4vVs6oxnAF9PfWA.png" /><figcaption>End of Line</figcaption></figure><h3>CR (Carriage Return)</h3><p>The CR line break type is rarely used in modern systems but holds historical significance in older Macintosh operating systems. In this convention, a single Carriage Return character (\r) represents a line break. Similar to LF, there is no subsequent Line Feed character in the CR line break type.</p><h3>Compatibility and Cross-Platform Considerations</h3><p>Understanding the different line break types is crucial when working with text files intended for sharing across multiple platforms. It is essential to consider compatibility issues and ensure the intended systems correctly interpret the line break types.</p><ul><li>Windows applications and text editors generally handle CR LF line breaks correctly.</li><li>Unix, Linux, and macOS systems expect LF line breaks, and modern text editors seamlessly handle them.</li><li>Cross-platform projects or collaborations between different systems may require graceful handling of different line break types to avoid formatting issues.</li></ul><h3>Conclusion</h3><p>While line breaks may appear insignificant, understanding the differences between CR LF, LF, and CR line break types is crucial for achieving seamless cross-platform compatibility. Whether you’re working on Windows, Unix, Linux, macOS, or modern text editors, being aware of line break conventions ensures consistent and accurate rendering of text files.</p><p>By adopting best practices and selecting the appropriate line break type for your target platform, you can ensure optimal readability and portability of your text files.</p><p>Now equipped with the knowledge of line break types, you can confidently handle text formatting and avoid any surprises in your coding and development endeavors.</p><blockquote>Happy coding!</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HfiLf5jlA2QuMX6N7mpKqw.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ecd0f15ec925" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploying React Project to Firebase with Firestore & Storage used]]></title>
            <link>https://pranjal-barnwal.medium.com/deploying-react-project-to-firebase-with-firestore-storage-used-4bb24734a6e0?source=rss-bf6767516b25------2</link>
            <guid isPermaLink="false">https://medium.com/p/4bb24734a6e0</guid>
            <category><![CDATA[deployment]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[hosting]]></category>
            <category><![CDATA[firestore]]></category>
            <category><![CDATA[firebase]]></category>
            <dc:creator><![CDATA[Pranjal Kumar]]></dc:creator>
            <pubDate>Sat, 24 Dec 2022 19:15:23 GMT</pubDate>
            <atom:updated>2023-02-28T14:19:27.416Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4Dnj3pew5eq9pN8LRfxKrw.jpeg" /><figcaption>Mastering Deployment to FireBase for free, using Command Line</figcaption></figure><h3><strong>Complete Walkthrough</strong></h3><p>Before starting with anything make sure you have created your project in FireBase &amp; you have used the same Firebase Config in your `firebase.js` file in your local react project folder</p><h4>1. Create a build folder using:</h4><blockquote>npm run build</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1005/0*0KGtP58zohGkHZw6.png" /><figcaption>Created build folder in react.js</figcaption></figure><p>This in turn will create a build folder in the root of your project folder.</p><figure><img alt="Build folder hierarchy" src="https://cdn-images-1.medium.com/max/269/0*ozTT_Xu9Y6eVjNg3.png" /><figcaption>Build folder hierarchy</figcaption></figure><p>Basically, the build files are optimized for production, where there are no ongoing changes in code every now &amp; then.</p><h4>2. Install the Firebase CLI Tools using:</h4><blockquote>npm install -g firebase-tools</blockquote><p>`-g` flag is used here to install it globally, so it can be accessed easily from any project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/826/0*QeVgMwZUJ_ZxJfqa.png" /><figcaption>Installing firebase-tools gloablly</figcaption></figure><h4>3. Sign in &amp; initialize</h4><blockquote>firebase login</blockquote><p>For logging in, you will be redirected to the browser window, there you simply have to log in using your FireBase credentials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/864/0*VsQymr3DLuLaonhE.png" /><figcaption>Firebase initialisation</figcaption></figure><blockquote>firebase init</blockquote><p>You will be asked loads &amp; loads of questions while in `firebase init` but don’t worry, I will guide you here:</p><p>Are you ready to proceed?</p><p>Type `y`, since we want to continue.</p><p>Which Firebase features do you want to set up for this directory? Press Space to select features, then Enter to confirm your choices.</p><p>Here, you need to select all features which you included in your project, it may be, you needed nothing &amp; you are just using it for free Hosting. :) In my case, I used Firestore &amp; Storage both in my project &amp; also needed Hosting so, I’m selecting these 3 using space &amp; then pressing enter.</p><figure><img alt="Correct option set" src="https://cdn-images-1.medium.com/max/1016/0*INy_6mYhgettCCFJ.png" /><figcaption>Mark correct options only</figcaption></figure><p>Make sure to choose Firebase Hosting, where GitHub actions are optional.(Refer to the green stars in the above picture).</p><p>When prompted for Firebase rules and other similar stuff, then go with default options.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*95QASRBBtiffl-AP.png" /><figcaption>Firebase rule &amp; files</figcaption></figure><p>For choosing a public directory, make sure you choose the <strong><em>build </em></strong>folder</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/0*uns5mbj7de_skGa2.png" /><figcaption>Choose build folder in firebase reactjs</figcaption></figure><p>Go with these options. Make sure you don’t overwrite <strong><em>buid/index.html</em></strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/708/0*h0OxpAyW8x1_ELhv.png" /><figcaption>Initialization of firebase completed</figcaption></figure><h4>4. Deploying our web app</h4><blockquote>firebase deploy</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/0*75SFKqibf98euPfB.png" /><figcaption>Firebase deployment completed</figcaption></figure><p>That’s it we’re done.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/234/0*jjrPao9tiGyU1UvX.png" /><figcaption>Deployment links will be available in Terminal</figcaption></figure><p>The link for the Deployed application will be in the Terminal.</p><blockquote>WOW, you reached here, must be having sturdy will here’s the cute cat for you.</blockquote><figure><img alt="Cute cat as gift" src="https://cdn-images-1.medium.com/max/320/0*KuCQFmE6SmY2syKv.gif" /><figcaption>GIF: Cute cat</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4bb24734a6e0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>