<?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 Blup on Medium]]></title>
        <description><![CDATA[Stories by Blup on Medium]]></description>
        <link>https://medium.com/@blup-tool?source=rss-7b954f846c94------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*YOdUYJLz3xHatxH7HeEofg.png</url>
            <title>Stories by Blup on Medium</title>
            <link>https://medium.com/@blup-tool?source=rss-7b954f846c94------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 15:33:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@blup-tool/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[Razorpay Payment Integration with Flutter]]></title>
            <link>https://medium.com/@blup-tool/razorpay-payment-integration-with-flutter-86cd401451ef?source=rss-7b954f846c94------2</link>
            <guid isPermaLink="false">https://medium.com/p/86cd401451ef</guid>
            <category><![CDATA[flutter-app-development]]></category>
            <category><![CDATA[razorpay]]></category>
            <category><![CDATA[payment-gateway]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[flutter-widget]]></category>
            <dc:creator><![CDATA[Blup]]></dc:creator>
            <pubDate>Thu, 22 May 2025 11:04:27 GMT</pubDate>
            <atom:updated>2025-05-22T11:04:27.084Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KX3hsYfhlqC-hB5-B6TM8A.jpeg" /><figcaption>Razorpay Payment Gateway Integration</figcaption></figure><p>Online payments are now an indispensable feature for mobile applications. This article is designed for developers using <strong>Blup</strong>, a low-code platform built for Flutter, and will walk through how to integrate the Razorpay Payment Gateway with Flutter applications. We’ll focus on setup, key API usage, platform configurations, common errors, and customizations, structured for real-world implementation.</p><h3>Why Razorpay?</h3><p>Razorpay is one of the most widely used Indian payment gateways, supporting credit cards, debit cards, UPI, net banking, wallets, and EMI. It is fast, developer-friendly, and offers secure transactions via encryption and tokenization. Razorpay’s SDK for Flutter allows easy integration with native payment experiences, which can be customized to suit your app’s branding.</p><h3>Account Setup and Accessing API Keys</h3><p>To begin, create an account at <a href="https://dashboard.razorpay.com/">dashboard.razorpay.com</a>. Log in and navigate to Account &amp; Settings → API Keys. Generate your key and secret. The dashboard allows switching between Test &amp; Live mode. For live usage, you must complete the KYC verification.</p><p>You can customize the payment UI from this Checkout Settings → Branding section. You may change the theme color, logo (256x256px minimum), and default language.</p><p>For emails and refund configurations, go to Account &amp; Settings → Email and Refunds. Normal refunds take 5–7 days, while instant refunds are available at a cost.</p><h3>Installing Razorpay in Flutter</h3><p>Open pubspec.yaml and add:</p><pre>dependencies:<br>  razorpay_flutter: ^1.3.5</pre><p>Then run:</p><pre>flutter pub get</pre><p>For Android:</p><ul><li>Set minSdkVersion to <strong>19+</strong> in android/app/build.gradle</li><li>If using ProGuard, add the following in proguard-rules.pro:</li></ul><pre>-keepattributes *Annotation*<br>-dontwarn com.razorpay.**<br>-keep class com.razorpay.** {*;}<br>-keepclasseswithmembers class * {<br>  public void onPayment*(...);<br>}</pre><p>For iOS:</p><ul><li>Set platform :ios, &#39;10.0&#39; in Podfile</li><li>In the post_install block:</li></ul><pre>config.build_settings[&#39;ENABLE_BITCODE&#39;] = &#39;YES&#39;<br>config.build_settings[&#39;SWIFT_VERSION&#39;] = &#39;5.0&#39;</pre><h3>Initializing Razorpay in Your App</h3><p>Create a Razorpay instance inside your widget:</p><pre>late Razorpay razorpay;</pre><pre>@override<br>void initState() {<br>  super.initState();<br>  razorpay = Razorpay();<br>  razorpay.on(Razorpay.EVENT_PAYMENT_SUCCESS, _handlePaymentSuccess);<br>  razorpay.on(Razorpay.EVENT_PAYMENT_ERROR, _handlePaymentError);<br>  razorpay.on(Razorpay.EVENT_EXTERNAL_WALLET, _handleExternalWallet);<br>}</pre><p>Dispose of the instance properly:</p><pre>@override<br>void dispose() {<br>  razorpay.clear();<br>  super.dispose();<br>}</pre><h3>Creating Checkout Configuration</h3><p>You will need to configure the options map with required details:</p><pre>var options = {<br>  &#39;key&#39;: &#39;&lt;YOUR_KEY&gt;&#39;,<br>  &#39;amount&#39;: 50000, // in paise (₹500.00)<br>  &#39;name&#39;: &#39;Your App&#39;,<br>  &#39;description&#39;: &#39;Order #1234&#39;,<br>  &#39;prefill&#39;: {<br>    &#39;contact&#39;: &#39;9876543210&#39;,<br>    &#39;email&#39;: &#39;user@example.com&#39;<br>  },<br>  &#39;external&#39;: {<br>    &#39;wallets&#39;: [&#39;paytm&#39;]<br>  }<br>};</pre><p>Call the Razorpay window:</p><pre>razorpay.open(options);</pre><h3>Handling Payment Events</h3><p>Razorpay provides callback events for success, failure, and wallet selections.</p><pre>void _handlePaymentSuccess(PaymentSuccessResponse response) {<br>  print(&#39;Payment successful: ${response.paymentId}&#39;);<br>}</pre><pre>void _handlePaymentError(PaymentFailureResponse response) {<br>  print(&#39;Payment failed: ${response.code} - ${response.message}&#39;);<br>}</pre><pre>void _handleExternalWallet(ExternalWalletResponse response) {<br>  print(&#39;External wallet selected: ${response.walletName}&#39;);<br>}</pre><h3>Accepting User Input for Dynamic Amounts</h3><p>To allow users to enter payment amounts:</p><pre>TextEditingController amountController = TextEditingController();</pre><pre>ElevatedButton(<br>  onPressed: () {<br>    var amount = int.parse(amountController.text) * 100;<br>    var options = {<br>      &#39;key&#39;: &#39;&lt;YOUR_KEY&gt;&#39;,<br>      &#39;amount&#39;: amount,<br>      &#39;name&#39;: &#39;User&#39;,<br>      &#39;description&#39;: &#39;Payment&#39;,<br>      &#39;prefill&#39;: {<br>        &#39;contact&#39;: &#39;9876543210&#39;,<br>        &#39;email&#39;: &#39;user@example.com&#39;<br>      }<br>    };<br>    razorpay.open(options);<br>  },<br>  child: Text(&#39;Pay Now&#39;)<br>)</pre><h3>Error Codes and Debugging</h3><p><strong>Common Razorpay Errors:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/604/1*i0mPEU-9HKr5kHcmUCs0zw.png" /></figure><p><strong>Tips:</strong></p><ul><li>Always wrap razorpay.open() in try-catch</li><li>Enable debug logs</li><li>Use test keys and cards for early testing</li></ul><h3>Troubleshooting Build Errors</h3><p>If you encounter errors like:</p><pre>What went wrong: A problem occurred evaluating project &#39;&#39;</pre><p>Try removing:</p><pre>useProguard true<br>proguardFiles(...)</pre><p>from your release block in app/build.gradle</p><p>Also, verify that you’re passing correct order_id, amount, and key in the options map.</p><h3>Example App Overview</h3><p>Structure:</p><ul><li>main.dart: Initializes app</li><li>razorpay.dart: Contains integration logic</li></ul><p>The UI accepts user input, and on tapping “Pay Now”, opens the Razorpay window. Users can select payment modes like UPI, card, or net banking. Timeout settings, preferred language, and branding apply here.</p><h3>Customizing Razorpay Further</h3><ul><li>Use the notes field to attach internal order IDs</li><li>Enable/disable specific payment methods</li><li>Add webhook URLs for backend confirmation</li><li>Set the currency to support international payments</li><li>Manage subscriptions using Razorpay’s API</li></ul><h3>Final Notes</h3><p>Integrating Razorpay in Flutter is a reliable way to handle payments. With Blup’s low-code visual environment, developers can configure UI elements, payment triggers, and Razorpay events through custom code blocks.</p><p>Make sure to:</p><ul><li>Use dynamic fields from forms/UI</li><li>Keep keys secure (do not hardcode production keys)</li><li>Test extensively in a sandbox before live mode</li></ul><p>This guide prepares you to accept digital payments seamlessly inside your Flutter or Blup app.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=86cd401451ef" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Expendefy vs Shopify: Which One’s Better for Local Business Networks?]]></title>
            <link>https://medium.com/@blup-tool/expendefy-vs-shopify-which-ones-better-for-local-business-networks-334d74634596?source=rss-7b954f846c94------2</link>
            <guid isPermaLink="false">https://medium.com/p/334d74634596</guid>
            <category><![CDATA[shopify]]></category>
            <category><![CDATA[e-commerce-business]]></category>
            <category><![CDATA[local-business]]></category>
            <category><![CDATA[white-label]]></category>
            <category><![CDATA[expendefy]]></category>
            <dc:creator><![CDATA[Blup]]></dc:creator>
            <pubDate>Tue, 20 May 2025 05:31:54 GMT</pubDate>
            <atom:updated>2025-05-20T05:31:54.797Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sjw-yArb6v6R5fBV-DXBMQ.jpeg" /></figure><p>Looking for a Shopify alternative for India? Learn how <a href="https://www.expendefy.com/">Expendefy</a> empowers local delivery, multilingual UX, and <a href="https://www.expendefy.com/pricing">white-labeled apps</a>.</p><p>In the ever-evolving world of e-commerce, choosing the right platform can make or break a business, especially for local sellers in <strong>India</strong> and across <strong>Asia</strong>. While <strong>Shopify</strong> has long dominated the global e-commerce space, <a href="https://www.expendefy.com/pricing"><strong>Expendefy</strong></a> is emerging as a powerful, localized alternative purpose-built for hyperlocal delivery ecosystems and franchise networks. So, which one truly supports local business networks better? Let’s compare.</p><h3>Platform Overview</h3><h4>Shopify</h4><p>Shopify is one of the most well-known e-commerce platforms globally. It allows businesses to create online stores quickly using customizable templates and a wide range of plugins. However, its core strengths lie in dropshipping, international e-commerce, and scalable product catalogues for solo brands.</p><h4><a href="https://www.expendefy.com/">Expendefy</a></h4><p>Expendefy is a <strong>white-labeled, multi-role, multi-seller platform</strong> built specifically for localized commerce networks. It comes equipped with dedicated apps for buyers, sellers, delivery partners, and admins, making it ideal for Indian entrepreneurs, franchise networks, resellers, and Tier 2/Tier 3 city businesses.</p><h3>Cost &amp; Pricing Transparency</h3><h4>Shopify</h4><ul><li><strong>Basic Plan</strong>: ₹1,994/month</li><li><strong>Standard Shopify Plan</strong>: ₹7,447/month</li><li><strong>Advanced Plan</strong>: Higher cost with advanced analytics</li><li><strong>Add-ons</strong>: Extra costs for third-party apps, themes, and templates</li><li><strong>Transaction Fees</strong>: Apply unless using Shopify Payments</li></ul><h4>Expendefy</h4><ul><li><strong>Solo</strong>: For solo sellers, a 2% transaction fee</li><li><strong>Micro Shop</strong>: Includes buyer + seller apps and branded experience</li><li><strong>Startup</strong>: Multi-seller support (up to 500), 10K monthly active users</li><li><strong>Growing Startup</strong>: Up to 100K users, full white-label, custom UI/UX, delivery apps</li><li><strong>Enterprise</strong>: iOS/Android apps, 1 M+ users, credit system, integration with Tally</li><li><strong>Custom Plans</strong>: Tailored pricing for large businesses</li></ul><p><strong>Verdict:</strong> Expendefy provides <strong>more features at predictable costs</strong>, making it a better fit for <strong>regional franchises</strong> and <strong>multi-store chains</strong>.</p><h3>Customization &amp; Branding Control</h3><p>Shopify lets you use templates and themes, but many deeper customizations require expensive third-party apps or developer assistance.</p><p>Expendefy gives you <strong>complete control</strong> — from interface and workflows to branding. Your buyer app, seller dashboard, and delivery partner experience are <strong>entirely white-labeled</strong>.</p><p><strong>Verdict:</strong> Expendefy leads in customization, especially for businesses that need to run branded ecosystems or manage large franchise networks.</p><h3>Delivery &amp; Last-Mile Logistics</h3><h4>Shopify</h4><ul><li>No built-in delivery partner app</li><li>Must rely on third-party plugins like Shiprocket or Delhivery</li><li>Ideal for courier or global shipping, not local logistics</li></ul><h4>Expendefy</h4><ul><li>Comes with a <strong>dedicated delivery agent app</strong></li><li>Features like <strong>OTP delivery, live tracking, status updates</strong>, and region-based routing</li><li>Designed for <strong>grocery, fashion, home services, and food delivery</strong></li></ul><p><strong>Verdict:</strong> Expendefy wins for <strong>last-mile delivery</strong>, especially in local and hyperlocal contexts.</p><h3>Language &amp; Regional Support</h3><p>Shopify defaults to English, and multilingual support must be added via apps.</p><p>Expendefy offers <strong>multilingual panels</strong> and <strong>regional language support</strong> by default for both sellers and buyers. This is a game-changer for India and Southeast Asia, where <strong>vernacular-first commerce</strong> is on the rise.</p><p><strong>Verdict:</strong> Expendefy is more inclusive and scalable for regional audiences.</p><h3>Use Case Scenarios</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/1*4f5E_u7VjXC71vVHRrCRcw.png" /><figcaption>Use Case Scenarios | Expendefy</figcaption></figure><p>Expendefy was <strong>designed for India-first sellers</strong> — grocery store chains, pharmacy outlets, courier services, and multi-seller franchises who need <strong>apps + admin + control in one stack</strong>.</p><h3>Final Comparison Table</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/587/1*Fc37PRswZEpKEV0GBJCcpw.png" /></figure><h3>Conclusion</h3><p>If you’re a local seller or franchise network in India or Southeast Asia, <strong>Shopify will get you online, but Expendefy will help you scale locally</strong>.</p><p>Shopify is powerful but comes with international assumptions: English-first, plugin-based delivery, and solo-brand focus.</p><p>Expendefy, on the other hand, is <strong>built for India</strong>: regional languages, delivery agent apps, and white-labeled multi-store capability.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=334d74634596" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Meta’s LLaMA 4: The Breakthrough Open-Weight AI Model You Need to Know]]></title>
            <link>https://medium.com/@blup-tool/metas-llama-4-the-breakthrough-open-weight-ai-model-you-need-to-know-1d0967ce6884?source=rss-7b954f846c94------2</link>
            <guid isPermaLink="false">https://medium.com/p/1d0967ce6884</guid>
            <category><![CDATA[llama-3]]></category>
            <category><![CDATA[meta]]></category>
            <category><![CDATA[llama-4]]></category>
            <category><![CDATA[next-generation]]></category>
            <category><![CDATA[genai]]></category>
            <dc:creator><![CDATA[Blup]]></dc:creator>
            <pubDate>Tue, 29 Apr 2025 19:09:21 GMT</pubDate>
            <atom:updated>2025-04-29T19:09:21.395Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Explore Meta’s LLaMA 4 AI model — features, capabilities, comparisons, and real-world applications. Discover how developers and businesses are using LLaMA 4 to power innovation.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7jwQBuT-_040EBEeMO42ww.jpeg" /><figcaption>Meta’s LLaMA 4 — Blup</figcaption></figure><p>Meta’s LLaMA 4 represents the next leap in open-weight AI innovation. Designed to balance power, efficiency, and accessibility, LLaMA 4 delivers world-class performance for research, enterprise, and creative AI applications. With multi-size variants and fine-tuning capabilities, it’s reshaping the future of machine learning at scale.</p><h3>What Makes LLaMA 4 Different?</h3><p>LLaMA 4 (Large Language Model Meta AI) is Meta’s most advanced open-weight AI model yet. Unlike closed systems like GPT-4, LLaMA 4 is openly available for researchers and developers to fine-tune and deploy. With improved context handling, multilingual capabilities, and stronger safety alignment, it significantly advances over LLaMA 3. Its design is scalable — from mobile apps to enterprise workloads — and supports multiple model sizes. LLaMA 4 integrates upgraded training data and better architectural efficiency, including elements like Mixture-of-Experts (MoE), longer context windows, and faster inference times. These upgrades help deliver higher performance across coding, logic, and reasoning tasks, all while remaining customizable and transparent.</p><h3>LLaMA 4 vs Closed Models: How It Competes</h3><p>Compared to closed models like GPT-4, LLaMA 4 offers significant competitive advantages in openness and flexibility. While GPT-4 may have a slight lead in polished conversational quality, LLaMA 4 shines in giving developers full control — no API lock-in, full data privacy, and on-premise deployment. LLaMA 4 has been evaluated on benchmarks like MMLU and shows strong results across multilingual, mathematical, and coding tasks. Importantly, it enables organizations to tailor AI to their own domain without excessive costs or reliance on external platforms. For innovation-hungry teams and academic researchers, the open-weight nature of LLaMA 4 provides freedom to build, audit, and evolve applications without restrictions, a critical factor as AI development becomes increasingly regulated.</p><h3>Real-World Applications: Where LLaMA 4 Works Best</h3><p>LLaMA 4 is already finding use across industries. In healthcare, it’s helping with medical documentation, summarization, and diagnostics. In finance, it’s powering risk assessment tools and fraud detection systems. Education platforms are adopting it for intelligent tutoring systems, while developers are using it to build custom chatbots, AI writing assistants, and code copilots. Its local deployment options make it ideal for data-sensitive sectors like legal, government, and defense. Open-source contributors are also experimenting with it for creative tasks like music generation and storytelling. The breadth of real-world use cases proves that LLaMA 4 is not just a research milestone; it’s a practical solution driving business transformation and productivity.</p><h3>Benefits and Challenges of Open-Weight AI</h3><p>The biggest advantage of LLaMA 4 lies in its open access. Developers can fine-tune the model on private data, host it on their servers, and build region-specific or industry-specific applications. It promotes transparency, faster iteration cycles, and reduces reliance on big tech APIs. However, with openness comes responsibility. Models like LLaMA 4 can still hallucinate or be misused without proper safeguards. Ethical implementation, monitoring, and human oversight are essential. High compute requirements for the largest variants may also limit accessibility for smaller teams. Despite these challenges, LLaMA 4’s openness accelerates global AI innovation, especially in underserved regions and academic institutions.</p><h3>Conclusion</h3><h4>Build Smarter with Tools like BLUP</h4><p>LLaMA 4 is more than just an upgrade — it’s a shift in how AI can be shared, scaled, and applied. As AI adoption grows, tools like <a href="https://www.blup.in/"><strong>BLUP</strong></a> make it easier than ever to bring LLaMA 4 into real-world use. BLUP helps developers and teams design, deploy, and manage AI apps without needing deep ML infrastructure. Whether you’re creating a chatbot, automating a workflow, or experimenting with generative models, BLUP offers a no-code interface and robust backend support. If you’re ready to move from theory to production, start building smarter — with open AI and with <a href="http://www.blup.in/">BLUP</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1d0967ce6884" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From MVP to Launch: How Blup Simplifies App Development]]></title>
            <link>https://medium.com/@blup-tool/from-mvp-to-launch-how-blup-simplifies-app-development-f9bee538cb41?source=rss-7b954f846c94------2</link>
            <guid isPermaLink="false">https://medium.com/p/f9bee538cb41</guid>
            <category><![CDATA[app-development]]></category>
            <category><![CDATA[mvp]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[flutter-app-development]]></category>
            <dc:creator><![CDATA[Blup]]></dc:creator>
            <pubDate>Wed, 16 Apr 2025 10:44:25 GMT</pubDate>
            <atom:updated>2025-04-16T10:44:25.624Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Blup is a low-code Flutter platform that streamlines the entire app development process — from design to backend. Discover how startups, freelancers, and teams build scalable apps faster, with less code and zero handoff headaches.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MvQJ_Q-I3uzNiT9wOorhpw.jpeg" /><figcaption>From concept to code — Blup builds it all.</figcaption></figure><h4>Introduction: Why App Development Feels Broken</h4><p>Developing an app is often more complex than it needs to be. Startups face high costs and tight timelines just to build a basic MVP. Designers deal with frustrating handoffs that compromise UI quality. Developers are pulled into repetitive tasks — setting up boilerplate, connecting APIs, managing backend logic — leaving little time for innovation. These bottlenecks slow progress and increase risk, especially for small teams trying to move fast.</p><p><a href="https://www.blup.in/"><strong><em>Blup is designed to solve this.</em></strong></a><strong><br></strong><em>Blup is a low-code platform built on Flutter that streamlines the entire app development process. It empowers teams to design, build, and launch apps from a single, unified workspace — without jumping between disconnected tools or relying heavily on large engineering resources.</em></p><p>This blog explores why traditional app development often breaks down, and how Blup addresses each pain point. From enabling rapid MVP development to simplifying backend integration, and improving design-to-development collaboration, Blup offers a practical solution for teams looking to accelerate delivery without compromising on quality.</p><p>If you’re a startup founder, product manager, designer, or developer looking for a smarter way to bring apps to market — this guide will show you how Blup transforms the process from idea to execution.</p><h3>Blup for Rapid MVPs</h3><p><strong>Build, validate, and launch without heavy coding<br></strong>In the early stages of a product, speed matters. Founders and teams need to get their MVP in front of users — not months from now, but in weeks or even days. Yet, traditional development cycles often slow this momentum. Between hiring developers, writing infrastructure code, and handling frontend/backend integration, even the simplest MVP can become resource-intensive.</p><p><strong>Blup removes these barriers.<br></strong>With its visual UI builder, drag-and-drop logic system, and integrated backend (BlupSheets), Blup allows teams to move from concept to functional prototype in a fraction of the time. You don’t need to set up a full development stack. You don’t need to write every line of code. You focus on the product experience — Blup handles the rest.</p><p>Startups can test ideas with real users faster. Agencies can deliver initial builds quickly for client feedback. Even solo founders or non-technical team members can validate core workflows without relying on a full dev team.</p><p>And when you’re ready to scale, Blup exports clean Flutter code — meaning you’re never locked in. Whether your goal is to pitch investors, test product-market fit, or get into production, Blup gives you the tools to build smart, fast, and lean.</p><h3>Blup Simplifies Design Handoff and Speeds Up Development</h3><p>For many teams, two major challenges slow down app development: translating design into functional code, and managing with limited technical resources. Designers often hand off detailed UI files that don’t translate accurately into code, while developers are tied up with repetitive setup tasks. These issues lead to delays, miscommunication, and increased development costs.</p><p><strong>Blup addresses both challenges in one platform.</strong></p><p>With Blup, design files from Figma can be imported directly into a working Flutter environment. Layouts and visual elements are preserved as-is, and designers can go a step further by adding interactions and logic — without needing to write code. This reduces back-and-forth and ensures that the final product aligns with the original design.</p><p>At the same time, Blup’s low-code tools allow non-technical team members to contribute to development. Logic flows and backend setup can be handled through visual interfaces, giving lean teams the ability to move faster without relying solely on engineers.</p><p>By streamlining both design-to-development handoff and development execution, Blup enables teams to deliver working prototypes and products faster — with better alignment, fewer blockers, and greater efficiency at every stage.</p><h3>Backend, Simplified</h3><p><strong>BlupSheets for faster data management and integration<br></strong>Managing backend infrastructure is often one of the most time-consuming parts of app development — especially for non-technical teams. BlupSheets simplifies this process by offering a visual, low-code backend setup where you can create, manage, and connect data without writing complex API code. Whether you’re building user profiles, dynamic content, or basic CRUD operations, BlupSheets allows you to structure and integrate data in minutes. It works seamlessly with your app logic and UI, enabling faster testing, real-time updates, and easier iteration. For lean teams, it means less backend stress — and more time building features that matter.</p><h3>Faster Internal Tools &amp; Project Delivery</h3><p><strong>Reduce repetitive work and accelerate development cycles</strong></p><p>Building internal tools often takes a backseat due to time and resource constraints. Blup helps teams streamline these efforts with its low-code environment, allowing faster creation of dashboards, admin panels, or custom workflows. By removing the need for boilerplate setup and reducing backend/API wiring, Blup enables teams to launch tools faster and focus on solving real problems. Logic can be built visually, updates pushed instantly, and testing becomes faster. This dramatically reduces development cycles, helping teams move from idea to implementation in days — not weeks.</p><h3>Seamless Team Collaboration</h3><p><strong>Real-time syncing for design, dev, and product teams</strong></p><p>Cross-functional misalignment is one of the biggest blockers in modern product teams. Blup bridges that gap by offering a shared platform where designers, developers, and product managers can work together in real time. Designers can build responsive UIs, developers can fine-tune logic, and product teams can monitor progress — all within the same interface. No more delays from handoffs, miscommunication, or switching tools. With everything synced visually and functionally, collaboration becomes faster, more transparent, and significantly more productive.</p><h3>Why Blup Works: Results, Features &amp; Next Steps</h3><p><strong>Platform highlights, success stories, and how to begin</strong></p><p>Blup isn’t just a tool — it’s a complete app development solution. It combines a visual UI builder, logic engine, backend (BlupSheets), and Figma integration into a single platform. Startups use it to build MVPs quickly, agencies cut delivery timelines in half, and designers prototype full flows without writing code. With clean Flutter code export, you’re never locked in. If you’re ready to simplify your workflow, reduce costs, and bring your ideas to life faster — Blup offers the tools and support to make it happen. Explore the platform, start building, or request a live demo to see how it fits your needs.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f9bee538cb41" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Do You Authenticate and Fetch Events From Google Calendar With Firebase and Flutter Web?]]></title>
            <link>https://medium.com/@blup-tool/how-do-you-authenticate-and-fetch-events-from-google-calendar-with-firebase-and-flutter-web-6a243f1d0e94?source=rss-7b954f846c94------2</link>
            <guid isPermaLink="false">https://medium.com/p/6a243f1d0e94</guid>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[flutter-app-development]]></category>
            <category><![CDATA[firebase]]></category>
            <category><![CDATA[firebaseauthentication]]></category>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Blup]]></dc:creator>
            <pubDate>Tue, 03 Dec 2024 03:36:19 GMT</pubDate>
            <atom:updated>2024-12-03T03:36:19.952Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Learn how to authenticate users and fetch Google Calendar events seamlessly in your Flutter web app using Firebase. This step-by-step guide covers OAuth 2.0 setup, API integration, and displaying calendar data with practical code examples.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0r9c7Cd01gJv3sEO4APG1w.png" /></figure><p>Google Calendar integration can be a game-changer for your Flutter web application. With Firebase and Flutter Web, you can create a seamless user experience by fetching calendar events and handling authentication securely. In this comprehensive guide, we’ll explore how to integrate Google Calendar with Firebase for Flutter Web, diving into both authentication and data fetching.</p><h3>Getting Started With Firebase for Flutter Development</h3><p>To start with this integration, ensure your Flutter project is set up with Firebase. Firebase serves as a robust backend service, providing features like authentication, Firestore database, and real-time syncing. If you’re new to Firebase, check out Getting Started with Firebase for Flutter Development to set up your project.</p><h3>Step 1: Setting Up Firebase Authentication for Flutter Web</h3><h3>Why Use Firebase Authentication?</h3><p>Firebase Authentication simplifies the process of securing your app with multiple sign-in methods, including Google sign-in. It supports OAuth 2.0, making it ideal for integrating Google Calendar.</p><h3>Steps to Implement Firebase Authentication</h3><p><strong>1. Add Firebase to Your Project</strong></p><ul><li>Visit the Firebase console.</li><li>Register your app and download the google-services.json file.</li><li>Add it to your Flutter project.</li></ul><p><strong>2. Enable Google Authentication</strong></p><ul><li>In the Firebase console, navigate to the Authentication section.</li><li>Enable the “Google Sign-In” provider.</li></ul><p><strong>3. Integrate the Authentication Logic</strong> Use the firebase_auth package in your Flutter project:</p><pre>final FirebaseAuth auth = FirebaseAuth.instance;<br><br>Future&lt;UserCredential&gt; signInWithGoogle() async {<br>  final GoogleAuthProvider googleProvider = GoogleAuthProvider();<br>  return await auth.signInWithPopup(googleProvider);<br>}</pre><p>This allows users to sign in via Google for your web application.</p><p>For further details, see Firebase Authentication in Flutter: Secure User Access.</p><h3>Step 2: Enabling Google Calendar API</h3><h3>Activating the Google Calendar API</h3><ol><li>Go to the Google Cloud Console.</li><li>Create a new project or use an existing one.</li><li>Navigate to “APIs &amp; Services” and enable the Google Calendar API.</li></ol><h3>Generate OAuth 2.0 Client ID</h3><ul><li>Under “Credentials,” create an OAuth 2.0 client ID.</li><li>Configure your app’s consent screen with required permissions.</li></ul><h3>Step 3: Fetching Events From Google Calendar</h3><h3>Obtaining Access Tokens</h3><p>Once a user is authenticated, you’ll need an access token to interact with the Google Calendar API. Firebase simplifies token handling:</p><pre>final user = FirebaseAuth.instance.currentUser;<br>final idToken = await user?.getIdToken();</pre><h3>Making API Requests</h3><p>Use the access token to fetch events:</p><pre>final response = await http.get(<br>  Uri.parse(&quot;https://www.googleapis.com/calendar/v3/calendars/primary/events&quot;),<br>  headers: {<br>    &quot;Authorization&quot;: &quot;Bearer $idToken&quot;,<br>  },<br>);<br><br>if (response.statusCode == 200) {<br>  print(jsonDecode(response.body));<br>}</pre><h3>Displaying Events in Flutter</h3><p>Parse the fetched JSON data and display it in a Flutter widget:</p><pre>List events = jsonDecode(response.body)[&#39;items&#39;];<br><br>return ListView.builder(<br>  itemCount: events.length,<br>  itemBuilder: (context, index) {<br>    return ListTile(<br>      title: Text(events[index][&#39;summary&#39;]),<br>      subtitle: Text(events[index][&#39;start&#39;][&#39;dateTime&#39;]),<br>    );<br>  },<br>);</pre><h3>Advanced Features With Firestore</h3><p>If you want to store and retrieve events for offline access, consider using Firestore. Learn how to use Firestore effectively in Firestore Basics: Storing and Retrieving Data in Flutter.</p><h3>Handling Common Scenarios</h3><h3>1. Fetching Distinct User Data</h3><p>To query user-specific data while excluding the currently logged-in user, Firestore offers flexible querying options:</p><pre>Firestore.instance<br>    .collection(&#39;users&#39;)<br>    .where(&#39;uid&#39;, isNotEqualTo: FirebaseAuth.instance.currentUser?.uid)<br>    .getDocuments();</pre><h3>2. Managing Offline Data</h3><p>Leverage Firestore’s offline capabilities to cache events. See Firestore Real-Time Data and Offline Capabilities.</p><h3>FAQs</h3><h3>How do you authenticate and fetch events from Google Calendar with Firebase and Flutter Web?</h3><p>Authenticate users with Firebase Authentication and fetch events using the Google Calendar API. Ensure OAuth 2.0 is set up correctly, and use the firebase_auth package to handle authentication.</p><h3>How to fetch user data from Firebase for querying?</h3><p>Use Firestore queries to fetch user data, filtering results as needed:</p><pre>Firestore.instance.collection(&#39;users&#39;).where(&#39;key&#39;, isEqualTo: &#39;value&#39;).getDocuments();</pre><h3>How to add a Firebase Firestore package locally in a pod file for a Flutter iOS project?</h3><p>Add the following line to your Podfile:</p><pre>pod &#39;Firebase/Firestore&#39;</pre><p>Then, run pod install.</p><h3>How does Firestore calculate the read count for the same queries with different limits?</h3><p>Firestore charges for every document read, even if the queries differ by limit. Use indexed queries to minimize redundant reads.</p><h3>How to fetch a user from Firebase Firestore that is distinct from the currently logged-in user in a Flutter app?</h3><pre>Firestore.instance<br>    .collection(&#39;users&#39;)<br>    .where(&#39;uid&#39;, isNotEqualTo: FirebaseAuth.instance.currentUser?.uid)<br>    .getDocuments();</pre><h3>How to make FCM notifications show as a banner when the app is in the background or killed on an Android client?</h3><p>Ensure your notification payload includes notification instead of just data. Customize notification behavior in the AndroidManifest file.</p><h3>How can I use the same token for AndroidProvider.debug and AppleProvider.debug using the firebase_app_check plugin?</h3><p>Configure app verification using the debug provider:</p><pre>FirebaseAppCheck.instance.activate(<br>  webRecaptchaSiteKey: &#39;your-site-key&#39;,<br>);</pre><h3>How to configure Remote Config in Firebase?</h3><p>Set up Remote Config in the Firebase console and fetch the parameters in your app:</p><pre>await FirebaseRemoteConfig.instance.fetchAndActivate();</pre><h3>Conclusion</h3><p>Integrating Google Calendar with Firebase and Flutter Web allows you to deliver powerful scheduling features within your app. By leveraging Firebase’s secure authentication and Firestore for data handling, you can create a dynamic, user-friendly experience. Want to explore more? Check out Firebase Emulator Suite: Prototyping and Testing Locally.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6a243f1d0e94" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Testing HTTP Requests in Flutter: A Complete Guide]]></title>
            <link>https://medium.com/@blup-tool/testing-http-requests-in-flutter-a-complete-guide-3992a357c80b?source=rss-7b954f846c94------2</link>
            <guid isPermaLink="false">https://medium.com/p/3992a357c80b</guid>
            <category><![CDATA[http-request]]></category>
            <category><![CDATA[flutter-app-development]]></category>
            <category><![CDATA[https]]></category>
            <category><![CDATA[app-testing]]></category>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Blup]]></dc:creator>
            <pubDate>Wed, 30 Oct 2024 03:31:58 GMT</pubDate>
            <atom:updated>2024-10-30T03:31:58.840Z</atom:updated>
            <content:encoded><![CDATA[<p>Learn how to write unit tests for HTTP requests in Flutter. Master the art of testing API calls and handling mock data for robust app development.</p><figure><img alt="Testing HTTP Requests in Flutter | Networking &amp; http in Flutter" src="https://cdn-images-1.medium.com/max/1024/1*V-xWdTcYeuYf0SmVjfaL2g.png" /><figcaption>Testing HTTP Requests in Flutter | Networking &amp; http in Flutter</figcaption></figure><p>In any Flutter application, ensuring that your HTTP requests are working as expected is crucial for reliable API interactions. Writing unit tests for HTTP requests allows developers to catch errors early and ensure robust app development. This guide will walk you through the process of testing API calls in Flutter and handling mock data effectively.</p><h3>Why Testing HTTP Requests is Important</h3><p>In modern app development, interacting with remote APIs has become a central part of building dynamic mobile apps. From fetching data to sending user inputs, most apps rely on HTTP requests to communicate with servers. However, these external calls can introduce uncertainty — network issues, server downtime, and unpredictable API responses can all affect your app’s performance.</p><p>By writing proper unit tests for your HTTP requests, you can:</p><ul><li>Validate the behavior of your app when API calls succeed or fail.</li><li>Ensure that your app handles edge cases, such as timeouts and error responses, appropriately.</li><li>Mock responses to test how your app works in isolated conditions.</li></ul><h3>Setting Up Your Testing Environment</h3><p>Before you start writing tests, it’s important to set up a proper environment to mock HTTP responses and perform assertions on their behavior.</p><p><strong>1. Add the </strong><strong>http and </strong><strong>http_mock_adapter packages:</strong></p><p>To test HTTP requests, you’ll first need the http package for making the requests and the http_mock_adapter package to simulate responses.</p><p>Add these dependencies to your pubspec.yaml file:</p><pre>dependencies:<br>  http: ^0.13.3<br><br>dev_dependencies:<br>  http_mock_adapter: ^0.3.1<br>  test: ^1.16.0</pre><p><strong>2. Import necessary libraries:</strong></p><p>In your test file, import the necessary testing libraries along with your HTTP client setup.</p><pre>import &#39;package:http/http.dart&#39; as http;<br>import &#39;package:test/test.dart&#39;;<br>import &#39;package:http_mock_adapter/http_mock_adapter.dart&#39;;</pre><h3>Writing Unit Tests for HTTP Requests</h3><p>Let’s start by writing some basic tests for a GET request.</p><h4>Example: Testing a GET Request</h4><p>Here’s how you can create a test for a simple GET request:</p><pre>void main() {<br>  final dio = Dio(); // Initialize Dio HTTP client<br>  final dioAdapter = DioAdapter(dio: dio);<br><br>group(&#39;API Tests&#39;, () {<br>    test(&#39;fetches data successfully&#39;, () async {<br>      // Simulate a successful response<br>      dioAdapter.onGet(<br>        &#39;/api/data&#39;,<br>        (server) =&gt; server.reply(200, {&#39;data&#39;: &#39;Test data&#39;}),<br>      );<br>      final response = await dio.get(&#39;/api/data&#39;);<br>      expect(response.statusCode, 200);<br>      expect(response.data[&#39;data&#39;], &#39;Test data&#39;);<br>    });<br>    test(&#39;handles error response&#39;, () async {<br>      dioAdapter.onGet(<br>        &#39;/api/data&#39;,<br>        (server) =&gt; server.reply(404, {&#39;error&#39;: &#39;Data not found&#39;}),<br>      );<br>      try {<br>        await dio.get(&#39;/api/data&#39;);<br>      } catch (e) {<br>        expect(e.response?.statusCode, 404);<br>      }<br>    });<br>  });<br>}</pre><p>In this example:</p><ul><li>We create a mock server response using dioAdapter.onGet.</li><li>The first test simulates a successful API call with a status code of 200.</li><li>The second test simulates an error response, handling the scenario where data is not found (404 error).</li></ul><h4>Example: Testing a POST Request</h4><p>For a POST request, testing follows a similar pattern:</p><pre>test(&#39;posts data successfully&#39;, () async {<br>  dioAdapter.onPost(<br>    &#39;/api/submit&#39;,<br>    (server) =&gt; server.reply(201, {&#39;success&#39;: true}),<br>  );<br><br>final response = await dio.post(&#39;/api/submit&#39;, data: {&#39;name&#39;: &#39;Test&#39;});<br>  expect(response.statusCode, 201);<br>  expect(response.data[&#39;success&#39;], true);<br>});</pre><p>In this case, we’re sending data to the server and verifying that the response contains a success status.</p><h3>Handling Query Parameters and Headers</h3><p>When working with APIs, headers and query parameters are often required. Testing these elements is just as important as testing the core request/response flow.</p><pre>test(&#39;handles headers and query parameters&#39;, () async {<br>  dioAdapter.onGet(<br>    &#39;/api/data&#39;,<br>    (server) =&gt; server.reply(200, {&#39;data&#39;: &#39;Success&#39;}),<br>    headers: {&#39;Authorization&#39;: &#39;Bearer token123&#39;},<br>    queryParameters: {&#39;id&#39;: &#39;123&#39;},<br>  );<br><br>final response = await dio.get(<br>    &#39;/api/data&#39;,<br>    options: Options(headers: {&#39;Authorization&#39;: &#39;Bearer token123&#39;}),<br>    queryParameters: {&#39;id&#39;: &#39;123&#39;},<br>  );<br>  expect(response.statusCode, 200);<br>});</pre><p>This example tests if the correct headers and query parameters are passed and that the server responds as expected.</p><h3>Mocking Different Types of Responses</h3><p>Another key aspect of testing HTTP requests is simulating various responses, including:</p><ul><li><strong>Timeouts</strong>: Simulate network delays and ensure that your app handles timeouts.</li><li><strong>Server errors</strong>: Test how your app reacts to 500-level server errors.</li></ul><p>Here’s an example of handling timeouts:</p><pre>test(&#39;handles timeouts gracefully&#39;, () async {<br>  dioAdapter.onGet(<br>    &#39;/api/data&#39;,<br>    (server) =&gt; server.throws(TimeoutException(&#39;Request timeout&#39;)),<br>  );<br><br>try {<br>    await dio.get(&#39;/api/data&#39;);<br>  } catch (e) {<br>    expect(e is TimeoutException, true);<br>  }<br>});</pre><h3>Conclusion</h3><p>Testing HTTP requests in Flutter is essential to ensure that your app is robust and handles API communication effectively. By mocking responses and simulating different scenarios (e.g., successful responses, errors, timeouts), you can ensure that your app behaves as expected in all situations.</p><p>If you want to dive deeper into managing HTTP requests in Flutter, consider checking out our other blogs on:</p><ul><li><a href="https://www.blup.in/blog/networking-http-in-flutter-sending-data-to-the-internet">Sending Data to the Server</a></li><li><a href="https://www.blup.in/blog/networking-http-in-flutter-update-data-over-the-internet">Updating Data Over the Internet</a></li><li><a href="https://www.blup.in/blog/networking-http-in-flutter-communicate-with-websockets">Communicating with WebSockets</a></li></ul><p>By mastering testing techniques, you can enhance the reliability and performance of your Flutter applications.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3992a357c80b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Top 5 Libraries for HTTP Networking in Flutter]]></title>
            <link>https://medium.com/@blup-tool/top-5-libraries-for-http-networking-in-flutter-41441d16e750?source=rss-7b954f846c94------2</link>
            <guid isPermaLink="false">https://medium.com/p/41441d16e750</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[flutter-app-development]]></category>
            <category><![CDATA[libraries]]></category>
            <category><![CDATA[app-development]]></category>
            <category><![CDATA[http-request]]></category>
            <dc:creator><![CDATA[Blup]]></dc:creator>
            <pubDate>Tue, 29 Oct 2024 04:32:10 GMT</pubDate>
            <atom:updated>2024-10-29T04:32:10.975Z</atom:updated>
            <content:encoded><![CDATA[<p>Explore the top libraries for managing HTTP networking in Flutter. Understand how libraries like http, Dio and Chopper simplify API integration.</p><figure><img alt="Top 5 Libraries for HTTP Networking in Flutter | Networking &amp; http in flutter" src="https://cdn-images-1.medium.com/max/1024/1*qJ4c4DXgOR7CYuRflabCxA.png" /><figcaption>Top 5 Libraries for HTTP Networking in Flutter</figcaption></figure><p>When building Flutter apps that interact with APIs, choosing the right HTTP networking library is key to efficient data management and smooth user experiences. Let’s dive into the top five libraries that simplify HTTP networking and API integration in Flutter:</p><h3>1. http: The Basic but Reliable Choice</h3><figure><img alt="http: The Basic but Reliable Choice" src="https://cdn-images-1.medium.com/max/1024/1*79oRnGh2JM7brGM_b4jd3w.png" /><figcaption>http: The Basic but Reliable Choice</figcaption></figure><p>The http package is one of the most basic yet powerful libraries for making network requests in Flutter. It&#39;s ideal for developers who need lightweight HTTP communication without complicated configurations. It supports essential methods like GET, POST, PUT, DELETE, and PATCH and is widely used for simple RESTful API interactions.</p><p><strong>Key Features</strong>:</p><ul><li>Simple and easy-to-use API.</li><li>Supports basic networking needs such as sending and receiving JSON.</li><li>Provides standard HTTP methods like GET, POST, etc.</li></ul><p>Sample usage:</p><pre>import &#39;package:http/http.dart&#39; as http;<br><br>Future&lt;void&gt; fetchData() async {<br>  final response = await http.get(Uri.parse(&#39;https://api.example.com/data&#39;));<br>  if (response.statusCode == 200) {<br>    print(&#39;Success: ${response.body}&#39;);<br>  } else {<br>    print(&#39;Error: ${response.statusCode}&#39;);<br>  }<br>}</pre><p>Read more about HTTP Networking in Flutter.</p><h3>2. Dio: The Feature-Rich Powerhouse</h3><figure><img alt="Dio: The Feature-Rich Powerhouse" src="https://cdn-images-1.medium.com/max/1024/1*NIcMHI2DXstmv_RRn5h4Rg.png" /><figcaption>Dio: The Feature-Rich Powerhouse</figcaption></figure><p>For more advanced networking needs, Dio is a robust choice. It provides features like interceptors, request cancellation, form data handling, file downloading, and more. Dio is highly configurable and versatile, making it suitable for complex projects where you need more control over HTTP requests.</p><p><strong>Key Features</strong>:</p><ul><li>Supports interceptors, global configuration, and form-data handling.</li><li>Automatically serializes and deserializes JSON data.</li><li>Provides advanced networking options like canceling requests, retry policies, and timeouts.</li></ul><p>Sample usage:</p><pre>import &#39;package:dio/dio.dart&#39;;<br><br>Future&lt;void&gt; fetchDataWithDio() async {<br>  var dio = Dio();<br>  var response = await dio.get(&#39;https://api.example.com/data&#39;);<br>  <br>  print(response.data);<br>}</pre><p><a href="https://www.blup.in/blog/networking-http-in-flutter-sending-data-to-the-internet">Explore how to send data using HTTP in Flutter</a>.</p><h3>3. Chopper: Retrofit-Style HTTP Client</h3><figure><img alt="Chopper: Retrofit-Style HTTP Client" src="https://cdn-images-1.medium.com/max/1024/1*6QQv7fbb2OZibbJyqmXrXQ.png" /><figcaption>Chopper: Retrofit-Style HTTP Client</figcaption></figure><p>Inspired by the popular Retrofit library in Android development, Chopper brings similar capabilities to Flutter. With Chopper, you can structure your API requests more cleanly using annotations, making your code more maintainable and readable. It&#39;s an excellent option if you prefer separating HTTP networking logic from the business logic.</p><p><strong>Key Features</strong>:</p><ul><li>Supports code generation for API request methods.</li><li>Clean and well-organized API call structure using annotations.</li><li>Handles serialization automatically.</li></ul><p>Sample usage:</p><pre>@ChopperApi(baseUrl: &#39;/data&#39;)<br>abstract class MyService extends ChopperService {<br>  @Get()<br>  Future&lt;Response&gt; fetchData();<br>}<br><br>final chopper = ChopperClient(<br>  services: [<br>    MyService.create(),<br>  ],<br>  converter: JsonConverter(),<br>);</pre><p><a href="https://www.blup.in/blog/networking-http-in-flutter-update-data-over-the-internet">Learn how to update data in Flutter</a>.</p><h3>4. Retrofit: Annotation-Based Networking Library</h3><figure><img alt="Retrofit: Annotation-Based Networking Library" src="https://cdn-images-1.medium.com/max/1024/1*HHjhUFHs9Es1MMY4GoK-Eg.png" /><figcaption>Retrofit: Annotation-Based Networking Library</figcaption></figure><p>Retrofit for Flutter offers an annotation-based approach to making HTTP requests, which reduces boilerplate code. Like Chopper, it also leverages code generation, making your API calls structured and modular. If you have experience with Retrofit in Android, this library will feel familiar.</p><p><strong>Key Features</strong>:</p><ul><li>Supports annotations for cleaner, more maintainable API calls.</li><li>Automatically generates the necessary networking code.</li><li>Integration with Dio for more advanced networking features.</li></ul><p>Sample usage:</p><pre>@RestApi(baseUrl: &quot;https://api.example.com&quot;)<br>abstract class RestClient {<br>  factory RestClient(Dio dio, {String baseUrl}) = _RestClient;<br><br>@GET(&quot;/data&quot;)<br>  Future&lt;List&lt;Data&gt;&gt; getData();<br>}</pre><p>Explore more advanced networking techniques in Flutter.</p><h3>5. GraphQL: Real-Time Data Management</h3><figure><img alt="GraphQL: Real-Time Data Management" src="https://cdn-images-1.medium.com/max/1024/1*s9mxBKHya1dWqABtWoo6kQ.png" /><figcaption>GraphQL: Real-Time Data Management</figcaption></figure><p>If you’re working with GraphQL APIs, the graphql_flutter package is your go-to solution. Unlike REST, GraphQL allows you to query only the data you need, making it more efficient in terms of bandwidth and performance. The graphql_flutter package also supports WebSocket subscriptions for real-time updates, making it a powerful choice for apps that require live data.</p><p><strong>Key Features</strong>:</p><ul><li>Optimized for GraphQL queries and mutations.</li><li>Supports WebSocket connections for real-time updates.</li><li>Efficient data fetching with minimal over-fetching.</li></ul><p>Sample usage:</p><pre>import &#39;package:graphql_flutter/graphql_flutter.dart&#39;;<br><br>final HttpLink httpLink = HttpLink(&#39;https://api.example.com/graphql&#39;);<br>final client = GraphQLClient(<br>  link: httpLink,<br>  cache: GraphQLCache(),<br>);<br>final queryOptions = QueryOptions(<br>  document: gql(r&#39;&#39;&#39;<br>    query GetData {<br>      data {<br>        id<br>        name<br>      }<br>    }<br>  &#39;&#39;&#39;),<br>);<br>final result = await client.query(queryOptions);<br>print(result.data);</pre><p><a href="https://www.blup.in/blog/networking-http-in-flutter-communicate-with-websockets">Discover real-time communication using WebSockets in Flutter</a>.</p><figure><img alt="My code compared to a library | Networking and http in flutter" src="https://cdn-images-1.medium.com/max/576/1*-sxG_FkX9MlV9uPv2fmQJQ.jpeg" /><figcaption>My code compared to a library | Networking and http in flutter</figcaption></figure><h3>Conclusion</h3><p>Choosing the right HTTP networking library in Flutter depends on the complexity of your project. For basic networking needs, the http package is sufficient. For more advanced scenarios requiring interceptors, request cancellation, or real-time data, libraries like Dio and GraphQL offer more powerful features.</p><p>By integrating the appropriate library into your app, you can ensure smooth API communication and optimal user experiences. To learn more about how to manage networking and API calls in Flutter, check out <a href="https://www.blup.in/blog/networking-and-http-in-flutter-an-overview">our detailed blog series</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=41441d16e750" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Manage HTTP Headers and Query Parameters in Flutter]]></title>
            <link>https://medium.com/@blup-tool/how-to-manage-http-headers-and-query-parameters-in-flutter-2a2381b3285f?source=rss-7b954f846c94------2</link>
            <guid isPermaLink="false">https://medium.com/p/2a2381b3285f</guid>
            <category><![CDATA[flutter-app-development]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[http-request]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[query]]></category>
            <dc:creator><![CDATA[Blup]]></dc:creator>
            <pubDate>Mon, 28 Oct 2024 04:32:23 GMT</pubDate>
            <atom:updated>2024-10-28T04:32:23.689Z</atom:updated>
            <content:encoded><![CDATA[<p>Learn how to add custom headers and query parameters to your HTTP requests in Flutter. Master the details of API integration and communication.</p><figure><img alt="Learn how to add custom headers and query parameters to your HTTP requests in Flutter. Master the details of API integration and communication." src="https://cdn-images-1.medium.com/max/1024/1*amhx7cQbCMtoS09Akyr_Hw.png" /><figcaption>Manage HTTP Headers and Query Parameters in Flutter</figcaption></figure><p>HTTP headers and query parameters are essential when communicating with APIs in Flutter. Headers provide meta-information about requests, while query parameters allow dynamic filtering and fetching of data. This guide will walk you through adding custom headers and query parameters in Flutter using the http package.</p><h3>Why Use Headers and Query Parameters?</h3><p>When interacting with REST APIs, it’s common to pass additional information along with requests. HTTP headers are typically used to include:</p><ul><li><strong>Authentication Tokens</strong>: Used for secure API access.</li><li><strong>Content-Type</strong>: Specifies the media type (e.g., JSON or XML).</li><li><strong>Custom Headers</strong>: App-specific data that the server expects.</li></ul><p>Query parameters, on the other hand, allow you to send key-value pairs in the request URL, such as search terms or filters.</p><p>Mastering the use of headers and query parameters enables more efficient communication between your Flutter app and APIs.</p><h3>Adding Headers to HTTP Requests in Flutter</h3><p>In Flutter, you can easily include custom HTTP headers when making API requests. Here’s how you can do it using the http package.</p><h4>Step 1: Add the http Package</h4><p>Start by adding the http package to your Flutter project. In your pubspec.yaml file, include the following dependency:</p><pre>dependencies:<br>  http: ^0.13.0</pre><p>Run flutter pub get to install the package.</p><h4>Step 2: Making HTTP Requests with Headers</h4><p>Let’s say you’re making a GET request and need to include an API key in the headers for authentication. You can add headers like this:</p><pre>import &#39;package:http/http.dart&#39; as http;<br><br>Future&lt;void&gt; fetchData() async {<br>  final response = await http.get(<br>    Uri.parse(&#39;https://api.example.com/data&#39;),<br>    headers: {<br>      &#39;Authorization&#39;: &#39;Bearer your_api_token_here&#39;,<br>      &#39;Accept&#39;: &#39;application/json&#39;,<br>    },<br>  );<br>  if (response.statusCode == 200) {<br>    print(&#39;Data fetched: ${response.body}&#39;);<br>  } else {<br>    print(&#39;Error: ${response.statusCode}&#39;);<br>  }<br>}</pre><p>In the above example, we add two headers: a Authorization token and an Accept header to specify that we expect the response in JSON format.</p><p>Learn more about handling HTTP requests in Flutter.</p><h4>Step 3: Sending POST Requests with Headers</h4><p>The process of sending POST requests is quite similar. Here’s an example:</p><pre>Future&lt;void&gt; sendData() async {<br>  final response = await http.post(<br>    Uri.parse(&#39;https://api.example.com/data&#39;),<br>    headers: {<br>      &#39;Authorization&#39;: &#39;Bearer your_api_token_here&#39;,<br>      &#39;Content-Type&#39;: &#39;application/json&#39;,<br>    },<br>    body: &#39;{&quot;key&quot;: &quot;value&quot;}&#39;,<br>  );<br><br>if (response.statusCode == 201) {<br>    print(&#39;Data sent successfully&#39;);<br>  } else {<br>    print(&#39;Failed to send data: ${response.statusCode}&#39;);<br>  }<br>}</pre><p>In this POST request, we specify that the Content-Type is application/json since we’re sending JSON data to the server.</p><p><a href="https://www.blup.in/blog/networking-http-in-flutter-sending-data-to-the-internet">Discover how to send data in Flutter</a>.</p><h3>Adding Query Parameters to HTTP Requests</h3><p>Query parameters allow you to add extra information to your API requests in the form of key-value pairs. These are added to the URL itself.</p><h4>Step 1: Constructing the URL with Query Parameters</h4><p>Let’s say you want to fetch data from an API with a search term and a filter. You can include query parameters like this:</p><pre>Future&lt;void&gt; fetchDataWithParams() async {<br>  final Uri uri = Uri.https(&#39;api.example.com&#39;, &#39;/data&#39;, {<br>    &#39;search&#39;: &#39;flutter&#39;,<br>    &#39;filter&#39;: &#39;popular&#39;,<br>  });<br><br>final response = await http.get(uri);<br>  if (response.statusCode == 200) {<br>    print(&#39;Data: ${response.body}&#39;);<br>  } else {<br>    print(&#39;Failed to fetch data&#39;);<br>  }<br>}</pre><p>In this example, the Uri.https method constructs the URL with query parameters, automatically encoding them into the final request.</p><p><a href="https://www.blup.in/blog/networking-http-in-flutter-fetching-data-from-the-internet-in-flutter">Check out how to fetch data from APIs in Flutter</a>.</p><h4>Combining Headers and Query Parameters</h4><p>You’ll often need to include headers and query parameters in a single request. Here’s an example of how to combine them:</p><pre>Future&lt;void&gt; fetchFilteredData() async {<br>  final Uri uri = Uri.https(&#39;api.example.com&#39;, &#39;/data&#39;, {<br>    &#39;search&#39;: &#39;flutter&#39;,<br>    &#39;sort&#39;: &#39;asc&#39;,<br>  });<br><br>final response = await http.get(<br>    uri,<br>    headers: {<br>      &#39;Authorization&#39;: &#39;Bearer your_api_token_here&#39;,<br>      &#39;Accept&#39;: &#39;application/json&#39;,<br>    },<br>  );<br>  if (response.statusCode == 200) {<br>    print(&#39;Filtered data: ${response.body}&#39;);<br>  } else {<br>    print(&#39;Error: ${response.statusCode}&#39;);<br>  }<br>}</pre><p>This example demonstrates how to add both query parameters and headers to a GET request.</p><h4>Best Practices for HTTP Headers and Query Parameters</h4><p>To effectively manage HTTP headers and query parameters in your Flutter app, keep the following tips in mind:</p><ol><li><strong>Security</strong>: Always protect sensitive data, such as API tokens, by keeping them secure and encrypted.</li><li><strong>Error Handling</strong>: Always handle errors for failed HTTP requests, such as missing headers or invalid query parameters.</li><li><strong>Encoding</strong>: Ensure that special characters in query parameters are properly encoded. Flutter’s Uri class handles this automatically.</li><li><strong>Modular Code</strong>: For easier maintenance, create a helper function that dynamically constructs headers and query parameters based on user input or app settings.</li></ol><p>For more on best practices, check out our guide on handling errors in HTTP requests.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*tE2FA3Wknic7dQFGFtIQmw.png" /></figure><h3>Conclusion</h3><p>Managing HTTP headers and query parameters is crucial for effective API communication in Flutter. Whether fetching data or sending sensitive information, understanding how to configure requests correctly ensures smooth API interactions and robust app functionality.</p><p>If you want to learn more about advanced networking techniques in Flutter, <a href="https://www.blup.in/blog/networking-and-http-in-flutter-an-overview">explore our blog</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2a2381b3285f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What’s the Difference Between HTTP and WebSockets in Flutter?]]></title>
            <link>https://medium.com/@blup-tool/whats-the-difference-between-http-and-websockets-in-flutter-ca1e6e00e795?source=rss-7b954f846c94------2</link>
            <guid isPermaLink="false">https://medium.com/p/ca1e6e00e795</guid>
            <category><![CDATA[websocket]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[http-request]]></category>
            <category><![CDATA[flutter-app-development]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Blup]]></dc:creator>
            <pubDate>Sun, 27 Oct 2024 03:32:06 GMT</pubDate>
            <atom:updated>2024-10-27T03:32:06.914Z</atom:updated>
            <content:encoded><![CDATA[<p>Understand the key differences between HTTP and WebSocket communication in Flutter and when to use each for building efficient apps.</p><figure><img alt="Understand the key differences between HTTP and WebSocket communication in Flutter and when to use each for building efficient apps." src="https://cdn-images-1.medium.com/max/1024/1*NG-bnlW_Rq55S5GmIOTXyw.png" /><figcaption>Difference Between HTTP and WebSockets in Flutter</figcaption></figure><p>In Flutter, both HTTP and WebSockets are used to communicate with servers, but they serve different purposes based on the application’s needs. Understanding when to use each is critical for building efficient apps.</p><h3>HTTP in Flutter</h3><p>HTTP is a request-response protocol, commonly used for simple, stateless communications. Each time data is needed, a new HTTP request is made, and the server responds. This makes it perfect for RESTful APIs, where the server only provides information when requested.</p><p>To get started with HTTP in Flutter, you can add the http package, making it easy to handle GET, POST, PUT, and DELETE requests. Here&#39;s a basic example of how you would make an HTTP GET request in Flutter:</p><pre>import &#39;package:http/http.dart&#39; as http;<br><br>Future&lt;void&gt; fetchData() async {<br>  final response = await http.get(Uri.parse(&#39;https://api.example.com/data&#39;));<br>  if (response.statusCode == 200) {<br>    print(response.body);<br>  } else {<br>    throw Exception(&#39;Failed to load data&#39;);<br>  }<br>}</pre><p><strong>Use Cases</strong>:</p><ul><li>Fetching data from RESTful APIs</li><li>Sending form submissions</li><li>Loading static resources</li></ul><p>To learn more about working with HTTP requests, check out our guide on Handling HTTP Requests in Flutter.</p><h3>WebSockets in Flutter</h3><p>Unlike HTTP, WebSockets provide a full-duplex connection, allowing real-time, continuous communication between the client and server. Once a WebSocket connection is established, both the client and server can send and receive data simultaneously, making it ideal for live applications like chat apps, real-time notifications, and online games.</p><p>To integrate WebSockets in Flutter, you’ll need the web_socket_channel package:</p><pre>import &#39;package:web_socket_channel/web_socket_channel.dart&#39;;<br><br>final channel = WebSocketChannel.connect(Uri.parse(&#39;wss://example.com/socket&#39;));<br>channel.sink.add(&#39;Hello, WebSocket!&#39;);<br>channel.stream.listen((message) {<br>  print(message);<br>});</pre><p><strong>Use Cases</strong>:</p><ul><li>Real-time data updates</li><li>Live chat applications</li><li>Multiplayer games</li></ul><p>For more details on integrating WebSockets, check out our <a href="https://www.blup.in/blog/networking-http-in-flutter-communicate-with-websockets">WebSockets guide</a>.</p><figure><img alt="Difference Between HTTP and WebSockets in Flutter | Networking and http in Flutter" src="https://cdn-images-1.medium.com/max/1024/1*T45wdNmcBrDlrekSB_ANcw.png" /><figcaption>Difference Between HTTP and WebSockets in Flutter</figcaption></figure><h3>Key Differences</h3><ol><li><strong>Connection</strong>:<br>HTTP is connectionless and stateless, meaning each request requires a new connection to the server. WebSockets, on the other hand, maintain an open connection, allowing for continuous two-way communication.</li><li><strong>Data Flow</strong>:<br>HTTP follows a request-response model, where the client requests data and the server responds. With WebSockets, both the client and server can send and receive messages at any time after the connection is established.</li><li><strong>Use Cases</strong>:<br>HTTP is typically used for traditional web services like REST APIs, where real-time communication isn’t essential. WebSockets shine when low-latency, bi-directional communication is needed, such as in live chats or real-time feeds.</li></ol><h3>When to Use HTTP vs. WebSockets in Flutter</h3><h3>Use HTTP If:</h3><ul><li>You only need to fetch data occasionally.</li><li>The communication can be stateless (e.g., fetching a product list or submitting a form).</li><li>You’re interacting with RESTful services.</li></ul><h3>Use WebSockets If:</h3><ul><li>Real-time data is required (e.g., live notifications or chat).</li><li>You need low-latency communication.</li><li>Continuous data exchange is necessary between the client and server.</li></ul><h3>Combining HTTP and WebSockets</h3><p>In some applications, both HTTP and WebSockets are needed. For instance, you could use HTTP to fetch initial data from the server and WebSockets to handle live updates in real time.</p><p>To explore how both protocols can be effectively used in one app, read our <a href="https://www.blup.in/blog/networking-and-http-in-flutter-an-overview">overview of Networking in Flutter</a>.</p><h3>Conclusion</h3><p>Both HTTP and WebSockets play significant roles in Flutter app development, but they cater to different use cases. HTTP is ideal for traditional, stateless communication, while WebSockets are best for real-time, two-way communication. By understanding their key differences, you can choose the right protocol to build more efficient and scalable Flutter applications.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca1e6e00e795" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Flutter and REST APIs: How to Manage HTTP Requests Efficiently]]></title>
            <link>https://medium.com/@blup-tool/flutter-and-rest-apis-how-to-manage-http-requests-efficiently-6ebcc9d025bd?source=rss-7b954f846c94------2</link>
            <guid isPermaLink="false">https://medium.com/p/6ebcc9d025bd</guid>
            <category><![CDATA[flutter-widget]]></category>
            <category><![CDATA[flutter-app-development]]></category>
            <category><![CDATA[http-request]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[rest-api]]></category>
            <dc:creator><![CDATA[Blup]]></dc:creator>
            <pubDate>Wed, 23 Oct 2024 04:32:12 GMT</pubDate>
            <atom:updated>2024-10-23T04:32:12.233Z</atom:updated>
            <content:encoded><![CDATA[<p>Learn how to build Flutter apps that efficiently interact with REST APIs. Manage GET, POST, PUT, and DELETE requests with practical examples.</p><figure><img alt="Learn how to build Flutter apps that efficiently interact with REST APIs. Manage GET, POST, PUT, and DELETE requests with practical examples." src="https://cdn-images-1.medium.com/max/1024/1*9_N7sAeNyMWhIFA3AnpcuQ.png" /><figcaption>Flutter and REST APIs</figcaption></figure><h3>Flutter and REST APIs: How to Manage HTTP Requests Efficiently</h3><p>When building mobile apps, interacting with REST APIs is crucial for fetching, posting, updating, or deleting data. In Flutter, managing these API requests can be simplified using the http package, which allows developers to easily work with GET, POST, PUT, and DELETE requests.</p><h4>Setting Up the http Package</h4><p>To start, add the http package to your pubspec.yaml file:</p><pre>dependencies:<br>  http: ^0.13.3</pre><p>After adding the package, run flutter pub get to install it. Then, import the package into your Dart files:</p><pre>import &#39;package:http/http.dart&#39; as http;</pre><h4>GET Requests: Fetching Data</h4><p>GET requests are commonly used to fetch data from a server. Here’s how you can send a GET request using the http package:</p><pre>Future&lt;void&gt; fetchData() async {<br>  final response = await http.get(<br>            Uri.parse(&#39;https://jsonplaceholder.typicode.com/posts&#39;));<br><br>if (response.statusCode == 200) {<br>    print(response.body);<br>  } else {<br>    throw Exception(&#39;Failed to load data&#39;);<br>  }<br>}</pre><p>In this example, the app sends a GET request to an API and prints the response body if the status code is 200 (OK). Otherwise, it throws an error. For more details on <strong>Fetching Data from APIs</strong>, read the <a href="https://www.blup.in/blog/networking-http-in-flutter-fetching-data-from-the-internet-in-flutter">full guide on GET requests</a>.</p><h4>POST Requests: Sending Data to the Server</h4><p>To send data to a server, use a POST request. This method allows you to submit forms, create new data entries, and more. Here’s an example:</p><pre>Future&lt;void&gt; sendData() async {<br>  final response = await http.post(<br>    Uri.parse(&#39;https://jsonplaceholder.typicode.com/posts&#39;),<br>    headers: &lt;String, String&gt;{<br>      &#39;Content-Type&#39;: &#39;application/json; charset=UTF-8&#39;,<br>    },<br>    body: &#39;{&quot;title&quot;: &quot;foo&quot;, &quot;body&quot;: &quot;bar&quot;, &quot;userId&quot;: 1}&#39;,<br>  );<br><br>if (response.statusCode == 201) {<br>    print(&#39;Data successfully posted&#39;);<br>  } else {<br>    throw Exception(&#39;Failed to post data&#39;);<br>  }<br>}</pre><p>This code sends JSON data to the server and checks if the response code is 201, indicating the data was successfully created. For a more detailed tutorial on <strong>Sending Data to the Server</strong>, check out this <a href="https://www.blup.in/blog/networking-http-in-flutter-sending-data-to-the-internet">comprehensive guide</a>.</p><h4>PUT and PATCH Requests: Updating Data</h4><p>Updating existing data requires a PUT or PATCH request. The difference is that PUT replaces the entire resource, while PATCH updates only certain fields.</p><h4>PUT Example:</h4><pre>Future&lt;void&gt; updateData() async {<br>  final response = await http.put(<br>    Uri.parse(&#39;https://jsonplaceholder.typicode.com/posts/1&#39;),<br>    headers: &lt;String, String&gt;{<br>      &#39;Content-Type&#39;: &#39;application/json; charset=UTF-8&#39;,<br>    },<br>    body: &#39;{&quot;title&quot;: &quot;updated title&quot;, &quot;body&quot;: &quot;updated body&quot;}&#39;,<br>  );<br><br>if (response.statusCode == 200) {<br>    print(&#39;Data successfully updated&#39;);<br>  } else {<br>    throw Exception(&#39;Failed to update data&#39;);<br>  }<br>}</pre><p>This method replaces the entire post with new data if the status code is 200. For more on <strong>Updating Data</strong>, explore the <a href="https://www.blup.in/blog/networking-http-in-flutter-update-data-over-the-internet">full guide</a>.</p><h4>DELETE Requests: Removing Data from the Server</h4><p>To remove data from a server, use the DELETE method. Here’s an example:</p><pre>Future&lt;void&gt; deleteData() async {<br>  final response = await http.delete(<br>    Uri.parse(&#39;https://jsonplaceholder.typicode.com/posts/1&#39;),<br>  );<br><br>if (response.statusCode == 200) {<br>    print(&#39;Data successfully deleted&#39;);<br>  } else {<br>    throw Exception(&#39;Failed to delete data&#39;);<br>  }<br>}</pre><p>This code deletes a post with ID 1 and checks if the response code is 200. For more on <strong>Deleting Data</strong>, visit the <a href="https://www.blup.in/blog/networking-http-in-flutter-deleting-data-from-the-internet-in-flutter">detailed guide</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W8PxxRLJbM4VSlYkYqLCcA.png" /></figure><h4>Handling Errors in HTTP Requests</h4><p>Handling errors is essential when working with network requests. Common issues include connectivity problems, server errors, and incorrect request formatting. Always check the status code and include error handling to improve user experience.</p><pre>try {<br>  final response = await http.get(Uri.parse(&#39;https://example.com/data&#39;));<br>  if (response.statusCode == 200) {<br>    // Process data<br>  } else {<br>    throw Exception(&#39;Failed to load data&#39;);<br>  }<br>} catch (error) {<br>  print(&#39;Error: $error&#39;);<br>}</pre><p>For more insights, refer to this in-depth guide on handling errors and exceptions.</p><h3>Conclusion</h3><p>Flutter’s http package simplifies managing REST API calls, enabling developers to efficiently perform GET, POST, PUT, PATCH, and DELETE requests. Whether you’re fetching data, sending user input, or updating server-side content, mastering these operations will significantly improve your Flutter development process.</p><p>To dive deeper into handling networking tasks in Flutter, explore <a href="https://www.blup.in/blog/networking-and-http-in-flutter-an-overview">Blup’s Networking Series</a> for more comprehensive guides and best practices.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6ebcc9d025bd" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>