<?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 Sahil Jalindar Mokal on Medium]]></title>
        <description><![CDATA[Stories by Sahil Jalindar Mokal on Medium]]></description>
        <link>https://medium.com/@sahilmokal?source=rss-207704cdd6ed------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*20dh1-vwULGI9DAr</url>
            <title>Stories by Sahil Jalindar Mokal on Medium</title>
            <link>https://medium.com/@sahilmokal?source=rss-207704cdd6ed------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 12:14:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sahilmokal/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[Flutter Wireless Debugging Setup (ADB over Wi-Fi) using Antigravity IDE]]></title>
            <link>https://medium.com/@sahilmokal/flutter-wireless-debugging-setup-adb-over-wi-fi-using-antigravity-ide-90f5bd75b627?source=rss-207704cdd6ed------2</link>
            <guid isPermaLink="false">https://medium.com/p/90f5bd75b627</guid>
            <category><![CDATA[adb]]></category>
            <category><![CDATA[antigravity-ide]]></category>
            <category><![CDATA[android-development]]></category>
            <category><![CDATA[debugging]]></category>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Sahil Jalindar Mokal]]></dc:creator>
            <pubDate>Mon, 03 Aug 2026 05:29:12 GMT</pubDate>
            <atom:updated>2026-08-03T05:29:12.783Z</atom:updated>
            <content:encoded><![CDATA[<p>This guide explains how to run a Flutter application directly on a physical Android device over Wi-Fi while using <strong>Antigravity IDE</strong>. Android Studio is only required for the Android SDK and Platform Tools; you can continue writing code entirely in Antigravity IDE.</p><h3>Prerequisites</h3><ul><li>Antigravity IDE</li><li>Flutter SDK installed</li><li>Android SDK &amp; Platform Tools installed (via Android Studio)</li><li>Android phone and laptop connected to the <strong>same Wi-Fi network</strong></li><li>USB cable (required only for the initial setup)</li></ul><h3>Step 1: Enable Developer Options</h3><p>On your Android device:</p><ol><li>Open <strong>Settings</strong>.</li><li>Go to <strong>About Phone</strong>.</li><li>Tap <strong>MIUI Version / HyperOS Version</strong> seven times.</li><li>Open <strong>Developer Options</strong>.</li><li>Enable <strong>USB Debugging</strong>.</li></ol><h3>Step 2: Connect Your Phone via USB</h3><p>Connect your Android phone to your laptop using a USB cable.</p><p>Verify that ADB detects the device:</p><pre>adb devices</pre><p>If a dialog appears on your phone asking to allow USB debugging, tap <strong>Allow</strong>.</p><h3>Step 3: Find Your Phone’s IP Address</h3><p>Navigate to:</p><p><strong>Settings → Wi-Fi → Connected Network → IP Address</strong></p><p>Example:</p><pre>192.168.1.105</pre><h3>Step 4: Enable ADB over TCP/IP</h3><p>Run:</p><pre>adb tcpip 5555</pre><p>Expected output:</p><pre>restarting in TCP mode port: 5555</pre><h3>Step 5: Disconnect the USB Cable</h3><p>After enabling TCP mode, safely disconnect the USB cable.</p><h3>Step 6: Connect to the Device over Wi-Fi</h3><p>Replace the IP address with your phone’s IP.</p><pre>adb connect 192.168.1.105:5555</pre><p>Expected output:</p><pre>connected to 192.168.1.105:5555</pre><h3>Step 7: Verify the Connection</h3><p>Run:</p><pre>adb devices</pre><p>Expected output:</p><pre>List of devices attached</pre><pre>192.168.1.105:5555 device</pre><h3>Step 8: Verify Flutter Detects the Device</h3><p>Run:</p><pre>flutter devices</pre><p>Example output:</p><pre>2 connected devices</pre><pre>Redmi 12 5G (mobile)<br>Chrome (web)</pre><h3>Step 9: Run Your Flutter Application</h3><p>From Antigravity IDE terminal:</p><pre>flutter run</pre><p>Or simply click the <strong>Run</strong> button inside Antigravity IDE.</p><p>The application will be installed and launched directly on your Android device over Wi-Fi.</p><h3>Future Connections</h3><p>As long as your laptop and phone are connected to the <strong>same Wi-Fi network</strong>, you only need to reconnect using:</p><pre>adb connect &lt;PHONE_IP&gt;:5555</pre><p>Example:</p><pre>adb connect 192.168.1.105:5555</pre><p>Then run:</p><pre>flutter run</pre><h3>Troubleshooting</h3><p>If Flutter cannot detect your device:</p><pre>adb kill-server<br>adb start-server<br>adb connect &lt;PHONE_IP&gt;:5555<br>flutter devices</pre><h3>Alternative Method (Recommended for Android 11+)</h3><p>If your device supports <strong>Wireless Debugging</strong>:</p><ol><li>Open <strong>Developer Options</strong>.</li><li>Enable <strong>Wireless Debugging</strong>.</li><li>Select <strong>Pair Device with Pairing Code</strong>.</li><li>Pair your laptop with your phone.</li><li>Run:</li></ol><pre>flutter devices<br>flutter run</pre><p>This method eliminates the need for a USB cable after pairing.</p><h3>Advantages</h3><ul><li>No USB cable required after initial setup.</li><li>Faster development workflow.</li><li>Works seamlessly with Antigravity IDE.</li><li>Supports Flutter Hot Reload and Hot Restart.</li><li>Ideal for daily Flutter development.</li></ul><p><strong>Happy Coding! 🚀</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=90f5bd75b627" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ How to Generate an .aab File in Flutter — And Why You Should]]></title>
            <link>https://medium.com/@sahilmokal/how-to-generate-an-aab-file-in-flutter-and-why-you-should-db261e089896?source=rss-207704cdd6ed------2</link>
            <guid isPermaLink="false">https://medium.com/p/db261e089896</guid>
            <dc:creator><![CDATA[Sahil Jalindar Mokal]]></dc:creator>
            <pubDate>Fri, 23 May 2025 04:51:50 GMT</pubDate>
            <atom:updated>2025-05-23T13:04:56.604Z</atom:updated>
            <content:encoded><![CDATA[<h3>🛠 How to Generate an .aab File in Flutter — And Why You Should</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oE_cKazoMgIWREchyp1RzA.png" /></figure><p>If you’re a Flutter developer preparing to release your app to the Play Store, you might wonder: <strong>What is an AAB file, and how do I generate it properly?</strong> This guide breaks it down.</p><h3>📦 What Is an AAB File?</h3><p>.aab stands for <strong>Android App Bundle</strong> — it&#39;s the publishing format required by the <strong>Google Play Store</strong>. Instead of uploading a heavy APK that contains binaries for all devices, an AAB allows Play Store to <strong>generate optimized APKs</strong> for each user&#39;s device.</p><h4>✅ Benefits of AAB:</h4><ul><li>Smaller download sizes.</li><li>Better performance on the user’s device.</li></ul><h3>🧰 Prerequisites</h3><p>Before building an AAB, make sure:</p><ul><li>You have a working Flutter project.</li><li>Flutter SDK is installed (flutter --version to check).</li><li>Android SDK and Java 17+ are configured.</li><li>You’ve created a <strong>release key</strong> (.jks) and key.properties file.</li></ul><h3>🔐 Step 1: Setup Your Release Keystore</h3><ol><li><strong>Place your </strong><strong>.jks file</strong> in android/app/, e.g. android/app/release-key.jks.</li><li>Create a file named key.properties in the android/ directory:</li></ol><pre>storePassword=your-store-password<br>keyPassword=your-key-password<br>keyAlias=your-key-alias<br>storeFile=app/release-key.jks</pre><h3>⚙️ Step 2: Configure build.gradle</h3><p>Edit android/app/build.gradle:</p><pre>def keyProperties = new Properties()<br>def keyPropertiesFile = rootProject.file(&quot;key.properties&quot;)<br>if (keyPropertiesFile.exists()) {<br>    keyProperties.load(new FileInputStream(keyPropertiesFile))<br>}</pre><pre>android {<br>    ...<br>    signingConfigs {<br>        release {<br>            keyAlias keyProperties[&#39;keyAlias&#39;]<br>            keyPassword keyProperties[&#39;keyPassword&#39;]<br>            storeFile file(keyProperties[&#39;storeFile&#39;])<br>            storePassword keyProperties[&#39;storePassword&#39;]<br>        }<br>    }</pre><pre>    buildTypes {<br>        release {<br>            signingConfig signingConfigs.release<br>            shrinkResources true<br>            minifyEnabled true<br>            proguardFiles getDefaultProguardFile(&#39;proguard-android-optimize.txt&#39;), &#39;proguard-rules.pro&#39;<br>        }<br>    }<br>}</pre><h3>🏗 Step 3: Build the AAB File</h3><p>In your terminal, run:</p><pre>flutter clean<br>flutter pub get<br>flutter build appbundle --release</pre><blockquote><em>💡 Optional: Add </em><em>--no-tree-shake-icons if your icons are disappearing unexpectedly.</em></blockquote><p>After the build, your .aab file will be located at:</p><pre>build/app/outputs/bundle/release/app-release.aab</pre><h3>🚀 Step 4: Upload to Google Play Console</h3><ol><li>Go to Google Play Console.</li><li>Create a new app or open your existing one.</li><li>Navigate to “<strong>Release &gt; Production</strong>”.</li><li>Upload your .aab file.</li><li>Complete your app listing and submit for review.</li></ol><h3>📝 Conclusion</h3><p>Using .aab instead of .apk is not just a suggestion — it’s the <strong>official requirement</strong> for publishing apps on the Play Store. It ensures your users get faster installs, smaller downloads, and better performance.</p><p>Generating an AAB in Flutter is a one-time setup. Once done, releasing becomes a breeze.</p><p>If you found this guide helpful, consider giving it a 👏 or sharing it with other Flutter devs!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=db261e089896" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building Excellence: Crafting Scalable and Maintainable Architecture in Flutter]]></title>
            <link>https://medium.com/@sahilmokal/building-excellence-crafting-scalable-and-maintainable-architecture-in-flutter-99709f679682?source=rss-207704cdd6ed------2</link>
            <guid isPermaLink="false">https://medium.com/p/99709f679682</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[state-management]]></category>
            <category><![CDATA[bloc]]></category>
            <dc:creator><![CDATA[Sahil Jalindar Mokal]]></dc:creator>
            <pubDate>Mon, 30 Dec 2024 05:04:57 GMT</pubDate>
            <atom:updated>2024-12-30T05:04:57.832Z</atom:updated>
            <content:encoded><![CDATA[<p>Good architecture is the backbone of any successful software project. In Flutter, where widgets reign supreme, the importance of scalable and maintainable architecture is amplified. In this blog, we’ll explore how to design excellent architecture for your Flutter projects.</p><h3>Why Architecture Matters in Flutter</h3><p>Flutter’s unique approach to app development, with its reactive framework and widget-based system, provides immense flexibility. However, without proper architecture, this flexibility can lead to:</p><ul><li><strong>Spaghetti code</strong> that is hard to debug or extend.</li><li><strong>Reduced testability</strong>, making it difficult to ensure app stability.</li><li><strong>Poor team collaboration</strong>, as developers struggle to understand the codebase.</li></ul><p>A well-thought-out architecture ensures scalability, maintainability, and testability, all while leveraging Flutter’s strengths.</p><h3>Key Principles of Excellent Architecture</h3><ol><li><strong>Separation of Concerns</strong>: Keep your UI, business logic, and data management separate.</li></ol><p><strong>2. Modularity</strong>: Break your app into independent, reusable components.</p><p><strong>3 . Testability</strong>: Ensure every app part can be tested in isolation.</p><p><strong>4 . Scalability</strong>: Structure your app to handle growth in features and complexity.</p><h3>Popular Flutter Architectural Patterns</h3><h3>1. MVVM (Model-View-ViewModel)</h3><ul><li><strong>Model</strong>: Represents the data and business logic.</li><li><strong>View</strong>: Displays data and captures user interactions.</li><li><strong>ViewModel</strong>: Bridges the View and Model, holding UI logic.</li></ul><p><strong>Use Case</strong>: Ideal for smaller apps with simple state management.</p><h3>2. BLoC (Business Logic Component)</h3><ul><li>Focuses on streams and reactive programming.</li><li>Uses events and states to manage business logic.</li></ul><p><strong>Use Case</strong>: Perfect for medium to large apps needing robust state management.</p><h3>3. Clean Architecture</h3><ul><li>Layers the app into Presentation, Domain, and Data.</li><li>Promotes separation of concerns and scalability.</li></ul><p><strong>Use Case</strong>: Suitable for enterprise-grade applications with complex requirements.</p><h3>Step-by-Step Guide: Building a Todo App</h3><h3>1. Project Structure</h3><p>Organize your Flutter project as follows:</p><pre>lib/<br>|-- ui/       # Widgets and screens<br>|-- bloc/     # State management logic<br>|-- models/   # Data models<br>|-- services/ # API or local data handling<br>|-- utils/    # Shared utilities</pre><h3>2. State Management with BLoC</h3><p>Example of a TodoBloc:</p><pre>import &#39;package:flutter_bloc/flutter_bloc.dart&#39;;<br><br>// Events<br>abstract class TodoEvent {}<br>class AddTodo extends TodoEvent {<br>  final String task;<br>  AddTodo(this.task);<br>}<br><br>// States<br>abstract class TodoState {}<br>class TodoListState extends TodoState {<br>  final List&lt;String&gt; todos;<br>  TodoListState(this.todos);<br>}<br><br>// BLoC<br>class TodoBloc extends Bloc&lt;TodoEvent, TodoState&gt; {<br>  List&lt;String&gt; _todos = [];<br><br>  TodoBloc() : super(TodoListState([])) {<br>    on&lt;AddTodo&gt;((event, emit) {<br>      _todos.add(event.task);<br>      emit(TodoListState(_todos));<br>    });<br>  }<br>}</pre><h3>3. Connecting UI to BLoC</h3><pre>import &#39;package:flutter/material.dart&#39;;<br>import &#39;package:flutter_bloc/flutter_bloc.dart&#39;;<br><br>void main() {<br>  runApp(MyApp());<br>}<br><br>class MyApp extends StatelessWidget {<br>  @override<br>  Widget build(BuildContext context) {<br>    return MaterialApp(<br>      home: BlocProvider(<br>        create: (_) =&gt; TodoBloc(),<br>        child: TodoScreen(),<br>      ),<br>    );<br>  }<br>}<br><br>class TodoScreen extends StatelessWidget {<br>  final TextEditingController _controller = TextEditingController();<br><br>  @override<br>  Widget build(BuildContext context) {<br>    return Scaffold(<br>      appBar: AppBar(title: Text(&#39;Todo App&#39;)),<br>      body: Column(<br>        children: [<br>          TextField(<br>            controller: _controller,<br>            decoration: InputDecoration(labelText: &#39;Enter a task&#39;),<br>          ),<br>          ElevatedButton(<br>            onPressed: () {<br>              context.read&lt;TodoBloc&gt;().add(AddTodo(_controller.text));<br>              _controller.clear();<br>            },<br>            child: Text(&#39;Add Todo&#39;),<br>          ),<br>          Expanded(<br>            child: BlocBuilder&lt;TodoBloc, TodoState&gt;(<br>              builder: (context, state) {<br>                if (state is TodoListState) {<br>                  return ListView.builder(<br>                    itemCount: state.todos.length,<br>                    itemBuilder: (context, index) =&gt; ListTile(<br>                      title: Text(state.todos[index]),<br>                    ),<br>                  );<br>                }<br>                return SizedBox();<br>              },<br>            ),<br>          ),<br>        ],<br>      ),<br>    );<br>  }<br>}</pre><h3>Common Pitfalls to Avoid</h3><ol><li><strong>Over-engineering</strong>: Don’t complicate small apps with unnecessary layers.</li><li><strong>Mixing UI and Business Logic</strong>: Keep these separate for clarity and testability.</li><li><strong>Neglecting Testability</strong>: Always ensure components can be independently tested.</li></ol><h3>Tools and Libraries to Enhance Architecture</h3><ul><li><strong>Provider</strong>: Lightweight state management.</li><li><strong>Riverpod</strong>: Modern and simple dependency injection.</li><li><strong>GetX</strong>: Easy-to-use state management and routing.</li><li><strong>Flutter Modular</strong>: Modular architecture for large projects.</li></ul><h3>Conclusion</h3><p>Crafting excellent architecture in Flutter is not just about following patterns; it’s about adapting principles to your app’s unique needs. With a focus on separation of concerns, modularity, and testability, you’ll build apps that are scalable, maintainable, and a joy to work on.</p><p>Start experimenting with these ideas in your next Flutter project and see the difference a solid architecture makes! If you have thoughts or questions, drop them in the comments below. Let’s build better apps together!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=99709f679682" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>