<?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 Shukla Savita on Medium]]></title>
        <description><![CDATA[Stories by Shukla Savita on Medium]]></description>
        <link>https://medium.com/@shukla.savita208?source=rss-42b5c4f19ec8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*lPRIEzFVCnMeHQ9T</url>
            <title>Stories by Shukla Savita on Medium</title>
            <link>https://medium.com/@shukla.savita208?source=rss-42b5c4f19ec8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 04:04:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shukla.savita208/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[How Flutter and Android Connect to Hardware]]></title>
            <link>https://medium.com/@shukla.savita208/how-flutter-and-android-connect-to-hardware-5aba5e7af506?source=rss-42b5c4f19ec8------2</link>
            <guid isPermaLink="false">https://medium.com/p/5aba5e7af506</guid>
            <dc:creator><![CDATA[Shukla Savita]]></dc:creator>
            <pubDate>Sat, 12 Sep 2026 20:36:48 GMT</pubDate>
            <atom:updated>2026-09-13T21:27:55.042Z</atom:updated>
            <content:encoded><![CDATA[<p>This article explains how an application communicates with the phone’s hardware, first using <strong>Android Native</strong>, and then using <strong>Flutter/Dart</strong>.</p><h3>1. Android Native</h3><p>An Android Native application is written in <strong>Kotlin or Java</strong>.</p><pre>App (Kotlin/Java)<br>        ↓<br>Android APIs<br>        ↓<br>Android Framework<br>        ↓<br>Android System<br>        ↓<br>Linux Kernel<br>        ↓<br>Drivers / HAL<br>        ↓<br>Hardware</pre><p>The application uses Android APIs to request system functionality, such as Camera, Location, Bluetooth, Sensors, and other device features.</p><h3>2. Flutter / Dart</h3><p>Flutter applications are written in <strong>Dart</strong>.</p><p>There are <strong>two different paths</strong> in a Flutter application.</p><h4>A. When Flutter is handling its own UI</h4><p>For normal Flutter UI, such as:</p><pre>Text(&quot;Hello&quot;)<br>Container()<br>Column()<br>Row()<br>Scaffold()</pre><p>Flutter does <strong>not</strong> send every UI operation through Kotlin/Java and Android APIs.</p><p>Instead, the flow is approximately:</p><pre>Dart Code<br>    ↓<br>Flutter Framework<br>    ↓<br>Flutter Engine<br>    ↓<br>Android Embedder<br>    ↓<br>Android OS<br>    ↓<br>Screen</pre><h4>Flutter Framework</h4><p>The Flutter Framework is the Dart-side framework that provides things such as:</p><ul><li>Widgets</li><li>State</li><li>setState()</li><li>BuildContext</li><li>Widget lifecycle</li><li>Layout and rendering logic</li></ul><p>For example:</p><pre>Dart<br> ↓<br>Flutter Framework<br> ↓<br>Widget<br> ↓<br>Element<br> ↓<br>RenderObject</pre><p>The framework builds and manages the Flutter UI.</p><h3>Flutter Engine</h3><p>The Flutter Engine is the lower-level native part of Flutter that runs the Dart code and provides the rendering/runtime infrastructure needed to display the Flutter UI.</p><p>In simple words:</p><blockquote><strong><em>Flutter Framework manages the Flutter UI, while the Flutter Engine provides the underlying runtime and rendering capabilities.</em></strong></blockquote><h3>Android Embedder</h3><p>The Android Embedder is the platform-specific layer that integrates the Flutter Engine with Android.</p><p>Embedder ka main kaam hai Engine ko ek <strong>surface</strong> provide karna jaha Engine apne pixels draw kar sake, aur Engine ko Android environment ke saath connect karna.</p><p>In simple words:</p><blockquote><strong><em>It helps the Flutter Engine run inside the Android application environment and interact with Android’s window, input, lifecycle, and platform facilities.</em></strong></blockquote><h3>3. When Flutter Needs Android-Specific Functionality</h3><p>If the Flutter application needs an Android-specific feature, such as accessing a particular Android API or native SDK, Flutter can communicate with the Android native layer through a <strong>Flutter Plugin or Platform Channel</strong>.</p><p>The flow is approximately:</p><pre>Flutter / Dart<br>      ↓<br>Flutter Plugin / Platform Channel<br>      ↓<br>Kotlin / Java<br>      ↓<br>Android APIs<br>      ↓<br>Android Framework<br>      ↓<br>Android System<br>      ↓<br>Linux Kernel<br>      ↓<br>Drivers / HAL<br>      ↓<br>Hardware</pre><p>For example, if a Flutter application needs to use an Android-specific camera feature:</p><pre>Dart<br> ↓<br>Flutter Plugin<br> ↓<br>Kotlin / Java<br> ↓<br>Android Camera API<br> ↓<br>Android System<br> ↓<br>Kernel<br> ↓<br>Driver / HAL<br> ↓<br>Camera Hardware</pre><p>So, <strong>Kotlin/Java is not required for every Flutter operation</strong>. It is used when Flutter needs to access platform-specific Android functionality.</p><h3>4. Android APIs</h3><p>Android APIs provide standard interfaces for accessing Android features such as:</p><ul><li>Camera</li><li>Location</li><li>Bluetooth</li><li>Media</li><li>Sensors</li><li>Storage</li></ul><p><strong>In simple words:</strong></p><blockquote><em>The application uses Android APIs to ask Android to perform a specific task.</em></blockquote><h3>5. Android Framework</h3><p>The Android Framework provides the APIs and system services that applications use to access Android functionality.</p><p><strong>In simple words:</strong></p><blockquote><em>It provides the Android functionality that applications can use.</em></blockquote><h3>6. Android System</h3><p>The Android System contains the operating-system components and services that manage the requested operations.</p><p><strong>In simple words:</strong></p><blockquote><em>It manages the operation requested by the application and coordinates with lower-level system components.</em></blockquote><h3>7. Linux Kernel</h3><p>The Linux Kernel is the core layer of the Android operating system.</p><p>It manages system resources and provides low-level interaction with hardware through mechanisms such as drivers.</p><p><strong>In simple words:</strong></p><blockquote><em>It is the low-level core that helps the operating system communicate with hardware.</em></blockquote><h3>8. Drivers / HAL</h3><p>Drivers and the Hardware Abstraction Layer (HAL) provide the lower-level interface between Android’s software stack and specific hardware components.</p><p><strong>In simple words:</strong></p><blockquote><em>They help Android communicate with specific hardware.</em></blockquote><h3>9. Hardware</h3><p>Hardware is the physical component of the phone, such as:</p><ul><li>Camera</li><li>Display</li><li>GPS</li><li>Speaker</li><li>Bluetooth chip</li><li>Sensors</li></ul><p><strong>In simple words:</strong></p><blockquote><em>This is where the actual physical operation takes place.</em></blockquote><h3>Important Note</h3><blockquote><strong><em>Not every Flutter operation goes through Kotlin/Java → Android APIs → Hardware.</em></strong></blockquote><p>For normal Flutter UI, Flutter uses its own <strong>Framework + Engine + Android integration</strong> to render the UI.</p><p>When Flutter needs <strong>Android-specific functionality</strong>, it can use a <strong>Plugin / Platform Channel</strong> to communicate with Kotlin/Java and then use Android APIs.</p><h3>In short</h3><p><strong>Normal Flutter UI:</strong></p><pre>Dart Code<br>    ↓<br>Flutter Framework (Widget → Element → RenderObject)<br>    ↓<br>Flutter Engine (Skia/Impeller — pixels khud generate karta hai)<br>    ↓<br>Android Embedder (surface deta hai jaha draw ho, input events pass karta hai)<br>    ↓<br>Android OS<br>    ↓<br>Screen<br></pre><p><strong><em>Yahan Kotlin/Java involve nahi hota UI banane mein</em></strong><em> — Flutter apni khud ki rendering karta hai. Embedder sirf &quot;canvas&quot; deta hai, MainActivity/FlutterActivity ke through.</em></p><h4><strong>Flutter accessing Android-specific functionality:</strong></h4><pre>Dart<br> ↓<br>Plugin / Platform Channel<br> ↓<br>Kotlin / Java<br> ↓<br>Android APIs<br> ↓<br>Android Framework<br> ↓<br>Android System<br> ↓<br>Linux Kernel<br> ↓<br>Drivers / HAL<br> ↓<br>Hardware</pre><p><strong>Native Android application:</strong></p><pre>Kotlin / Java<br> ↓<br>Android APIs<br> ↓<br>Android Framework<br> ↓<br>Android System<br> ↓<br>Linux Kernel<br> ↓<br>Drivers / HAL<br> ↓<br>Hardware</pre><p>The key difference is that <strong>Flutter has its own UI framework and rendering engine</strong>, whereas a native Android application uses Android’s native UI and platform framework directly.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5aba5e7af506" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[State Sharing in Flutter: From InheritedWidget to Bloc]]></title>
            <link>https://medium.com/@shukla.savita208/state-sharing-in-flutter-from-inheritedwidget-to-bloc-81f3ab294410?source=rss-42b5c4f19ec8------2</link>
            <guid isPermaLink="false">https://medium.com/p/81f3ab294410</guid>
            <dc:creator><![CDATA[Shukla Savita]]></dc:creator>
            <pubDate>Sat, 28 Mar 2026 05:10:42 GMT</pubDate>
            <atom:updated>2026-03-28T05:10:42.682Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>In Flutter, sharing data between different screens is a common requirement.</p><p>Many developers face issues like:<br>1. Data not accessible on next screen<br>2. “context not found” error<br>3. Bloc not working after navigation</p><p>To understand and solve these problems, we must start from the <strong>root concept — InheritedWidget</strong>.</p><h4>What is InheritedWidget?</h4><p>InheritedWidget is a special widget in Flutter that allows data to be shared with its child widgets.<br>👉 When data changes, dependent widgets rebuild automatically.</p><h4>Flutter Tree Concept (Very Important)</h4><p>Flutter UI is built using a <strong>widget tree</strong>.<br>👉 Data always flows <strong>top → down<br></strong>Parent → Child ✔<br>Sibling → ❌ No access</p><h4>Child vs Sibling (Core Concept)</h4><p>👉 A widget can access data only if it is part of the <strong>same subtree</strong></p><p>RelationAccessChild✔ <br>YesSibling❌ No</p><h4>How Subtree is Created</h4><p>Whenever you wrap a widget with InheritedWidget or BlocProvider,<br> everything inside it becomes part of its subtree.</p><h4>Example (Correct — Child Case)</h4><pre>BlocProvider(<br>  child: MaterialApp(<br>    home: HomePage(),<br>  ),<br>)</pre><p>👉 Tree:</p><pre>BlocProvider ✅<br>   ↓<br>MaterialApp<br>   ↓<br>Navigator<br>   ├── HomePage<br>   └── ProfilePage</pre><p>👉 ✔ Both screens can access data</p><h4>Example (Wrong — Sibling Case)</h4><pre>MaterialApp(<br>  home: BlocProvider(<br>    child: HomePage(),<br>  ),<br>)</pre><p>👉 Tree:</p><pre>MaterialApp<br>   ↓<br>Navigator<br>   ├── BlocProvider → HomePage<br>   └── ProfilePage ❌</pre><h4>Why ProfilePage cannot access data?</h4><p>ProfilePage cannot access the data because:</p><p>👉 <strong>Navigator is placed above the BlocProvider in the widget tree</strong></p><p>👉 When Navigator adds a new screen,<br> it always adds it under itself (in its route stack),<br> not inside the BlocProvider.</p><p>👉 So the new screen becomes <strong>outside the BlocProvider subtree</strong>,<br> and cannot access its data.</p><h4>How to fix this?</h4><p>👉 To ensure all screens can access the same data,<br> we must place the Navigator <strong>inside the BlocProvider</strong></p><h4>Correct approach</h4><pre>BlocProvider(<br>  create: (_) =&gt; MyBloc(),<br>  child: Navigator(<br>    onGenerateRoute: (_) =&gt;<br>        MaterialPageRoute(builder: (_) =&gt; HomePage()),<br>  ),<br>)</pre><p>👉 Now:</p><ul><li>Navigator is inside BlocProvider ✔</li><li>All new screens will be added inside BlocProvider ✔</li><li>ProfilePage can access data</li></ul><h4>Issue with Navigator (Most Important)</h4><p>When we use:</p><pre>Navigator.push(context, ...)</pre><p>👉 Flutter does NOT add the new screen as a child<br> 👉 It adds it inside the <strong>Navigator stack</strong></p><h4>Why This Creates Problem?</h4><p>👉 Because new screen may not be inside your InheritedWidget<br>👉 So:</p><p>❌ Data not found<br> ❌ Bloc not accessible</p><pre>Scope Problem (Real Scenario)<br><br>👉 Access depends on where you place your state provider<br><br>Placement Result<br>Above Navigator Global access ✔<br>Inside a screen Limited access ❌</pre><p>Global Access</p><pre>BlocProvider(<br>  create: (_) =&gt; MyBloc(),<br>  child: MaterialApp(<br>    home: HomePage(),<br>  ),<br>)</pre><p>Local Access</p><pre>BlocProvider(<br>  create: (_) =&gt; MyBloc(),<br>  child: Navigator(<br>    onGenerateRoute: (_) =&gt;<br>        MaterialPageRoute(builder: (_) =&gt; HomePage()),<br>  ),<br>)</pre><h4>Provider and Bloc</h4><p>👉 Provider internally uses <strong>InheritedWidget</strong><br> 👉 BlocProvider also uses <strong>InheritedWidget</strong></p><h4>Golden Rules (Must Remember)</h4><ul><li>Data flows <strong>top → down</strong></li><li>Only <strong>child widgets</strong> can access data</li><li>Navigator creates <strong>separate routes</strong></li><li>Bloc/Provider scope depends on <strong>placement</strong></li><li>Same Navigator = Same data</li><li>Different flow = Different bloc</li></ul><h4>One Line Rule</h4><p>👉 <strong>“If it is inside → it can access<br> If it is outside → it cannot”</strong></p><h4>Using AutoRoute (Local Navigation Access)</h4><p>AutoRoute is a navigation library that helps manage routes in a structured and scalable way.</p><p>It internally uses <strong>Navigator</strong>, but provides better control over routing.</p><h4>Local Navigation with AutoRoute</h4><p>👉 Just like manual Navigator, AutoRoute also follows the same rule:</p><blockquote><strong><em>Bloc access depends on where BlocProvider is placed in the widget tree</em></strong></blockquote><h4>Creating Local Navigation Scope</h4><p>If you want multiple screens to share the same Bloc,<br> you can create a <strong>local navigation flow</strong> using AutoRoute.</p><h4>Example</h4><pre>@RoutePage()<br>class MainWrapper extends StatelessWidget {<br>  const MainWrapper({super.key});</pre><pre>  @override<br>  Widget build(BuildContext context) {<br>    return BlocProvider(<br>      create: (_) =&gt; MyBloc(),<br>      child: const AutoRouter(),<br>    );<br>  }<br>}</pre><h4>Route Configuration</h4><pre>AutoRoute(<br>  page: MainWrapperRoute.page,<br>  children: [<br>    AutoRoute(page: HomeRoute.page),<br>    AutoRoute(page: ProfileRoute.page),<br>  ],<br>)</pre><h4>Tree Structure</h4><pre>MainWrapper<br>   ↓<br>BlocProvider ✅<br>   ↓<br>AutoRouter (Navigator)<br>   ├── HomePage<br>   └── ProfilePage</pre><p>👉 ✔ Home and Profile share the same Bloc<br> 👉 ✔ Both are part of same subtree</p><h4>Navigation Example</h4><pre>context.router.push(ProfileRoute());</pre><p>👉 ✔ ProfilePage will get the same Bloc instance</p><h4>❗ What Happens if You Place Bloc Below?</h4><pre>AutoRouter<br>   ├── BlocProvider → HomePage<br>   └── ProfilePage ❌</pre><p>👉 ❌ ProfilePage cannot access Bloc<br> 👉 ❌ Same issue as Navigator</p><h4>Key Point</h4><p>👉 AutoRoute does NOT change the rule</p><p>👉 It still follows:</p><ul><li>Widget tree</li><li>InheritedWidget</li><li>Navigator behavior</li></ul><h4>Golden Rule</h4><p>👉 <strong>“AutoRoute is just a wrapper over Navigator”<br></strong>👉 So:</p><blockquote><em>Bloc access depends on placement, not on navigation library</em></blockquote><h4>When to Use Local Navigation (AutoRoute)</h4><p>Use this approach when:</p><ul><li>Multiple screens share same data</li><li>You want feature-based architecture</li><li>You want clean separation of flows</li></ul><h4>Final Understanding</h4><ul><li>AutoRoute = navigation tool</li><li>BlocProvider = data scope</li><li>AutoRouter = Navigator</li></ul><p>👉 Together they create <strong>clean and scalable architecture</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=81f3ab294410" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How can use gRPC api in flutter]]></title>
            <link>https://medium.com/@shukla.savita208/how-can-use-grpc-api-in-flutter-c94d279eeeaa?source=rss-42b5c4f19ec8------2</link>
            <guid isPermaLink="false">https://medium.com/p/c94d279eeeaa</guid>
            <dc:creator><![CDATA[Shukla Savita]]></dc:creator>
            <pubDate>Sat, 14 Mar 2026 14:59:03 GMT</pubDate>
            <atom:updated>2026-04-09T04:43:17.247Z</atom:updated>
            <content:encoded><![CDATA[<p>REST: .proto nahi → model manually likho → JSON parse karo → resp.orderId<br>it is slow</p><p>gRPC: .proto likho → protoc run karo → model ready hai → resp.orderId <br>it is fast</p><h4>REST</h4><pre>dio.get(&quot;/user?id=123&quot;);</pre><h4>gRPC</h4><pre>client.getUser(GetUserRequest()..id = &quot;123&quot;);</pre><h3>Step 1️ Flutter project</h3><pre>flutter create grpc_demo<br>cd grpc_demo<br>or <br>you can create using ANDROID STUDIO / VS CODE </pre><h3>Step 2️ gRPC dependencies add</h3><p>pubspec.yaml</p><pre>dependencies:<br>  flutter:<br>    sdk: flutter<br>  grpc: ^3.2.0<br>  protobuf: ^3.1.0</pre><p>than run</p><pre>flutter pub get</pre><h3>Step 3️ Protobuf compiler install</h3><p>on Mac :</p><pre>brew install protobuf</pre><p>verify:</p><pre>protoc --version</pre><h3>Step 4️ Dart gRPC plugin install</h3><pre>dart pub global activate protoc_plugin</pre><p>PATH add :</p><pre>export PATH=&quot;$PATH:$HOME/.pub-cache/bin&quot;</pre><p>why need to install proto and protoc-gen-dart</p><pre>.proto → need a compiler for Dart code generate</pre><ul><li>protoc → compiler</li><li>protoc-gen-dart → Dart code generator</li></ul><h3>Step 5️ proto file put in project</h3><p>Example structure:</p><pre>grpc_demo/<br>   proto/<br>      poc.proto</pre><h3>Step 6️ Dart code generate</h3><p>Project root में run :</p><pre>protoc \<br>--dart_out=grpc:lib/generated \<br>-Iproto \<br>proto/poc.proto</pre><p>if do not have generated folder:</p><pre>mkdir -p lib/generated</pre><h3>Step 7️ Generated files</h3><p>need to create this file:</p><pre>lib/generated/<br>   poc.pb.dart<br>   poc.pbgrpc.dart<br>   poc.pbenum.dart</pre><h3>Step 8 gRPC client</h3><p>In this step, we create the gRPC client channel to communicate with the backend service.</p><p>Since <strong>Flutter Web</strong> and <strong>Flutter Mobile</strong> use different transport mechanisms, the channel creation also differs.</p><h3>For Flutter Web</h3><p>On the web, browsers do not support native HTTP/2 gRPC directly.<br>So we use the <strong>gRPC-Web XHR transport</strong>.</p><pre>  _WebLoginClient(String url)<br>    : _stub = loginClient(GrpcWebClientChannel.xhr(Uri.parse(url.trim())));</pre><p>GrpcWebClientChannel.xhr(...) — XHR transport<br>Here, GrpcWebClientChannel.xhr() creates a browser-compatible gRPC channel using XHR.</p><h3>For Flutter Mobile (Android/iOS)</h3><p>For mobile platforms, Flutter can use a native HTTP/2 connection.</p><pre>  final channel = ClientChannel(<br>      host,<br>      port: port,<br>      options: ChannelOptions(<br>        credentials: isSecure<br>            ? const ChannelCredentials.secure()<br>            : const ChannelCredentials.insecure(),<br>      ),<br>    );</pre><p>ClientChannel(host, port) — Native HTTP/2 gRPC</p><pre>class GrpcService {</pre><pre>  final channel = ClientChannel(<br>    &#39;localhost&#39;,<br>    port: 8000,<br>    options: const ChannelOptions(<br>      credentials: ChannelCredentials.insecure(),<br>    ),<br>  );</pre><pre>  late PocServiceClient client = PocServiceClient(channel);</pre><pre>  Future getUser() async {<br>    final request = GetUserRequest();<br>    return await client.getUser(request);<br>  }<br>}</pre><pre>class ApiDataRes(){<br>final grpcService = GrpcService();<br>void fetchData() async {<br>  final response = await grpcService.getUser();<br>  print(response);<br>}<br>}</pre><h4>Why Different Channels?</h4><p>The reason for using separate channels is platform compatibility:</p><p><strong>Web → XHR-based gRPC-Web transport<br>Mobile → Native HTTP/2 gRPC transport</strong></p><p>This ensures the Flutter application can communicate efficiently with the backend on every platform.</p><h3>Step 10 Flutter run</h3><pre>flutter run</pre><p>or web:</p><pre>flutter run -d chrome</pre><h3>full Flow</h3><pre>Backend team<br>      │<br>      │ poc.proto<br>      ▼<br>Flutter developer<br>      │<br>      │ protoc + protoc-gen-dart<br>      ▼<br>Generated Dart gRPC code<br>      │<br>      ▼<br>Flutter app → gRPC server</pre><h3>For Flutter developer shortcut summary</h3><p>1️⃣ protoc install<br> 2️⃣ protoc-gen-dart install<br> 3️⃣ .proto project में add<br> 4️⃣ Dart code generate<br> 5️⃣ Flutter से API call</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*116Ol6aoB4p4993ASEgu-w.png" /></figure><h3>gRPC have some diffrent for web/browser and mobile/destop</h3><pre> Platform Check (conditional import)                        │<br>│         ↓                    ↓                               │<br>│   [Web/Browser]         [Mobile/Desktop]                     │<br>│  GrpcWebClientChannel    ClientChannel                       │<br>│   (HTTP/1.1 XHR)         (HTTP/2 TCP)  </pre><h3>Core Difference — Table</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/1*Yn6FSl7pSSJYCrB8LCwPLQ.png" /></figure><h4>Server must support both protocols:</h4><pre>connectrpc / Envoy proxy<br>├── gRPC-Web ← Browser requests (HTTP/1.1)<br>└── Native gRPC ← Mobile requests (HTTP/2)</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c94d279eeeaa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Complete Strapi Tutorial: From Setup to Deployment and API Integration]]></title>
            <link>https://medium.com/@shukla.savita208/complete-strapi-tutorial-from-setup-to-deployment-and-api-integration-3cadb5c3eb96?source=rss-42b5c4f19ec8------2</link>
            <guid isPermaLink="false">https://medium.com/p/3cadb5c3eb96</guid>
            <category><![CDATA[complete-strapi-tutorial]]></category>
            <dc:creator><![CDATA[Shukla Savita]]></dc:creator>
            <pubDate>Sat, 21 Feb 2026 09:24:20 GMT</pubDate>
            <atom:updated>2026-02-21T09:33:03.882Z</atom:updated>
            <content:encoded><![CDATA[<p>In this artical i will cover <br>What is Strapi<br>How to Run Dashboard <br>How to Deploy It <br>How to Use APIs in flutter</p><h3>What is Strapi?</h3><p>Strapi is a <strong>Headless CMS</strong> that helps developers create a backend easily.<br>With Strapi, you can:</p><ul><li>Create a database</li><li>Generate APIs automatically</li><li>Manage data using an admin dashboard</li></ul><p>Strapi is built on <strong>Node.js</strong> and it can automatically generate REST and GraphQL APIs.</p><h3>2. How does the Strapi Dashboard run?</h3><p>The Strapi dashboard is a web admin panel that runs on a backend server.</p><h3>Steps to run Strapi locally:</h3><ol><li>Install Node.js</li><li>Run this command in terminal:</li></ol><pre>npx create-strapi-app backend - quickstart</pre><ol><li>The server will start and open in browser:</li></ol><pre>http://localhost:1337/admin</pre><ol><li>Create your admin account and start managing content.</li></ol><h3>3. How to deploy Strapi?</h3><p>When Strapi runs locally, only you can access it.<br>To make it available on the internet, you need to deploy it.</p><h4>Deployment steps:</h4><ol><li>Push your Strapi project to GitHub</li><li>Choose a hosting platform (Render, AWS, Railway, etc.)</li><li>Create a web service</li><li>Set build command:</li></ol><pre>npm install &amp;&amp; npm run build</pre><ol><li>Set start command:</li></ol><pre>npm run start</pre><ol><li>Add environment variables (APP_KEYS, JWT secret, etc.)</li></ol><p>After deployment, you will get a public URL:</p><p><a href="https://your-backend-url.com/">https://your-backend-url.com</a></p><p>Admin panel will be available at</p><h3>4. How to use Strapi APIs?</h3><p>Strapi automatically generates APIs.</p><p>Example:</p><p>GET <a href="https://your-backend-url.com/api/articles">https://your-backend-url.com/api/articles</a></p><p>You can call this API from:</p><ul><li>Flutter apps</li><li>Websites</li><li>Mobile applications</li></ul><p>Example in Flutter:</p><pre>final response = await http.get(<br>Uri.parse(&quot;https://your-backend-url.com/api/articles&quot;),<br>);</pre><p>You will receive JSON data which can be shown in your UI.</p><h3>5. Real-world Strapi Workflow (How Teams Actually Use It)</h3><p>In real projects, Strapi is used by two types of people:</p><h3>Developers use Content-Type Builder</h3><p>Developers create the data structure here.</p><h4>Content-Type Builder kya hota hai?</h4><p>Content-Type Builder Strapi ka feature hai jisse hum database structure banate hain.</p><p>Yaha hum define karte hain:</p><ul><li>Fields (title, description, image, etc.)</li><li>Field types (Text, Number, Date, Media)</li><li>Relations between data</li></ul><p>Example:</p><p>Agar tum blog banana chaho to:</p><ul><li>Title → Text</li><li>Content → Rich text</li><li>Image → Media</li></ul><p>Save karte hi Strapi automatically:</p><ul><li>Database table bana deta hai</li><li>API generate kar deta hai</li></ul><p>Isliye Strapi me database design coding ke bina hota hai.</p><h3>Content team uses Content Manager</h3><p>After the structure is ready, non-technical users add content here.</p><p>Steps:</p><ol><li>Open <strong>Content Manager</strong></li><li>Select your collection (like Articles / Helpbase)</li><li>Click <strong>Create new entry</strong></li><li>Fill the form (title, description, etc.)</li><li>Click <strong>Publish</strong></li></ol><p>Now the content becomes live.</p><h4>🔁 What happens after publishing?</h4><ol><li>Content is saved in database</li><li>Strapi updates API automatically</li><li>Flutter app calls the API</li><li>Latest content appears in the app instantly</li></ol><p>That’s why Strapi works as:</p><p>👉 Backend<br>👉 CMS (content editor)<br>👉 API generator</p><p>All in one system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wkhK2p8vG751x52AolBghw.png" /></figure><h3>6. Real-world Strapi workflow</h3><ol><li>Write content in Strapi dashboard</li><li>Publish the content</li><li>API updates automatically</li><li>Flutter app calls the API</li><li>Users see updated data instantly</li></ol><p>That is why Strapi is called a <strong>Backend + CMS + API generator</strong>.</p><h3>Conclusion</h3><p>Strapi is a powerful tool that helps developers quickly build backends and APIs.<br>It allows teams to manage content easily without writing complex backend code.<br>It is widely used for modern apps that need flexible APIs and content management.</p><p>Live Strapi Admin:<br><a href="https://strapi-backend-co3k.onrender.com/admin">https://strapi-backend-co3k.onrender.com/admin</a></p><p>GitHub Repository:<br><a href="https://github.com/savitashukla/strapi_backend">https://github.com/savitashukla/strapi_backend</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3cadb5c3eb96" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Flutter API Caching Deep Dive: CDN, Typesense , Dio Cache and  Alice Interceptor]]></title>
            <link>https://medium.com/@shukla.savita208/flutter-api-caching-deep-dive-cdn-typesense-dio-cache-and-alice-interceptor-f2cf6116158a?source=rss-42b5c4f19ec8------2</link>
            <guid isPermaLink="false">https://medium.com/p/f2cf6116158a</guid>
            <dc:creator><![CDATA[Shukla Savita]]></dc:creator>
            <pubDate>Sun, 08 Feb 2026 18:51:26 GMT</pubDate>
            <atom:updated>2026-02-08T18:51:26.254Z</atom:updated>
            <content:encoded><![CDATA[<h3>Flutter API Caching Deep Dive: CDN, Typesense , Dio Cache and Alice Interceptor</h3><p>In a Flutter app, performance is not a luxury — it is a requirement.<br> When an app feels slow, search results are delayed, or APIs are called again and again, the root cause is often a <strong>misunderstanding of caching</strong>.</p><p>In this article, we will understand a <strong>real production scenario</strong> and learn:</p><ul><li>What CDN is and where it works</li><li>What role Typesense plays in search</li><li>How Dio Cache Interceptor works in Flutter</li><li>How to debug cache vs network using Alice Inspector</li></ul><p>👉 This article covers both <strong>theory and real debugging experience</strong>.</p><p><strong>1. CDN (Content Delivery Network) — Server-Side Cache</strong></p><p><strong>What is a CDN?</strong></p><p>A CDN is a <strong>server-side cache</strong> that stores data on servers close to the user (called edge servers).</p><p><strong>What does a CDN cache?</strong></p><ul><li>Images</li><li>Static API responses</li><li>Sometimes search results</li></ul><p><strong>Request flow</strong></p><pre>App → CDN (nearest location) → Origin Server</pre><ul><li>Faster API responses</li><li>Reduced server load</li><li>Better experience for global users</li></ul><p><strong>Important points</strong></p><ul><li>❌ CDN does NOT store data inside the app</li><li>❌ Closing the app does NOT affect CDN</li></ul><p>👉 CDN is a <strong>backend optimization</strong>.</p><p><strong>2. Typesense — Search Engine (Not a Cache)</strong></p><p><strong>What is Typesense?</strong></p><p>Typesense is a <strong>search engine</strong>, not a cache.</p><p><strong>What does Typesense do?</strong></p><ul><li>Fast search</li><li>Typo-tolerant results</li><li>Ranking and filtering</li></ul><p><strong>When is it used?</strong></p><ul><li>Scrip search</li><li>Product search</li><li>Large datasets</li></ul><p><strong>Common mistake</strong></p><ul><li>❌ “Typesense is a cache”</li><li>✅ Typesense is a <strong>search engine</strong></li></ul><p>👉 Typesense <strong>indexes data</strong>, it does not cache API responses.</p><p><strong>3. Dio Cache Interceptor — Client-Side Cache (Flutter)</strong></p><p>Alice clearly shows cache behavior for GET requests because only GET requests are cacheable by HTTP standards.</p><p><strong>What does Dio Cache do?</strong></p><p>Dio Cache Interceptor stores API responses <strong>inside the mobile app</strong>.</p><p><strong>Where is data stored?</strong></p><ul><li>Memory</li><li>Disk (Hive / file system)</li></ul><p><strong>Request flow</strong></p><pre>App<br> ↓<br>Dio Cache check<br> ↓ (cache miss)<br>Network → CDN → Server<br> ↓<br>Response saved in cache</pre><p><strong>Benefits of Dio Cache</strong></p><ul><li>Same API is not called repeatedly</li><li>Offline support</li><li>App feels faster</li></ul><p><strong>4. CachePolicy Explained (Most Confusing Part)</strong></p><p><strong>CachePolicy.request</strong></p><ul><li>Request goes to the server</li><li>Server validates the data</li><li>If data is unchanged:</li><li><strong>0 bytes downloaded</strong></li><li>Data is served from cache</li></ul><p>👉 Network request is visible, but data comes from cache.</p><p><strong>CachePolicy.forceCache</strong></p><ul><li>If cache exists → no network call</li><li>If cache does not exist → error</li></ul><p>👉 Useful for testing, <strong>risky for production</strong>.</p><p><strong>5. Alice Interceptor — Cache vs Network Debugging</strong></p><p>Alice only shows <strong>requests and responses</strong>.<br> It does not directly say “cache” or “network”.</p><p><strong>How to identify cache?</strong></p><p><strong>Rule #1: Response Size</strong></p><p><strong>0 B / 48.64 KB → CACHE HIT</strong></p><p><strong>48.64 KB / 48.64 KB → NETWORK HIT</strong></p><p><strong>Rule #2: Status Code</strong></p><ul><li>304 → Cache is valid</li><li>200 + 0 B → CDN + cache validation</li><li>200 + full size → Fresh network data</li></ul><p><strong>Big myth</strong></p><ul><li>❌ “If request appears in Alice, it means network hit”</li><li>✅ Request visibility ≠ data download</li></ul><p><strong>6. How CDN and Dio Cache Work Together</strong></p><p>They do <strong>not connect directly</strong>, but they work in a pipeline.</p><pre>App<br> ↓<br>Dio Cache (local)<br> ↓<br>CDN (server edge)<br> ↓<br>Origin Server</pre><p><strong>Result</strong></p><ul><li>Dio Cache → faster app</li><li>CDN → faster server responses</li><li>Together → better performance</li></ul><p><strong>7. Real Production Observation</strong></p><p>In my case:</p><ul><li>The same API was triggered many times</li><li>Alice showed the request every time</li><li>But response size was 0 B</li></ul><p><strong>Conclusion</strong></p><ul><li>API request was sent (for validation)</li><li>Data was served from cache</li><li>CDN was involved</li></ul><p>👉 This was <strong>expected and correct behavior</strong>, not a bug.</p><p><strong>8. Common Mistakes to Avoid</strong></p><ul><li>❌ Treating 304 as an error</li><li>❌ Mixing up CDN and Dio Cache</li><li>❌ Calling Typesense a cache</li><li>❌ Looking only at status codes in Alice</li></ul><p><strong>Final Takeaways</strong></p><ul><li><strong>CDN</strong> → Server-side optimization</li><li><strong>Typesense</strong> → Search engine, not cache</li><li><strong>Dio Cache</strong> → Client-side caching</li><li><strong>Alice</strong> → Debugging tool, not a cache indicator</li></ul><p><strong>Golden rule</strong></p><p><strong>0 bytes downloaded = cache is working</strong></p><p><strong>Conclusion</strong></p><p>Caching in Flutter is not just about adding a package.<br> Understanding <strong>behavior</strong> is far more important.</p><p>If you understand:</p><ul><li>The role of cache</li><li>CDN behavior</li><li>Alice output</li></ul><p>Then <strong>90% of performance issues solve themselves</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f2cf6116158a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How AI Works And How I Used Gemini LLM in a Flutter]]></title>
            <link>https://medium.com/@shukla.savita208/how-ai-works-and-how-i-used-gemini-llm-in-a-flutter-d18a235a50b7?source=rss-42b5c4f19ec8------2</link>
            <guid isPermaLink="false">https://medium.com/p/d18a235a50b7</guid>
            <dc:creator><![CDATA[Shukla Savita]]></dc:creator>
            <pubDate>Sun, 23 Nov 2025 20:19:04 GMT</pubDate>
            <atom:updated>2025-12-14T15:36:45.454Z</atom:updated>
            <content:encoded><![CDATA[<p>Most people use AI every day, but very few understand what happens inside an AI model like Gemini or GPT.</p><p>In this article, I will explain:</p><ul><li>What AI really means</li><li>What LLMs (Large Language Models) do</li><li>How Gemini works internally</li><li>And how I used these concepts to build a Gemini-powered chat app in Flutter</li></ul><h3><strong>AI (Artificial Intelligence)</strong></h3><p>AI is like school it have diffrent catergory<br> AI = Machines ko intelligent banana.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pK-ukaYIrXQ9lWJlSYm4lA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*adR7nBEzNbya44v57nolHw.png" /></figure><h4><strong>AI Kaise Work Karta Hai?</strong></h4><p>AI ki working ka exact pipeline:</p><p><strong>Universal AI Workflow</strong></p><ol><li><strong>Data Collection / Input</strong></li></ol><ul><li>Text → sentences, documents</li><li>Images / Video → pixels, frames</li><li>Sensor / Robotics → position, speed, force, signal</li></ul><p><strong>2 . Preprocessing / Feature Extraction</strong></p><ul><li>Text → Tokenization (words → tokens)</li><li>Images → Pixels → Features (edges, shapes, embeddings)</li><li>Sensor → Normalize / vectorize signals</li></ul><p><strong>3. Embeddings / Representation</strong></p><ul><li>Sabhi input ko <strong>vectors / numbers</strong> me convert karte hain, taaki neural network samajh sake</li></ul><p><strong>4. Inference Engine (Neural Network / Model)</strong></p><ul><li>Deep Learning / ML model input vectors ko process karta hai</li><li>Patterns ko detect karta hai aur decision ya prediction nikalta hai</li></ul><p><strong>5. Decoding / Action / Output</strong></p><ul><li>Text → Next words / generated sentences</li><li>Image → Classification, detection, segmentation</li><li>Robotics → Control signals, movement, decision</li></ul><p><strong>6. Feedback / Learning (Optional)</strong></p><ul><li>• Model apni accuracy improve karne ke liye continuously learn karta hai (reinforcement learning / fine-tuning)</li></ul><p><strong>Key Point:<br>Vectors (numbers) + Neural Networks</strong> are <strong>common for all AI</strong>.<br>Difference sirf <strong>input type</strong> aur <strong>output type</strong> me hai.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*la7nfhGKujwxhx_WjBw4NA.png" /></figure><h3>What Happens Inside an LLM Like Gemini OR GPT?</h3><p><strong>What is LLM (Large Language Model)?</strong><br> An LLM is an AI model that understands and generates language (text).<br> It can write like a human, answer questions, and have conversations.<br> <strong>Examples:</strong> ChatGPT, Gemini, Claude, Sonnet, Bard.</p><p><strong>LLM = Combination of Deep Learning + NLP</strong></p><ul><li><strong>Deep Learning / Data Processing (DP):</strong> Uses neural networks and algorithms so the machine can learn patterns and knowledge.</li><li><strong>NLP (Natural Language Processing):</strong> Helps the machine understand and generate human language.<br>So, <strong>LLM = NLP + Deep Learning<br>NLP → Understanding language</strong><br> <strong>Deep Learning → Learning patterns and producing text</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FvjDNlOhdOgxVhcMBeOOfA.png" /></figure><p>When we send a message like:<br><strong>“Hi, how are you?”</strong></p><p>Gemini does much more than just return text. Internally, it follows four major AI steps:</p><h3>1. Tokenization — Text is broken into small pieces</h3><p>AI models cannot read full sentences directly.<br>So Gemini converts your text into <strong>tokens</strong>.</p><p><strong>Token = chhoti chhoti pieces of text.</strong><br>For example:</p><pre>&quot;How are you?&quot; → [&quot;How&quot;, &quot;are&quot;, &quot;you&quot;, &quot;?&quot;]</pre><p><strong>Why?</strong><br>Because models understand patterns through tokens, not words.</p><p>✔ When you send a prompt from Flutter, tokenization automatically happens inside Gemini.<br>You don’t have to write any code for it — Gemini handles it internally.</p><h3>2. Embeddings — Text meaning is converted into vectors</h3><p>After tokenization, Gemini converts every token into a vector:</p><pre>[&quot;How&quot;] → [0.23, 1.15, -0.88, ...]</pre><p>This is called an <strong>embedding</strong>.</p><p>Embeddings help the model understand:</p><ul><li>Context</li><li>Relationship between words</li><li>Meaning of the sentence</li><li>Intent of the user</li></ul><p>✔ In your Flutter chat app, embeddings are used internally to understand what the user wants.</p><p>You don’t see this process — but it happens automatically.</p><h3>3. Inference — AI predicts the best possible answer</h3><p>After embeddings, the model performs <strong>inference</strong>.</p><p>This means:</p><ul><li>Gemini reads your message</li><li>Understands the meaning</li><li>Predicts the next best possible words</li><li>Generates a reply</li></ul><p>For example:</p><p>User: <strong>“What is AI?”</strong><br>Model inference:<br>→ [“AI”, “is”, “the”, “ability”, “of”, “machines”, “to”, “learn”, …]</p><p>This is where the real “intelligence” happens.</p><p>✔ In your Flutter app, every time you call the Gemini API, you are triggering an inference request.</p><h3>4. Prompt Engineering — Guiding the AI to answer correctly</h3><p>Prompt Engineering means sending better instructions.</p><p>Example prompts:</p><p>❌ Bad Prompt:</p><pre>Explain.</pre><p>✔ Good Prompt:</p><pre>Explain AI in simple words with examples.</pre><p>Gemini follows your prompt structure to generate useful results.</p><p>✔ In your Flutter chat app, every message typed by the user becomes a “prompt”.<br>This is the simplest form of <strong>prompt engineering</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k1JZxAPeQ6q1_t5mMpwE1w.png" /></figure><h3>What is RAG (Retrieval-Augmented Generation)</h3><p><strong>Retrieval</strong> → Information dhoondhna<br> <strong>Generation</strong> → AI se answer banana<br><strong>LLMs (like Gemini or GPT) have limited knowledge because they only know what they learned during training.</strong></p><p>So if you want the model to answer questions using <strong>latest information</strong>, <strong>your private documents</strong>, or <strong>company-specific data</strong>,<br> then you need to use <strong>RAG (Retrieval-Augmented Generation)</strong>.</p><p><strong>Why do we need RAG?</strong></p><p>LLM <em>only</em> knows what it was trained on.<br> 💡 But <strong>LLM training 1–2 saal purani hoti hai</strong>.</p><p><strong>If I ask: <br><em>What is the updated leave policy in my company?</em> the LLM will not know the answer, because it does not have access to my company’s latest data.<br></strong> That’s why we need to use <strong>RAG</strong></p><p><strong>RAG LLM Model(gemini , GPT) ko real-time, updated, external data deta hai.</strong></p><h3><strong>How RAG Works (Simple Explanation)</strong></h3><p><strong>Step 1 — User Question</strong></p><p>Example:<br> <strong>“How many leaves are allowed in my company?”</strong></p><p><strong>Step 2 — Convert Question → Embeddings</strong></p><p>Question ko numbers (vectors) me convert kiya jata hai.<br> This is done by an <strong>embedding model</strong>.</p><p><strong>Step 3 — Search in Vector Database</strong></p><p>Vector DBs:</p><ul><li>Pinecone</li><li>Chroma</li><li>Weaviate</li><li>FAISS</li><li>Supabase Vector</li></ul><p>Waha se matching documents milte hain:<br> 📄 <em>“Company Leave Policy.pdf”</em></p><p><strong>Step 4 — Give Documents + Question to LLM</strong></p><p>LLM ko prompt me diya jata hai:</p><p><strong>User Question + Relevant Document</strong></p><p><strong>Step 5 — LLM Generates Final Answer</strong></p><p>Ab model <strong>accurate answer</strong> deta hai because it has the real document.</p><pre>Complete RAG Flow Example:<br>User uploads PDF → uploadDocument()<br>PDF text extract → extractTextFromFile()<br>Text chunks → [&quot;Chapter 1: AI basics...&quot;, &quot;Chapter 2: ML concepts...&quot;]<br>Embeddings → [[0.1, 0.8, 0.3...], [0.5, 0.2, 0.9...]]<br>Store in SQLite → Vector database ready<br>User asks: &quot;What is AI?&quot;<br>Question embedding → [0.2, 0.7, 0.4...]<br>Vector search → Find similar chunks using cosine similarity<br>Build context → Related document chunks<br>Send to Gemini → Context + Question as enhanced prompt<br>Get response → RAG-enhanced answer based on your documents</pre><h4><strong>How to Use RAG with LLM</strong></h4><p><strong>Step 1 — Convert All Documents to Embeddings</strong></p><p>Use any embedding model:</p><ul><li>OpenAI Embeddings</li><li>Gemini Embeddings</li><li>HuggingFace Embeddings</li></ul><p><strong>Step 2 — Store Embeddings in a Vector Database</strong></p><p>Examples:</p><ul><li>Pinecone</li><li>Weaviate</li><li>Milvus</li><li>Supabase Vector</li></ul><p><strong>Step 3 — User Asks a Question</strong></p><p>Question → embedding → vector DB me search.</p><p><strong>Step 4 — Fetch Relevant Documents</strong></p><p>Un documents ko prompt me add karo.</p><p><strong>Step 5 — Send Prompt to LLM</strong></p><p>LLM → accurate answer, because it uses your documents.</p><p><strong>Normal Chat vs RAG Chat</strong></p><p><strong>Without RAG (Normal Chat)</strong></p><p>User → LLM → Output<br> (Only trained knowledge)</p><p><strong>With RAG (Knowledge-based Chat)</strong></p><p>User → Vector DB Search → Documents → LLM → Output<br> (Your real data + model intelligence)</p><p><strong>Important Note</strong></p><p>RAG <strong>model ke andar nahi hota</strong>.<br> RAG is an <em>external pipeline</em> that:</p><p>✔ Fetches correct documents<br> ✔ Builds a better prompt<br> ✔ Gives latest information<br> LLM simply answers based on the new data.</p><h4>Without RAG (Normal Chat)</h4><pre>User → LLM → Output</pre><h4>With RAG (Knowledge-based Chat)</h4><pre>User → Vector DB Search → Documents → LLM → Output</pre><h3>How I Used These AI Concepts in My Flutter Gemini Chat App</h3><p>Now let’s talk about the app you built.</p><h3>1. API Call From Flutter</h3><p>You used Dio to send requests:</p><pre>final url =<br> &quot;https://generativelanguage.googleapis.com/v1/models/gemini-1.5-flash:generateContent?key=API_KEY&quot;;</pre><p>User text → API → Gemini reply → UI</p><p>This triggers the complete AI pipeline (tokenization → embeddings → inference → reply).</p><h3>2. Chat UI in Flutter</h3><p>You displayed:</p><ul><li>User message bubble</li><li>AI reply bubble</li></ul><p>This is the front-end representation of the LLM conversation.</p><h3>3. AI-Powered Reply Generation</h3><p>Every time your user sends a message:</p><pre>sendMessage(userMessage)</pre><p>Gemini:</p><ul><li>Reads the message</li><li>Understands context via embeddings</li><li>Predicts next possible words</li><li>Generates natural language output</li></ul><p>Your app simply shows it.</p><h3>4. Zero Training Required</h3><p>The best part:<br> You didn’t need to train any model.</p><p>Google has already trained Gemini on massive datasets.<br> You are only <strong>using inference</strong>, which is the simplest and most powerful way to use AI.</p><p>Example Code<br><a href="https://github.com/savitashukla/chat_using_gemine_flutter.git">https://github.com/savitashukla/chat_using_gemine_flutter.git</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d18a235a50b7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Every Developer Should Know]]></title>
            <link>https://medium.com/@shukla.savita208/every-developer-should-know-7b37f866c11f?source=rss-42b5c4f19ec8------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b37f866c11f</guid>
            <dc:creator><![CDATA[Shukla Savita]]></dc:creator>
            <pubDate>Sat, 08 Nov 2025 10:07:34 GMT</pubDate>
            <atom:updated>2025-11-13T15:58:35.085Z</atom:updated>
            <content:encoded><![CDATA[<h3>Section 1: Flutter Basics</h3><ol><li>What is Flutter and why is it used?</li><li>Difference between Flutter &amp; React Native?</li><li>StatelessWidget vs StatefulWidget?</li><li>What is the Widget tree in Flutter?</li><li>Hot Reload vs Hot Restart?</li><li>BuildContext — what is it?</li><li>Difference between runApp() and main()?</li><li>What is HookWidget</li></ol><h3>In Dart:</h3><ul><li><strong>Primitive types</strong> (int, double, bool, String) → stored by <em>value</em></li><li><strong>Collections</strong> (List, Map, Set, custom objects) → stored by <em>reference</em></li></ul><h3>Section 2: State Management</h3><ol><li>What state management approaches have you used?</li><li>Provider vs Riverpod vs GetX vs BLoC vs Cubit ?</li><li>What is Cubit in Flutter?</li><li>How does setState() work internally , Local State and Globle ?</li><li>Explain InheritedWidget.</li><li>How to Bloc use Steam in internaly</li></ol><h3>Section 3: Navigation</h3><ol><li>Navigator 1.0 vs Navigator 2.0?</li><li>How does GoRouter work?</li><li>AutoRoute vs GoRouter — which is better?</li><li>How do you handle deep linking?</li><li>What is named routing and when to use it?</li></ol><h3>Section 4: Performance Optimization</h3><ol><li>How do you handle large lists efficiently?</li><li>What is RepaintBoundary?</li><li>How to reduce app size?</li><li>How to avoid unnecessary widget rebuilds(hint: const, key )?</li></ol><p>5. How do you find and fix <strong>jank</strong> or <strong>layout shifts</strong>?<br>6. How can you improve <strong>app startup time</strong> and <strong>scroll performance</strong>?<br>7. How can you use Isolates or compute() for heavy operations?<br>8.How to handle memory leaks or object retention in Flutter<br>9.Image caching &amp; optimization</p><h3>Section 5: Networking &amp; APIs</h3><ol><li>Difference between http &amp; Dio package?</li><li>Retrofit in Flutter — how does it help?</li><li>How do you handle API error responses?</li><li>What is an interceptor in Dio?</li><li>How do you handle token refresh (JWT)?</li><li>Difference between synchronous &amp; asynchronous API calls?</li><li>How do you cancel a Dio request mid-way (e.g., user navigates away)?</li><li>Explain jsonDecode, fromJson, toJson with example.</li><li>GraphQL integration</li><li>WebSocket (real-time updates)</li></ol><h3>Section 6: Databases &amp; Storage</h3><ol><li>Hive vs SharedPreferences vs SQLite — differences?</li><li>When to use local storage vs cloud storage?</li><li>Explain Firebase Realtime Database vs Firestore.</li><li>How to implement offline caching?</li><li>Secure storage in Flutter (encrypt data)?</li></ol><h3>Section 7: Testing &amp; Debugging</h3><ol><li>Explain Unit Tests, Widget Tests and Integration Tests ?</li><li>How to mock APIs in unit testing?</li><li>Widget test vs integration test?</li><li>How to use Flutter DevTools for debugging?</li><li>Explain Mockito and Mocktail usage.</li><li>Explain Faking</li></ol><h3>Section 8: Real-Time &amp; Background</h3><ol><li>How to implement WebSockets in Flutter?</li><li>Difference between Isolate &amp; compute()?</li><li>WorkManager vs Isolate — when to use?</li><li>How to handle background tasks in Flutter?</li></ol><h3>Section 9: CI/CD &amp; Deployment</h3><ol><li>How to implement CI/CD pipelines for Flutter?</li><li>How to distribute builds to testers?</li><li>How to publish apps to Play Store &amp; App Store?</li></ol><h3>Section 10: Payment &amp; Integrations</h3><ol><li>How to integrate Razorpay, Cashfree , PayPal in Flutter?</li><li>How do you handle failed payment transactions?</li><li>Explain your experience with Firebase services (Remote Config, Analytics, Push Notifications).</li></ol><h3>Section 11: <strong>Explain the internal architecture</strong></h3><ul><li>What are the three main layers of Flutter?</li><li>How does the rendering pipeline work internally?</li><li>What role does the Flutter Engine and Skia play?</li></ul><p><strong>.</strong> What are the differences between:</p><ul><li>Widget Tree</li><li>Element Tree</li><li>Render Object Tree</li></ul><p><strong>.</strong> How does Flutter achieve 60/120 FPS performance?</p><p><strong>.</strong> Explain how the build() method works internally when setState() is called.</p><ul><li>Which tree gets rebuilt?</li><li>What does the framework do to avoid full rebuilds?</li></ul><p><strong>.</strong> What happens when you call runApp(MyApp())?</p><p><strong>.</strong> Explain the Flutter rendering flow for a Text() widget.</p><ul><li>• Does it use native TextView? Why or why not?</li></ul><h4>Section 12:<strong>Native Communication &amp; Platform Channels</strong></h4><p><strong>1.</strong> Explain how MethodChannel works internally (Dart → Engine → Native → Engine → Dart).</p><p><strong>2.</strong> What is the difference between:</p><ul><li>MethodChannel</li><li>EventChannel</li><li>BasicMessageChannel</li></ul><p><strong>3.</strong> When would you use FFI (Foreign Function Interface) instead of MethodChannel?</p><p><strong>4.</strong> How does Flutter communicate with native Android when you call a plugin function?</p><p><strong>5.</strong> What’s the difference between platform channels and platform views?</p><h3>Section 13:Flutter Architecture &amp; Design Patterns</h3><h4>Flutter Architecture</h4><p>What is <strong>Clean Architecture</strong> in Flutter and what are its layers?<br>What is <strong>MVC </strong>in Flutter and what are its layers?<br>What is <strong>MVVM </strong>in Flutter and what are its layers?</p><h4>Design Patterns in Flutter</h4><ol><li>What is the <strong>Singleton Pattern</strong> and where is it used?</li><li>What is the <strong>Factory Pattern</strong>? Give an example in Flutter.</li><li>What is the <strong>Observer Pattern</strong> and how is it related to Streams?</li><li>Explain the <strong>Builder Pattern</strong> in Flutter.</li><li>What is the <strong>Adapter Pattern</strong>, and when would you use it?</li><li>What is the <strong>Repository Pattern</strong> in Flutter with example?</li><li>What is the <strong>Provider Pattern</strong>? How does it simplify state management?</li><li>Explain how <strong>InheritedWidget</strong> follows the <strong>Observer Pattern</strong> internally.</li></ol><h3>Section 14: Leadership</h3><ol><li>Tell me about yourself.</li><li>Why did you choose Flutter as your career?</li><li>What was the biggest challenge in your project?</li><li>How do you handle conflicts in a team?</li><li>How do you manage deadlines when features are complex?</li><li>- Building scalable Flutter apps for large teams</li><li>- Defining architecture conventions (e.g., feature-first structure)</li><li>- Code reviews and lint rules setup</li><li>- Handling large-scale projects (monorepo, modularization)</li><li>- Performance benchmarking, analytics integration</li><li>Flutter 3.x → 4.x → 5.x → 6.x migration understanding</li><li>- Dart 3 features (records, sealed classes, patterns)</li><li>- AI + Flutter integrations (LLMs, chatbots)</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b37f866c11f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automating Flutter App Deployment with CI/CD]]></title>
            <link>https://medium.com/@shukla.savita208/automating-flutter-app-deployment-with-ci-cd-fastlane-github-actions-a8e7ec211b59?source=rss-42b5c4f19ec8------2</link>
            <guid isPermaLink="false">https://medium.com/p/a8e7ec211b59</guid>
            <dc:creator><![CDATA[Shukla Savita]]></dc:creator>
            <pubDate>Sat, 08 Nov 2025 08:28:49 GMT</pubDate>
            <atom:updated>2026-01-20T17:06:45.339Z</atom:updated>
            <content:encoded><![CDATA[<h3>Using Fastlane + GitHub Actions (Professional Guide)</h3><p>Deploying Flutter applications manually is time‑consuming and error‑prone. CI/CD helps you automate the entire process — from code push to app store release — in a reliable and repeatable way.</p><p>This article explains <strong>how to automate Flutter app deployment step by step using Fastlane and GitHub Actions</strong>, in a clean and professional setup suitable for production apps.</p><h3>1. What is CI/CD?</h3><p><strong>CI/CD (Continuous Integration / Continuous Deployment)</strong> is a pipeline where:</p><ul><li>Every code push triggers an automated build</li><li>Builds are tested and signed automatically</li><li>Apps are uploaded to Play Store / App Store without manual steps</li></ul><p>This removes human errors and speeds up releases.</p><h3>2. Why Fastlane?</h3><p><strong>Fastlane is an automation tool for mobile apps</strong> that handles:</p><ul><li>Build generation</li><li>Code signing</li><li>Store uploads</li><li>Release management</li></ul><p>Fastlane works perfectly with Flutter for both <strong>Android and iOS</strong>.</p><h3>3. Installing Fastlane</h3><h3>Android</h3><pre>cd android<br>fastlane init</pre><h3>iOS</h3><pre>cd ios<br>fastlane init</pre><p>This creates a Fastfile where we define automation scripts (called lanes).</p><h3>4. Creating Fastlane Lanes</h3><h3>Android release lane</h3><pre>lane :release do<br>  gradle(task: &quot;bundle&quot;, build_type: &quot;Release&quot;)<br>  upload_to_play_store<br>end</pre><h3>iOS release lane</h3><pre>lane :release do<br>  build_app<br>  upload_to_testflight<br>end</pre><p>Each lane represents a complete automated workflow.</p><h3>5. Managing Signing Securely</h3><h3>iOS Signing</h3><ul><li>Certificates</li><li>Provisioning profiles</li></ul><p>Recommended options:</p><ul><li>fastlane match</li><li>App Store Connect API Key</li></ul><h3>Android Signing</h3><ul><li>Keystore file</li><li>keyAlias, keyPassword, storePassword</li></ul><p>⚠️ <strong>Never store signing files in code</strong></p><h3>6. Storing Secrets in CI</h3><p>Use GitHub Secrets to store sensitive data:</p><pre>KEYSTORE_PASSWORD<br>KEY_ALIAS<br>APPLE_API_KEY<br>PLAY_STORE_JSON</pre><p>Secrets are injected securely at runtime.</p><h3>7. GitHub Actions Setup</h3><p>Create a workflow file:<br>.github/workflows/flutter_release.yml</p><pre>name: Flutter Release</pre><pre>on:<br>  push:<br>    tags:<br>      - v*</pre><pre>jobs:<br>  build:<br>    runs-on: ubuntu-latest<br>    steps:<br>      - uses: actions/checkout@v3<br>      - uses: subosito/flutter-action@v2<br>      - run: flutter pub get<br>      - run: cd android &amp;&amp; fastlane release</pre><p>This pipeline runs automatically on every version tag.</p><h3>8. Automatic Store Upload</h3><p>Once the pipeline runs:</p><ul><li>Android → Play Store (bundle upload)</li><li>iOS → TestFlight / App Store</li></ul><p>No manual build or upload is required.</p><h3>9. Release Strategies</h3><h3>Automatic release</h3><ul><li>App goes live immediately</li></ul><h3>Staged rollout</h3><ul><li>Gradual rollout: 10% → 50% → 100%</li><li>Reduces risk of bugs in production</li></ul><h3>10. Final CI/CD Flow</h3><pre>Code Push / Tag<br>      ↓<br>GitHub Actions<br>      ↓<br>Fastlane<br>      ↓<br>Build + Sign<br>      ↓<br>Play Store / App Store</pre><h3>Conclusion</h3><p>By combining <strong>Fastlane and GitHub Actions</strong>, you can fully automate Flutter app deployment, reduce release errors, and ship updates faster with confidence.</p><p>This setup is production‑ready and widely used in professional mobile teams.</p><p>✨ <em>Happy automated shipping!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a8e7ec211b59" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How MethodChannel and Widgets work internally in Flutter]]></title>
            <link>https://medium.com/@shukla.savita208/how-methodchannel-and-widgets-work-internally-in-flutter-c99b39d23991?source=rss-42b5c4f19ec8------2</link>
            <guid isPermaLink="false">https://medium.com/p/c99b39d23991</guid>
            <dc:creator><![CDATA[Shukla Savita]]></dc:creator>
            <pubDate>Sun, 02 Nov 2025 12:31:10 GMT</pubDate>
            <atom:updated>2025-11-02T13:29:40.173Z</atom:updated>
            <content:encoded><![CDATA[<h3>Flutter Architecture Overview</h3><p>Flutter’s runtime is divided into three layers:</p><h4>Framework :</h4><p>it is have Widget Tree =&gt; Element Tree =&gt; RenderObject Tree</p><h4>1️⃣ Widget Tree</h4><blockquote><em>The </em><strong><em>Widget Tree</em></strong><em> represents the UI structure </em><strong><em>you write in code</em></strong><em>.<br> Widgets are </em><strong><em>immutable blueprints</em></strong><em> that describe what the UI should look like — not how it’s drawn.</em></blockquote><p>Example:</p><pre>Scaffold → Column → Text(&quot;Hello&quot;)</pre><h4>2️⃣ Element Tree</h4><blockquote><em>The </em><strong><em>Element Tree</em></strong><em> acts as a </em><strong><em>bridge</em></strong><em> between the Widget Tree and the Render Object Tree.<br> Elements manage the </em><strong><em>lifecycle and relationship</em></strong><em> between widgets and render objects.</em></blockquote><p>Key point:</p><ul><li>When a widget is created, Flutter creates a corresponding <strong>Element</strong>.</li><li>It keeps track of widget updates without rebuilding the whole tree.</li></ul><h4>3️⃣ Render Object Tree</h4><blockquote><em>The </em><strong><em>Render Object Tree</em></strong><em> is responsible for the </em><strong><em>layout (size &amp; position)</em></strong><em> and </em><strong><em>painting commands</em></strong><em>.<br> Render Objects don’t draw UI directly — they just </em><strong><em>describe how and where</em></strong><em> things should be drawn.</em></blockquote><p>Example:</p><ul><li>RenderParagraph (for Text)</li><li>RenderFlex (for Column)</li><li>RenderBox (for most UI components)</li></ul><p>They prepare <strong>paint commands</strong> like:</p><blockquote><em>“Draw rectangle at (x:10, y:20) with size (100x50) and color blue.”</em></blockquote><h4><strong>Engine(C++)</strong></h4><p>The <strong>Engine</strong> receives the paint commands from the Render Tree and <strong>actually draws pixels</strong> on the screen using the <strong>Skia graphics librar</strong></p><p>Role:</p><ul><li>Converts draw commands into GPU instructions.</li><li>Handles animations, rasterization, and frame rendering.</li></ul><h4>Embedder (Platform Layer)</h4><p>The Embedder is the platform-specific shell (Android/iOS/Web/Desktop) that displays the final rendered output on screen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*myqONV3igFN6fiGbcmqp9Q.png" /></figure><pre>Framework (Dart)<br> ↓<br>Engine (C++)<br> ↓<br>Embedder (Android/iOS)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*js5NZQVhN-GPATzXNYROKw.png" /></figure><h3>. How MethodChannel Works Internally</h3><p>When Flutter needs to access <strong>native APIs</strong> (battery, camera, location, etc.), it uses <strong>Platform Channels</strong>.</p><h3>🧾 Step-by-Step Flow</h3><h4>1️⃣ Dart Side — Sending the Message</h4><pre>const platform = MethodChannel(&#39;samples.flutter.dev/battery&#39;);<br>final batteryLevel = await platform.invokeMethod(&#39;getBatteryLevel&#39;);</pre><ul><li>MethodChannel creates a connection identified by a <strong>channel name</strong>.</li><li>When you call invokeMethod(&#39;getBatteryLevel&#39;), Flutter:</li><li>Serializes the method name + arguments into a binary message.</li><li>Sends it to the <strong>Engine</strong> through a binary messenger.</li></ul><h4>2️⃣ Engine (C++) Layer</h4><ul><li>The <strong>Flutter Engine</strong> receives the binary message.</li><li>It passes the message to the <strong>platform embedder</strong> (Android/iOS) using the message loop.</li><li>The message includes:</li><li>Channel name</li><li>Method name</li><li>Arguments</li></ul><h4>3️⃣ Native Side (Android / iOS)</h4><p><strong>Android (Java/Kotlin):</strong></p><pre>new MethodChannel(getFlutterEngine().getDartExecutor().getBinaryMessenger(), &quot;samples.flutter.dev/battery&quot;)<br>  .setMethodCallHandler((call, result) -&gt; {<br>    if (call.method.equals(&quot;getBatteryLevel&quot;)) {<br>      int level = getBatteryLevel();<br>      result.success(level);<br>    } else {<br>      result.notImplemented();<br>    }<br>  });</pre><p><strong>iOS (Swift):</strong></p><pre>let batteryChannel = FlutterMethodChannel(name: &quot;samples.flutter.dev/battery&quot;, binaryMessenger: controller.binaryMessenger)<br>batteryChannel.setMethodCallHandler { call, result in<br>  if call.method == &quot;getBatteryLevel&quot; {<br>    result(getBatteryLevel())<br>  } else {<br>    result(FlutterMethodNotImplemented)<br>  }<br>}</pre><ul><li>The native handler executes when it receives a message from Dart.</li><li>It calls the platform-specific code (e.g., BatteryManager on Android).</li><li>Sends a response (success/error) back to Flutter through the same channel.</li></ul><h4>4️⃣ Dart Receives Response</h4><ul><li>The <strong>Engine</strong> sends the native result back to the Dart side.</li><li>The await in invokeMethod() completes with the returned value.</li></ul><pre>Dart (invokeMethod)<br> ↓<br>Engine (C++)<br> ↓<br>Native Platform (Java/Swift)<br> ↓<br>Engine (C++)<br> ↓<br>Dart (Future completes)</pre><p>after taking dart</p><h3><strong>How Widgets Work Internally</strong></h3><p>Widgets are the <strong>building blocks</strong> of Flutter UI — but they don’t directly talk to native views.</p><p>Instead, Flutter creates and manages its own rendering pipeline entirely inside the engine.</p><h4>1️Dart Side — Widget Creation</h4><p>Example:</p><pre>Text(&quot;Hello Flutter&quot;)</pre><ul><li>Creates a <strong>Widget object</strong> in Dart memory.</li><li>Widgets are <strong>immutable configuration objects</strong> — they describe <em>what to build</em>, not <em>how</em> to display.</li></ul><h4>2️ Element Tree &amp; Render Object Tree</h4><p>Flutter uses three main trees:</p><p>TreePurpose<strong>Widget Tree</strong>Blueprint (configuration)<strong>Element Tree</strong>Active instances (manages state &amp; lifecycle)<strong>Render Object Tree</strong>Responsible for layout, paint, and hit testing</p><p>Flow:</p><pre>Text(&quot;Hello&quot;)<br>→ Widget Tree (Text)<br>→ Element Tree (TextElement)<br>→ Render Object Tree (RenderParagraph)<br>it send to Engine<br></pre><h4>3️Rendering Pipeline</h4><p>When a frame needs to be drawn:</p><ol><li>Flutter calls build() → updates Widget Tree.</li><li>The framework compares old/new trees (rebuilds only necessary parts).</li><li>Render Objects compute:</li></ol><ul><li>Layout (size/position)</li><li>Painting commands (create commond only draw text, shapes, etc.)</li></ul><p>4. These painting commands are sent to the <strong>Engine (C++)</strong>.</p><h4>4️ Engine Draws on Screen (via Skia)</h4><ul><li>The Engine uses <strong>Skia</strong>, a fast 2D graphics library.</li><li>Skia converts paint commands into pixels on a GPU surface.</li><li>The <strong>Embedder</strong> (Android/iOS) just displays that GPU surface inside a FlutterView or UIView.</li></ul><pre>Dart (Widget build)<br> ↓<br>Element Tree → Render Objects<br> ↓<br>Engine (Skia)<br> ↓<br>GPU → Pixels on Screen</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tEKq-amqXSQkH-248v8jcQ.png" /></figure><pre>🔸 MethodChannel Flow<br>Dart ──&gt; Engine ──&gt; Native ──&gt; Engine ──&gt; Dart<br><br>🔹 Widget Rendering Flow<br>Dart (Widget) ──&gt; Engine (Skia) ──&gt; GPU ──&gt; Screen</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c99b39d23991" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Upload Flutter iOS App via Xcode]]></title>
            <link>https://medium.com/@shukla.savita208/upload-flutter-ios-app-via-xcode-cb030b17b2c9?source=rss-42b5c4f19ec8------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb030b17b2c9</guid>
            <dc:creator><![CDATA[Shukla Savita]]></dc:creator>
            <pubDate>Sun, 12 Oct 2025 18:12:18 GMT</pubDate>
            <atom:updated>2025-10-12T18:12:18.681Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>1</strong>■■<strong> Prerequisites</strong></p><p>- Mac system with latest macOS — Xcode installed (latest version, e.g., 15+) — Apple Developer Account (paid –$99/year) — Your Flutter project runs fine on iOS simulator/device</p><p><strong>2</strong>■■<strong> Build iOS Project from Flutter</strong></p><p>Run in terminal: flutter build ios — release</p><p><strong>3</strong>■■<strong> Open Project in Xcode</strong></p><p>Open your iOS project: open ios/Runner.xcworkspace Then in Finder → ios/Runner.xcworkspace → open with Xcode.</p><p><strong>4</strong>■■ <strong>Set App Info in Xcode</strong></p><p><strong>In Xcode → Runner → TARGETS → Runner → General: — <br></strong>Set Display Name — Bundle Identifier (e.g.,com.yourcompany.appname) — Version (e.g., 1.0.0) — Build number (e.g., 1) Select your Developer Team for signing.</p><p><strong>5</strong>■■<strong> Archive the App</strong></p><p>Select Any iOS Device (arm64) → Product → Archive Wait for Xcode to build your archive.</p><p><strong>6</strong>■■<strong> Upload via Xcode Organizer</strong></p><p>After archive completes → Xcode → Window → Organizer → Select Archive → Distribute App → App Store Connect → Upload.</p><p><strong>7</strong>■■<strong> Go to App Store Connect</strong></p><p>Login to <a href="https://appstoreconnect.apple.com/">https://appstoreconnect.apple.com</a> → Your App → TestFlight or App Store. Wait for Processing (10–30 min), then click ‘Submit for Review’.</p><p><strong>8</strong>■■<strong> Common Tips</strong></p><p>- Remove debug prints and logs. — Verify icons and splash in Assets.xcassets. — Add Privacy Manifest (for iOS 17+). — Enable automatic signing under Signing &amp; Capabilities.</p><p>■<strong> Quick Commands Recap</strong></p><p>flutter clean flutter pub get flutter build ios — release open ios/Runner.xcworkspace # Archive &amp; Upload via Xcode Organizer</p><p>■■<strong> Troubleshooting</strong></p><p>If ‘No profiles found’ or ‘Code signing failed’: → Go to Xcode → Signing &amp; Capabilities → Enable ‘Automatically manage signing’ → Choose your Apple ID Team.</p><h4>Provisioning Profile kya hoti hai (in iOS / Xcode)</h4><p>A provisioning profile is a <strong>digital file</strong> that is generated in the Apple Developer account.<br> It contains important information about your app, such as:</p><ul><li><strong>App Bundle ID</strong> (for example: com.kotak.neomobile)</li><li><strong>Developer Certificates</strong> (signed by Apple)</li><li><strong>Registered Devices</strong> (used for testing)</li><li><strong>App Entitlements</strong> (like push notifications, keychain access, etc.)</li></ul><p>“In simple terms, a <strong>Provisioning Profile</strong> acts as a <strong>“pass and permission file”</strong> for your app.<br> Without it, an iOS device cannot recognize your app as trusted or allowed to run”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0udhqe16NYBhx5NZJukvPQ.png" /></figure><h4>Using XCode create Provisioning</h4><p>Go to <strong>Runner → Signing &amp; Capabilities → Team → Automatically Manage Signing<br></strong>Xcode khud provisioning profile select kar lega.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*01-Bas0ELQsZhBeMS9k5AQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb030b17b2c9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>