<?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 Abdul Rahman on Medium]]></title>
        <description><![CDATA[Stories by Abdul Rahman on Medium]]></description>
        <link>https://medium.com/@abdul-rahman-17?source=rss-485341b70e51------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dFpM4mEpDF2f7VEHWYqMTg.jpeg</url>
            <title>Stories by Abdul Rahman on Medium</title>
            <link>https://medium.com/@abdul-rahman-17?source=rss-485341b70e51------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 02:08:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@abdul-rahman-17/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[No More Excuses: Make Your Flutter App Fly with DevTools]]></title>
            <link>https://abdul-rahman-17.medium.com/no-more-excuses-make-your-flutter-app-fly-with-devtools-173e0d1e8ad2?source=rss-485341b70e51------2</link>
            <guid isPermaLink="false">https://medium.com/p/173e0d1e8ad2</guid>
            <category><![CDATA[programming-tips]]></category>
            <category><![CDATA[mobile-development]]></category>
            <category><![CDATA[devtools]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[app-performance]]></category>
            <dc:creator><![CDATA[Abdul Rahman]]></dc:creator>
            <pubDate>Fri, 23 Aug 2024 12:21:21 GMT</pubDate>
            <atom:updated>2024-08-23T12:21:21.753Z</atom:updated>
            <content:encoded><![CDATA[<p>Performance is a critical factor in the success of any mobile application. In the world of cross-platform development, Flutter has emerged as a powerful toolkit, but even the most well-written Flutter apps can suffer from performance issues if not properly optimized. Flutter DevTools provides a robust set of tools specifically designed to help developers monitor, diagnose, and optimize app performance. This guide delves into how you can leverage Flutter DevTools to enhance your app’s performance, ensuring a smooth and responsive user experience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9FvQPmSkzEOb4T--" /><figcaption>Photo by <a href="https://unsplash.com/@lilzidesigns?utm_source=medium&amp;utm_medium=referral">CARTIST</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>Activating Flutter DevTools in Profile Mode</h4><p>Before you begin optimizing your Flutter app, it’s important to know that Flutter DevTools is most effective in <strong>Profile Mode</strong>. While you can use DevTools in Debug Mode, the profiling data may not be accurate due to the added overhead of the debugger.</p><p>To activate DevTools and ensure it runs in Profile Mode:</p><ol><li><strong>Run Your App in Profile Mode</strong>:</li></ol><pre>flutter run --profile</pre><p>Profile Mode strikes a balance between Debug and Release modes, allowing you to measure the app’s performance more accurately while still providing some debugging features.</p><p><strong>Activate DevTools</strong>:</p><ul><li><strong>From the IDE</strong>: If you’re using Visual Studio Code or Android Studio, you can open DevTools directly from the IDE when running in Profile Mode.</li><li><strong>From the Command Line</strong>: Use the following command to start DevTools:</li></ul><pre>flutter pub global run devtools</pre><p>Once activated, DevTools will connect to your running app instance, allowing you to profile and optimize performance effectively.</p><h4>Understanding Performance in Flutter</h4><p>Before diving into the specifics of Flutter DevTools, it’s important to understand the key aspects of performance in Flutter apps. Performance issues in Flutter typically manifest as:</p><ul><li><strong>Janky Animations</strong>: When frame rendering takes too long, leading to choppy animations.</li><li><strong>Slow Start-Up Times</strong>: Delays when launching the app, leading to a poor first impression.</li><li><strong>Memory Leaks</strong>: Excessive memory usage can cause apps to slow down or crash.</li></ul><p>Flutter DevTools helps you identify and address these issues through various profiling tools.</p><h4>Key Tools in Flutter DevTools for Performance Optimization</h4><h4><strong>1. Performance Overlay</strong></h4><ul><li><strong>Purpose</strong>: The Performance Overlay displays a graph of frame rendering times, helping you identify frames that exceed the target frame time.</li><li><strong>Usage</strong>: Enable the Performance Overlay in DevTools by navigating to the “Performance” tab. The overlay will appear directly on your app, showing two key metrics:</li><li><strong>UI Thread</strong>: The time it takes to build and render the UI.</li><li><strong>Raster Thread</strong>: The time it takes to paint the pixels on the screen.</li><li><strong>Optimization Tip</strong>: Aim to keep both metrics under the 16.67ms threshold for smooth 60fps animations. If your frame times exceed this, investigate the widget tree for inefficient build methods or heavy layouts.</li></ul><h4><strong>2. CPU Profiler</strong></h4><ul><li><strong>Purpose</strong>: The CPU Profiler allows you to record and analyze the CPU usage of your app during a specific period.</li><li><strong>Usage</strong>: Start a CPU profile recording while performing an action in your app that you suspect is causing performance issues. Once you stop the recording, DevTools provides a detailed breakdown of the CPU usage, including which functions were most resource-intensive.</li><li><strong>Optimization Tip</strong>: Look for functions or widgets that take up a significant amount of CPU time. Refactor these parts of your code to be more efficient, possibly by reducing unnecessary rebuilds or optimizing complex calculations.</li></ul><h4><strong>3. Memory Profiler</strong></h4><ul><li><strong>Purpose</strong>: The Memory Profiler helps you monitor memory usage in your app, identifying potential leaks or excessive memory consumption.</li><li><strong>Usage</strong>: Use the Memory tab in DevTools to observe your app’s memory allocation over time. Look for memory spikes or patterns that indicate memory leaks, such as continuously increasing memory usage without release.</li><li><strong>Optimization Tip</strong>: Pay special attention to long-lived objects in your app, such as controllers or services that may not be properly disposed of. Implement the dispose method where necessary to free up memory.</li></ul><h4><strong>4. Timeline View</strong></h4><ul><li><strong>Purpose</strong>: The Timeline View provides a comprehensive overview of all the events occurring in your app, including frame rendering, garbage collection, and network requests.</li><li><strong>Usage</strong>: The Timeline View is particularly useful for diagnosing jank. By examining the event timeline, you can pinpoint exactly when and why frame drops occur.</li><li><strong>Optimization Tip</strong>: Focus on the moments leading up to a frame drop. Investigate the event logs to identify the root cause, whether it’s a heavy build method, a long-running operation on the main thread, or something else.</li></ul><h4><strong>5. Network Profiler</strong></h4><ul><li><strong>Purpose</strong>: The Network Profiler tracks all network requests made by your app, providing insights into request times, payload sizes, and more.</li><li><strong>Usage</strong>: Use the Network tab in DevTools to monitor API calls and other network interactions. This tool is essential for identifying performance issues related to slow network requests or large data payloads.</li><li><strong>Optimization Tip</strong>: If network requests are slow, consider optimizing by reducing payload sizes, implementing caching strategies, or loading data asynchronously to avoid blocking the UI thread.</li></ul><h4>Practical Steps to Optimize Your Flutter App</h4><ol><li><strong>Optimize Widget Rebuilds</strong>: Use the const keyword where possible to prevent unnecessary rebuilds. Utilize shouldRebuild methods to control when widgets need to be rebuilt.</li><li><strong>Reduce Overdraw</strong>: Use the Performance Overlay to identify and reduce overdraw (where the same pixels are being drawn multiple times). Avoid using multiple layers of transparency and prefer solid colors when possible.</li><li><strong>Efficient Data Handling</strong>: Optimize the way data is handled in your app. Use efficient data structures and algorithms to reduce processing time, and avoid loading large amounts of data at once.</li><li><strong>Asynchronous Programming</strong>: Offload heavy computations or IO-bound tasks to isolate or run them asynchronously using Future, async, and await. This keeps the main thread free to render frames smoothly.</li><li><strong>Garbage Collection Management</strong>: Keep an eye on garbage collection in the Timeline View. Frequent garbage collections may indicate memory issues that need to be addressed, such as unnecessary object allocations.</li></ol><h4>Conclusion</h4><p>Optimizing app performance is crucial for delivering a seamless user experience, and Flutter DevTools provides all the necessary tools to achieve this. By leveraging tools like the Performance Overlay, CPU Profiler, and Memory Profiler, you can gain deep insights into your app’s performance, identify bottlenecks, and apply targeted optimizations. With regular use of these tools, you can ensure your Flutter apps run efficiently, providing your users with a smooth and responsive experience.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=173e0d1e8ad2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Elevate Your Flutter Workflow with `build.ps1`]]></title>
            <link>https://abdul-rahman-17.medium.com/elevate-your-flutter-workflow-with-build-ps1-132e66d55868?source=rss-485341b70e51------2</link>
            <guid isPermaLink="false">https://medium.com/p/132e66d55868</guid>
            <category><![CDATA[mobile-development]]></category>
            <category><![CDATA[powershell]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[build-automation]]></category>
            <dc:creator><![CDATA[Abdul Rahman]]></dc:creator>
            <pubDate>Fri, 09 Aug 2024 12:39:07 GMT</pubDate>
            <atom:updated>2024-08-09T12:40:30.806Z</atom:updated>
            <content:encoded><![CDATA[<h3>Elevate Your Flutter Workflow with “build.ps1”</h3><p>In modern software development, automation is key to enhancing productivity and ensuring consistency across builds. Flutter developers, in particular, face the challenge of managing various build configurations, and platform-specific deployments.</p><p>The build.ps1 PowerShell script addresses these challenges by offering a structured and automated way to handle repetitive tasks in a Flutter project. This blog will dive into the build.ps1 script, exploring its components, functionality, and how it can streamline your Flutter development process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XOJn6WCMdg2a73b0" /><figcaption>Photo by <a href="https://unsplash.com/@casparrubin?utm_source=medium&amp;utm_medium=referral">Caspar Camille Rubin</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4><strong>Script Purpose and Overview</strong></h4><p>The build.ps1 script is designed to automate several essential tasks in a Flutter project, such as cleaning build directories, building applications for different platforms, and deploying web apps. This script serves as a wrapper around the Flutter CLI, enabling a more streamlined and error-resistant workflow.</p><p><strong>Key Functions:</strong></p><ul><li><strong>clean:</strong> Removes all build artifacts, ensuring a fresh environment for your next build.</li><li><strong>make:</strong> Facilitates building the app for Android, iOS, and Web, with integrated version control.</li><li><strong>prep:</strong> Prepares the development environment by ensuring all dependencies are up to date and necessary tools are activated.</li><li><strong>run:</strong> Launches the application on your preferred platform, whether it’s a physical device, simulator, or browser.</li></ul><p>Each function is designed to handle a specific aspect of the Flutter development lifecycle, making it easier to manage large projects with multiple build targets.</p><h4><strong>Detailed Breakdown of Functions</strong></h4><p>Let’s take a closer look at each function within the build.ps1 script:</p><h4><strong>1. clean Function</strong></h4><p>The clean function is crucial for ensuring that old or conflicting build artifacts don’t interfere with your current build. It utilizes the flutter clean command, which removes the build/ and .dart_tool/ directories.</p><pre>function clean {<br>    Write-Host &quot;MESSAGE: Now cleaning $APP_NAME dist directories&quot;<br>    flutter clean<br>    Write-Host &quot;MESSAGE: $APP_NAME cleaned&quot;<br>}</pre><p><strong>Usage: </strong>Run the clean function before starting a new build to avoid conflicts.</p><pre>./build.ps1 --clean</pre><h4><strong>2. make_update_rev Function</strong></h4><p>Versioning is crucial in software releases to track changes and ensure compatibility. The make_update_rev function updates the build number in the pubspec.yaml file, using the current timestamp to ensure each build is uniquely identifiable.</p><pre>function make_update_rev {<br>    Write-Host &quot;MESSAGE: Updating build number for $APP_NAME&quot;<br>    $yaml_file_name=&quot;pubspec.yaml&quot;<br>    $yml=Get-Content $yaml_file_name<br>    $version,$oldBuildNumber=($yml -match &quot;version: &quot;).split(&quot; &quot;)[1].split(&quot;+&quot;)<br>    $major,$minor,$revision=$version.split(&quot;.&quot;)<br>    $buildNumber = Get-Date -UFormat %s<br><br>    $yml=$yml -replace &quot;version:.*&quot;,&quot;version: $major.$minor.$revision+$buildNumber&quot;<br>    Set-Content -Path $yaml_file_name -Value $yml<br>}</pre><p><strong>Key Points:</strong></p><ul><li><strong>Automatic Build Numbering:</strong> Ensures each release has a unique identifier, which is especially important for deployment and debugging.</li><li><strong>User Prompt:</strong> Optionally allows the developer to skip build number updates for subsequent builds, ensuring consistency across multiple deployments.</li></ul><p><strong>Usage:</strong> Run this function before a release build to update the build number.</p><pre>./build.ps1 --make</pre><h4><strong>3. make_android and make_ios Functions</strong></h4><p>Building for Android and iOS requires platform-specific commands. The make_android and make_ios functions handle these builds by invoking the necessary Flutter commands and opening the build artifacts.</p><pre>function make_android {<br>    make_update_rev<br>    run_cmd({<br>        flutter build apk<br>        flutter build appbundle<br>    })<br>}</pre><pre>function make_ios {<br>    make_update_rev<br>    run_cmd({<br>        flutter build ipa<br>        Invoke-Item $IOS_BUILD_PATH<br>    })<br>}</pre><p><strong>Key Points:</strong></p><ul><li><strong>Android Builds:</strong> Supports both APK and App Bundle formats, catering to different distribution needs.</li><li><strong>iOS Builds:</strong> Opens the iOS archive in Finder for easy access to the generated .ipa file.</li></ul><p><strong>Usage:</strong><br> These functions are typically used in the final stages of development when preparing the app for release.</p><pre>./build.ps1 --make</pre><h4><strong>4. make_web Function</strong></h4><p>Deploying a Flutter app to the web requires special consideration, particularly when distinguishing between beta and production environments. The make_web function allows you to build and deploy the app with the appropriate settings.</p><pre>function make_web {<br>    make_update_rev<br>    [string] $answer = Read-Host -Prompt &quot;Deploy (b)eta / (p)roduction?&quot;<br>    if ($answer -eq &quot;b&quot;) {<br>        flutter build web --profile --web-renderer canvaskit<br>        Copy-Item -Path build/web/* -Destination web-beta/public -Recurse -Force<br>        firebase deploy --only hosting<br>    } elseif ($answer -eq &quot;p&quot;) {<br>        flutter build web --release --web-renderer canvaskit<br>        Copy-Item -Path build/web/* -Destination web-prod/public -Recurse -Force<br>        firebase deploy --only hosting<br>    }<br>}</pre><p><strong>Key Points:</strong></p><ul><li><strong>Environment Selection:</strong> The script prompts the user to choose between beta and production deployments.</li><li><strong>Firebase Integration:</strong> The deployment process is integrated with Firebase Hosting, ensuring seamless deployment.</li></ul><p><strong>Usage: </strong>Deploy your Flutter web app by choosing the appropriate environment.</p><pre>./build.ps1 --make</pre><h4><strong>5. prep Function</strong></h4><p>Setting up the development environment can be time-consuming, especially when managing multiple dependencies. The prep function automates this by running necessary commands to upgrade dependencies, activate tools, and perform system checks.</p><pre>function prep {<br>    Write-Host &quot;MESSAGE: Prepping the $APP_NAME environment&quot;<br>    flutter pub upgrade<br>    flutter pub get<br>    flutter doctor<br>    Write-Host &quot;MESSAGE: $APP_NAME environment prepped&quot;<br>}</pre><p><strong>Key Points:</strong></p><ul><li><strong>Dependencies:</strong> Ensures all packages are up-to-date.</li><li><strong>System Checks:</strong> Runs flutter doctor to verify the environment is correctly configured.</li></ul><p><strong>Usage: </strong>Prepare your environment before starting development or after switching branches.</p><pre>./build.ps1 --prep</pre><h4><strong>6. run Function</strong></h4><p>The run function provides an interactive way to launch your Flutter app on different platforms. It supports running the app on a physical device, simulator, or web browser.</p><pre>function run {<br>    Write-Host &quot;MESSAGE: Now starting device / simulator / web browser&quot;<br>        &quot; to host $APP_NAME&quot;<br>    [string]$device = Read-Host &quot;Choose Target (d)evice / (s)imulator / (b)rowser / e(x)it?&quot;<br>    if ($device.ToLower() -eq &quot;d&quot;) {<br>        flutter devices<br>        Read-Host &quot;Plugin device and press [Enter] when ready&quot;<br>        flutter run --debug<br>    } elseif ($device.ToLower() -eq &quot;s&quot;) {<br>        flutter emulators<br>        Read-Host &quot;Press [Enter] when operating system is loaded&quot;<br>        flutter run --debug <br>    } elseif ($device.ToLower() -eq &quot;b&quot;) {<br>        flutter run -d chrome<br>    }<br>}</pre><p><strong>Key Points:</strong></p><ul><li><strong>Interactive Prompts:</strong> The function guides the user through the process of selecting the target platform.</li><li><strong>Flexible Launch Options:</strong> Supports running the app on devices, simulators, or browsers, depending on the user’s choice.</li></ul><p><strong>Usage: </strong>Use this function during development to test your app on different platforms.</p><pre>./build.ps1 --run</pre><h4><strong>Conclusion</strong></h4><p>The build.ps1 script is a comprehensive tool that encapsulates the repetitive tasks of a Flutter project into an automated, user-friendly process. By incorporating this script into your workflow, you can significantly reduce the time spent on manual tasks and focus more on developing and refining your application.</p><p>Whether you’re preparing for a release, or simply running your app in different environments, the build.ps1 script offers a reliable and efficient way to manage your Flutter projects. Integrate it into your development process today, and experience the benefits of automation firsthand.</p><p>Happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=132e66d55868" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kerala Adventures: From Coding to Climbing — Team Bonding with a Splash of Fun]]></title>
            <link>https://abdul-rahman-17.medium.com/kerala-adventures-a-journey-of-team-bonding-and-fun-53d814b04908?source=rss-485341b70e51------2</link>
            <guid isPermaLink="false">https://medium.com/p/53d814b04908</guid>
            <category><![CDATA[office-trip]]></category>
            <category><![CDATA[team-bonding]]></category>
            <category><![CDATA[relaxing]]></category>
            <category><![CDATA[kerala]]></category>
            <category><![CDATA[munnar-resorts]]></category>
            <dc:creator><![CDATA[Abdul Rahman]]></dc:creator>
            <pubDate>Wed, 31 Jul 2024 11:10:52 GMT</pubDate>
            <atom:updated>2024-07-31T13:53:38.288Z</atom:updated>
            <content:encoded><![CDATA[<p>Our OptiTribe, consisting of 16 members from the mobility team, including Android, iOS, Flutter, and React Native developers, embarked on a relaxing and adventurous trip to Kerala. Known for its vibrant art, architecture, and lush green hill stations, Kerala is one of the 50 places in the world to visit in a lifetime. We chose Kerala for its natural beauty and rich cultural heritage, and it was my first trip together as a team. We were all excited to explore two breathtaking locations: Munnar and Kochi. Munnar is famed for its sprawling tea plantations and adventurous activities, while Kochi offers a unique culinary experience, especially known for its use of bananas in traditional dishes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_z7wxwLW5CchAWEFg0Hrsg.jpeg" /><figcaption>A group photo at the resort</figcaption></figure><p><strong><em>Team Members</em></strong><em>: Abdul Rahman, Akash, Ramnath, Udhayakumar, Jeyaraman, Muthukumar M, Anbu, Ganesh, Karthikeyan, Ragul, Siva, Muthukumar K, Dinesh S, Dineshkumar Kandhan, Rishop, Balaji .</em></p><h4><strong>The Journey Begins: Gathering in Madurai</strong></h4><p>We all gathered at the Madurai office, one of the branches of Optisol. It was a great opportunity to meet colleagues in person, some for the first time. The day was filled with laughter and discussions, and in the evening, Akash, whose hometown is Madurai, gave us a local tour. We indulged in the famous Madurai parotha and jigarthanda, a delightful experience that set the tone for the trip. We spent the night at the office, a unique experience that was both fun and comfortable.</p><h4><strong>Day 1: Munnar’s Magical Landscape</strong></h4><p>Our journey to Munnar began at 4 AM, with everyone excited and full of energy. The morning breeze and fresh air made the journey delightful. After about 4 hours, we stopped at a famous Suruli waterfall. Initially hesitant, I was encouraged by the team to join them under the falls. The experience was exhilarating and unforgettable, a perfect start to our trip.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3lI5wWYdFdEjm5qPvQnI6w.jpeg" /><figcaption>A photo before taking a dip in Suruli Falls</figcaption></figure><p>After drying off, we enjoyed hot corn and vada, a perfect complement to our refreshing dip. The scenic drive to Munnar was breathtaking, with lush landscapes and light rain adding to the charm. We stopped at a stunning viewpoint, capturing the moment with numerous photos.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TYxMmapVq4dXyQErMoSVyQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wY1X_87E__XD2qRsWfd3KA.jpeg" /><figcaption>Enjoying the scenic beauty of Munnar’s waterfalls and landscape</figcaption></figure><p>Upon reaching Munnar, we checked into the Star Emirates Luxury Resort, a 4-star resort known for its family-friendly atmosphere. Despite the odd-tasting welcome drink, we enjoyed a sumptuous lunch and explored the resort, which boasted a family-sized swimming pool and a helipad. A swim, some games, and an unexpected rain shower made the afternoon memorable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FOYngZw0R-pvx60ThRzSKg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9xx9EnJJe-wEpYPVE1ScYA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mHTFebTw47tyDoWqwKXq8Q.jpeg" /><figcaption>Resort View</figcaption></figure><p>In the evening, we gathered around a campfire for an event filled with music and dancing. Even those of us with two left feet joined in, making it a night to remember. After a light dinner, we chatted and laughed, finally retiring for the night.</p><h4><strong>Day 2: Thrills and Chills at Kochi Wonderla</strong></h4><p>Our day started early, with our manager waking us up at 6 AM. After packing and a hearty breakfast, we set off for Kochi’s Wonderla, a 4–5 hour journey filled with beautiful mountain views, music, and Insta Reels. We arrived around 1 PM, eagerly anticipating the adventure that lay ahead.</p><p>Wonderla didn’t disappoint. We started with thrilling rides like Maverick, Techno Jump, Drop Zone, and the terrifying Equinox. Lunch was a delightful affair, aromatic and flavorful, giving us the energy to tackle the water rides in the afternoon.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZxeKU-AB-YxYk3WDoAqnkw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*su5VV3Bg-V5kWpTJ6euz6A.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G9hQt0JtkTJ7dLFwNbCnog.jpeg" /></figure><p>The wave pool, jungle lagoon, crazy river, rain disco, and Korneto were all fantastic, offering fun and excitement for everyone. As evening approached, we wrapped up the activities and gathered for a surprise award ceremony organized by our managers. I was honored with the Dynamic Challenge Award, a recognition of my contributions and efforts. The ceremony added a special touch to the trip, making everyone feel valued and appreciated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8vlkorGVlPL-Eu_v0m_LMg.jpeg" /><figcaption>After the awards were presented, we took a group photo with the entire team.</figcaption></figure><p>As we boarded the van to return home, we reflected on the amazing experiences and the strong bonds we had formed. This trip was not just a getaway; it was a chance to connect and unwind with colleagues in a relaxed and friendly atmosphere.</p><p>The journey revealed a different side of our managers and colleagues, breaking down barriers and fostering a friendly, relaxed environment. Engaging in activities outside of work helped strengthen our team dynamics, making us more cohesive and collaborative. We discovered unexpected friendships and developed a deeper understanding of each other, which we hope to carry back to the workplace. This trip not only allowed us to unwind but also to connect on a personal level, enhancing our team spirit.</p><h4>To Conclude</h4><p>Our Kerala trip was a blend of adventure, relaxation, and team bonding. From the serene hills of Munnar to the thrilling rides at Wonderla, every moment was filled with joy and camaraderie. This journey not only allowed us to unwind but also to connect on a personal level, enhancing our team spirit. We hope to carry the positive vibes and strengthened relationships back to the workplace, continuing to work together as a united and dynamic team.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=53d814b04908" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering Essential Command Line Tools for Efficient Flutter Development]]></title>
            <link>https://abdul-rahman-17.medium.com/mastering-essential-command-line-tools-for-efficient-flutter-development-c4cf7b5909e6?source=rss-485341b70e51------2</link>
            <guid isPermaLink="false">https://medium.com/p/c4cf7b5909e6</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[command-line]]></category>
            <category><![CDATA[cmd]]></category>
            <category><![CDATA[development]]></category>
            <dc:creator><![CDATA[Abdul Rahman]]></dc:creator>
            <pubDate>Mon, 25 Mar 2024 10:20:17 GMT</pubDate>
            <atom:updated>2024-03-25T10:20:17.921Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*eKvGvQNCcRVLUmLC" /><figcaption>Photo by <a href="https://unsplash.com/@cgower?utm_source=medium&amp;utm_medium=referral">Christopher Gower</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>As you strap on your coding boots and set sail into the vast sea of Flutter development, think of command line tools as your trusty first mates, ready to navigate you through the choppy waters of coding chaos! Here’s a handpicked treasure map sorted by importance, guiding you to the coveted bounty of streamlined workflows and smoother sailing ahead.</p><ol><li><strong>flutter — version</strong>: Obtain the current version of the Flutter SDK, encompassing its framework, engine, and tools. This ensures you’re working with the latest updates and features.</li><li><strong>flutter clean</strong>: Delete the `build/` and `.dart_tool/` directories, providing a clean slate for your project. Useful for resolving build-related issues and ensuring a fresh start.</li><li><strong>flutter create &lt;project_name&gt;</strong>: Initiate a new project effortlessly. This command sets up the basic structure for your Flutter application, getting you up and running swiftly.</li><li><strong>flutter doctor</strong>: Obtain comprehensive information about the installed tooling, including any missing dependencies or configuration issues. Essential for diagnosing and resolving setup-related issues.</li><li><strong>flutter pub get</strong>: Download all packages or dependencies listed in the `pubspec.yaml` file. Ensures that your project has access to the necessary libraries and resources.</li><li><strong>flutter pub update</strong>: Update the Flutter packages used in the current project, ensuring compatibility with the latest versions and bug fixes.</li><li><strong>flutter run</strong>: Execute a Flutter program with various options:<br>- <strong>–debug</strong>: Run a debug version, ideal for development and debugging purposes.<br>- <strong>–profile</strong>: Optimize for performance profiling, aiding in identifying and resolving performance bottlenecks.<br>- <strong>–release</strong>: Run the release version of your application, optimized for production deployment.<br>- <strong>–flavor</strong>: Customize app flavors based on platform-specific build configurations, facilitating multi-environment deployment.</li><li><strong>flutter upgrade</strong>: Globally upgrade the Flutter SDK and Dart SDK on your system, ensuring you have the latest features and improvements.</li><li><strong>flutter pub add &lt;package_name&gt;</strong>: Add a package as a direct dependency to your project, expanding its functionality with external libraries.</li><li><strong>flutter pub add -d &lt;package_name&gt;</strong>: Add a package as a dev dependency, useful for development-specific libraries and tools.</li><li><strong>flutter pub remove &lt;package_name&gt;</strong>: Remove a package from your project, keeping your dependencies lean and efficient.</li><li><strong>flutter test [&lt;DIRECTORY|DART_FILE&gt;]</strong>: Execute test files for your Flutter application, ensuring code integrity and functionality across different scenarios.</li><li><strong>flutter run — verbose</strong>: Display verbose log output, including all shell commands executed during the Flutter run process. Useful for detailed debugging and troubleshooting.</li><li><strong>flutter devices -d &lt;DEVICE_ID&gt;</strong>: View all connected devices, aiding in device selection for deployment and testing.</li><li><strong>flutter build apk</strong>: Deploy Flutter apps to devices, generating binary files for Android and iOS platforms:<br>- <strong>–debug</strong>: Build a debug version of the APK.<br>- <strong>–profile</strong>: Generate a version optimized for performance profiling.<br>- <strong>–release</strong>: Prepare a release version ready for publishing to app stores.<br>- <strong>–flavor</strong>: Customize app flavors based on platform-specific configurations, ensuring tailored builds for different environments.</li></ol><h4>Conclusion:</h4><p>Mastering these command line tools will transform you into a Flutter ninja, effortlessly slicing through the tangled jungle of development complexities like a digital samurai! Say goodbye to the days of wrestling with code monsters; with these tools in your arsenal, you’ll be sprinting towards the finish line of app creation faster than a caffeinated cheetah on roller skates. Get ready to dazzle the tech world with your cross-platform creations and leave your competitors wondering how you make it all look so easy! 🚀✨</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c4cf7b5909e6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Freshchat — seamless integration in flutter]]></title>
            <link>https://techmusings.optisolbusiness.com/freshchat-seamless-integration-in-flutter-d07cee352825?source=rss-485341b70e51------2</link>
            <guid isPermaLink="false">https://medium.com/p/d07cee352825</guid>
            <category><![CDATA[flutter-app-development]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[live-chat]]></category>
            <category><![CDATA[helpcenter]]></category>
            <dc:creator><![CDATA[Abdul Rahman]]></dc:creator>
            <pubDate>Thu, 15 Feb 2024 13:04:05 GMT</pubDate>
            <atom:updated>2024-03-28T10:52:36.413Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Freshchat — seamless integration in flutter</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mRsraxxIHhJE--Go" /><figcaption>Photo by <a href="https://unsplash.com/@ninjason?utm_source=medium&amp;utm_medium=referral">Jason Leung</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Freshchat — making chatting fresh again! With the Freshchat SDK, you’re not just integrating messaging and customer support into your mobile app — you’re adding a sprinkle of magic that turns users into happy campers. Think real-time chat, in-app support, and more customization options than a build-your-own-pizza joint. It’s like having a customer service wizard in your pocket!</p><h4><strong>Why use fresh chat:</strong></h4><p>The Freshchat SDK is a suite of tools provided by Freshchat for developers to seamlessly integrate <strong>messaging</strong> and <strong>customer support</strong> features into mobile applications. It enables <strong>real-time chat</strong>, <strong>in-app support,</strong> user information management, and customization options, enhancing the overall user experience. With features like <strong>user identification</strong>, customization, and <strong>FAQ integration</strong>.</p><p>Freshchat SDK empowers developers to create interactive and user-friendly apps with efficient customer engagement.</p><h4><strong>Essential Components For Freshchat Integration:</strong></h4><p><strong>1. App Key:</strong></p><p><strong>Purpose</strong>: The appKey is a unique identifier for your Freshchat account.</p><p><strong>Usage</strong>: It is used to authenticate and associate your mobile application with your Freshchat account when initialising the Freshchat SDK.</p><p><strong>2. App ID:</strong></p><p><strong>Purpose</strong>: The appId is a unique identifier specific to your Freshchat account.</p><p><strong>Usage</strong>: Similar to appKey, it is used for authentication purposes during the integration of Freshchat SDK with your mobile application.</p><p><strong>3. Domain</strong>:</p><p><strong>Purpose</strong>: The domain specifies the Freshchat domain associated with your account.</p><p><strong>Usage</strong>: It is used to direct the SDK to the correct Freshchat server, ensuring communication between your application and the Freshchat platform.</p><h4><strong>How to integrate:</strong></h4><p><strong>Android:</strong></p><p>1. When the app targets Android 7.0+ and Image attachment is enabled, configure FileProvider. Include the provider in the `AndroidManifest.xml`:</p><pre>&lt;provider<br>  android:name=&quot;androidx.core.content.FileProvider&quot;<br>  android:authorities=&quot;com.example.demoapp.provider&quot;<br>  android:exported=&quot;false&quot;<br>  android:grantUriPermissions=&quot;true&quot;&gt;<br>  &lt;meta-data<br>    android:name=&quot;android.support.FILE_PROVIDER_PATHS&quot;<br>    android:resource=&quot;@xml/freshchat_file_provider_paths&quot; /&gt;<br>&lt;/provider&gt;</pre><p>Update `&lt;app-name&gt;/android/app/src/main/res/values/strings.xml`:</p><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br>&lt;resources&gt;<br>  &lt;string name=&quot;freshchat_file_provider_authority&quot;&gt;com.example.demoapp.provider&lt;/string&gt;<br>&lt;/resources&gt;</pre><p><strong>iOS:</strong></p><p>1. Run the following command to autolink the SDK:</p><ul><li>cd ios</li><li>pod install</li></ul><p>2. To allow your app to access the Photos and Camera on an iOS phone, update `&lt;app-name&gt;/ios/Runner/info.plist`:</p><pre>&lt;key&gt;NSPhotoLibraryUsageDescription&lt;/key&gt;<br>&lt;string&gt;To enable access to Photo Library&lt;/string&gt;<br>&lt;key&gt;NSCameraUsageDescription&lt;/key&gt;<br>&lt;string&gt;To take images from Camera&lt;/string&gt;</pre><p><strong>Flutter:</strong></p><p>1. In your Flutter project’s pubspec.yaml file, under dependencies, add:</p><pre>freshchat_sdk: &quot;{{latest-version}}&quot;</pre><p>For the latest SDK version please refer to the following link:</p><p><a href="https://pub.dev/packages/freshchat_sdk">https://pub.dev/packages/freshchat_sdk</a></p><p>2. Invoke <strong>Freshchat.init() </strong>with your app id, app key, and domain before invoking/ attempting to use any other features of Freshchat SDK.</p><p>We highly recommend invoking init() from your app’s launcher/support screen launch. Freshchat SDK checks for the presence of its components during init() and will warn about missing components when it detects the components are missing or their manifest entries are missing.</p><p>Replace the <strong>YOUR-APP-ID</strong>, <strong>YOUR-APP-KEY</strong>, and <strong>YOUR-DOMAIN</strong> in the following code snippet with the actual app ID and app key.</p><pre>WidgetsFlutterBinding.ensureInitialized();<br>Freshchat.init(YOUR-APP-ID, YOUR-APP-KEY, YOUR-DOMAIN);</pre><p>3. In response to a specific UI event like a menu selection or button on click event, invoke the <strong>showConversations()</strong> API to launch the Conversation Flow. If the app has multiple Topics configured, the user will see the Topic list. The Topics list is ordered as specified in the Dashboard (link to the Topics list in dashboard) when there are no messages. When messages are present, the order is based on the most recently used first.</p><p>Launching Conversation List from click of a button in your app’s screen</p><pre>Freshchat.showConversations();</pre><p><strong>Configuration on web:</strong></p><p><strong>Sign In</strong></p><p>1. Go to [<a href="https://www.freshworks.com/live-chat-software/">https://www.freshworks.com/live-chat-software/</a>](<a href="https://www.freshworks.com/live-chat-software/">https://www.freshworks.com/live-chat-software/</a>).</p><p>2. Click on free trial and select “14 days free trial” and sign in.</p><p>3. Fill in all the required details, including name, email, organisation name, and phone number.</p><p><strong>Freshchat Dashboard</strong></p><p>1. You will be redirected to the dashboard with some onboarding steps.</p><p>2. Navigate to Settings -&gt; Admin -&gt; Mobile SDK -&gt; Get Started.</p><p>3. Retrieve the <strong>app ID</strong>, <strong>app key</strong>, and <strong>domain</strong>.</p><h4><strong>Restore user:</strong></h4><p>For retaining the chat messages across devices/sessions/platforms, the mobile app needs to pass the same external id and restore id combination for the user. This will allow users to seamlessly pick up the conversation from any of the supported platforms — Android, iOS and Web.</p><ul><li><strong>External Id </strong>— This should (ideally) be a unique identifier for the user from your system like a <strong>user id</strong> or <strong>email id</strong> etc and is set using the Freshchat.identifyUser() API. This cannot be changed once set for the user.</li><li><strong>Restore Id </strong>— This is generated by Freshchat for the current user, given an external id was set and can be retrieved anytime using the <strong>user =</strong> <strong>Freshchat.getUser()</strong> and <strong>user.getRestoreId()</strong> API. The app is responsible for storing and later presenting the combination of external id and restore id to the Freshchat SDK to continue the chat conversations across sessions on the same device or across devices and platforms.</li></ul><blockquote><strong>Note</strong>: Restore Id for a user is typically generated only when the user has sent a message.</blockquote><p><strong>Restore ID implementation</strong></p><p>To set external id</p><pre>Freshchat.identifyUser(externalId:&quot;EXTERNAL_ID&quot;);</pre><p>To retrieve the restore id</p><pre>FreshchatUser user = Freshchat.getUser();<br>var restoreId = user.getRestoreId();</pre><p>To lookup and restore user by external id and restore id</p><pre>Freshchat.identifyUser(externalId:&quot;EXTERNAL_ID&quot;,restoreId:&quot;RESTORE_ID&quot;);</pre><p><strong>To listen to restore id generated event</strong></p><p>Restore Id generation is an asynchronous process. So you need to open a stream to <strong>onRestoreIdGenerated</strong> to get notified when restore id is generated. This stream can be listened to and unregistered at cancel of your restore stream and stream subscription of the listener respectively.</p><p><strong>Register for restore id generated event</strong></p><pre>var restoreStream = Freshchat.onRestoreIdGenerated;<br>var restoreStreamSubscription = restoreStream.listen((event) {<br>  FreshchatUser user = Freshchat.getUser();<br>  var restoreId = user.getRestoreId();<br>  var externalId = user.getExternalId();<br>});</pre><h4><strong>Drawbacks and Solution</strong></h4><p><strong>Drawbacks</strong>:</p><p>Restore Id for a user is typically generated only when the user has sent a message.</p><p>​​The Restore ID, essential for continuous conversations, is generated when a user sends a message.</p><p>Retrieving user-based chat history before entering the Help Center is challenging since the Restore ID forms after a message is sent. To overcome this, consider initiating a simple message or acknowledgment upon entry, triggering Restore ID generation and enabling seamless chat history retrieval.</p><p><strong>Solution:</strong></p><p>While the current approach involves storing the Restore ID locally in JSON format, it faces a limitation when users <strong>clear data</strong> or <strong>uninstall the application</strong>, leading to <strong>Restore ID loss</strong>. To address this, consider an alternative solution: storing the data on <strong>Firebase</strong> or retrieving it <strong>through an API</strong>.</p><p>By utilising Firebase or API-based storage, Restore ID data becomes resilient to local data clearance or application uninstallation. This ensures reliable access to the Restore ID at any time, providing a more robust and dependable solution for seamless chat history retrieval.</p><h4><strong>Subscription</strong></h4><p>The free trial will conclude in 14 days. To maintain full access to Help Center’s support features, it’s advised to consider a subscription. Explore plans for uninterrupted assistance and upgraded features.</p><p><a href="https://www.freshworks.com/live-chat-software/pricing/">Freshchat Pricing | Freshworks</a></p><h4>Conclusion</h4><p>So, what have we learned today? With Freshchat, you’re not just chatting — you’re creating unforgettable experiences for your users. And remember, when it comes to seamless conversations across devices and platforms, Freshchat has your back (and your chat history). So go ahead, chat away like it’s nobody’s business — because with Freshchat, it’s always a fresh start!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d07cee352825" width="1" height="1" alt=""><hr><p><a href="https://techmusings.optisolbusiness.com/freshchat-seamless-integration-in-flutter-d07cee352825">Freshchat — seamless integration in flutter</a> was originally published in <a href="https://techmusings.optisolbusiness.com/">Tech Musings</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>