<?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 Anurag Affection on Medium]]></title>
        <description><![CDATA[Stories by Anurag Affection on Medium]]></description>
        <link>https://medium.com/@anuragaffection?source=rss-ad9ede5ce6cd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*X7BCpth5YGxdmrj7RsOb9g.jpeg</url>
            <title>Stories by Anurag Affection on Medium</title>
            <link>https://medium.com/@anuragaffection?source=rss-ad9ede5ce6cd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 21:30:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@anuragaffection/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[Fixing Package Name Errors in Flutter Android Builds]]></title>
            <link>https://anuragaffection.medium.com/fixing-package-name-errors-in-flutter-android-builds-93982115abfa?source=rss-ad9ede5ce6cd------2</link>
            <guid isPermaLink="false">https://medium.com/p/93982115abfa</guid>
            <category><![CDATA[namespaces]]></category>
            <category><![CDATA[package-name]]></category>
            <category><![CDATA[kotlin-e]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Anurag Affection]]></dc:creator>
            <pubDate>Sun, 19 Oct 2025 19:13:50 GMT</pubDate>
            <atom:updated>2026-07-09T16:46:58.288Z</atom:updated>
            <content:encoded><![CDATA[<h3>Error Message</h3><pre>e: file:///home/yourAppName/android/app/src/main/kotlin/MainActivity.kt:1:9 Package name must be a &#39;.&#39;-separated identifier listFAILURE: Build failed with an exception.</pre><h3>Error Breakdown</h3><ul><li>The issue is with our package name (namespace), which is incorrect.</li><li>Our namespace is in.&lt;myCompany&gt;.yourAppName.</li></ul><h3>Namespace vs. ApplicationId</h3><ul><li>The applicationId must be globally unique, since it identifies your app on the Play Store and across devices.</li><li>The namespace defines the logical package name used inside your Kotlin/Java code. It must also follow valid Java identifier rules and should be globally unique within your project’s codebase. Android Gradle Plugin uses this to generate and reference your R class.</li></ul><h3>Solution 01</h3><ul><li>Our current namespace is in.&lt;myCompany.yourAppName.</li><li>The problem here is the in keyword, which is reserved in Kotlin.</li><li>go to MainActivity.kt file, and change the linepackage in.&lt;myCompany&gt;.yourAppName to `in`.&lt;myCompany&gt;.yourAppName.</li><li>here, we updated the in with backtick</li></ul><h3>Note</h3><ul><li>no need to update the namespace in build.gradle,</li><li>keep it as it, like this it will be</li></ul><pre>android {<br>    namespace = &quot;in.&lt;myCompany&gt;.yourAppName&quot;<br>    compileSdk = flutter.compileSdkVersion<br>    ndkVersion = flutter.ndkVersion<br>}</pre><h3>Solution 02</h3><ul><li>Remove the in from namespace , use same default namespace, we had when creating flutter project.</li><li>and namespace as com.example.&lt;yourAppName&gt;</li></ul><p>Thank You</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=93982115abfa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Flutter’s Android Gradle Plugin (AGP) 8.1.0 Deprecation Warning: Upgrade to 8.3.0]]></title>
            <link>https://anuragaffection.medium.com/flutters-android-gradle-plugin-agp-8-1-0-deprecation-warning-upgrade-to-8-3-0-b2256624bbba?source=rss-ad9ede5ce6cd------2</link>
            <guid isPermaLink="false">https://medium.com/p/b2256624bbba</guid>
            <category><![CDATA[android-gradle-flutter]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[flutter-gradle-updgrade]]></category>
            <category><![CDATA[flutter-gradle]]></category>
            <category><![CDATA[android-gradle]]></category>
            <dc:creator><![CDATA[Anurag Affection]]></dc:creator>
            <pubDate>Mon, 06 Oct 2025 17:15:19 GMT</pubDate>
            <atom:updated>2025-10-06T17:19:50.947Z</atom:updated>
            <content:encoded><![CDATA[<h3>Issue</h3><pre>Warning: Flutter support for your project&#39;s Android Gradle Plugin version (Android Gradle Plugin version 8.1.0) will soon be dropped. Please upgrade your Android Gradle Plugin version to a version of at least Android Gradle Plugin version 8.3.0 soon.<br>Alternatively, use the flag &quot;--android-skip-build-dependency-validation&quot; to bypass this check.</pre><pre>Potential fix: Your project&#39;s AGP version is typically defined in the plugins block of the `settings.gradle` file (/myLoveApp/android/settings.gradle), by a plugin with the id of com.android.application. <br>If you don&#39;t see a plugins block, your project was likely created with an older template version. In this case it is most likely defined in the top-level build.gradle file (/myLoveApp/android/build.gradle) by the following line in the dependencies block of the buildscript: &quot;classpath &#39;com.android.tools.build:gradle:`version`&quot;.</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3OSwZWTZCRM2hl3MhZOS1A.png" /><figcaption>Flutter android gradle plugin upgrade</figcaption></figure><h3>Fix</h3><p>01. find the below code in settings.gradle</p><pre>plugins {<br>    id &quot;com.android.application&quot; version &quot;8.1.0&quot; apply false<br>}</pre><p>02. update settings.gradle with version &quot;8.3.0</p><pre>plugins {<br>    id &quot;com.android.application&quot; version &quot;8.3.0&quot; apply false<br>}</pre><p>03. for 8.3.0 , we require distribution url to be greater than 8.4, <br>here we have 8.9, so no changes here.<br>file name : gradle-wrapper.properties</p><pre>distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip</pre><p>04. clean &amp; build again</p><pre>flutter clean<br>flutter pub get<br>fluttr run</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b2256624bbba" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Firebase Storage Cors Error on accessing Json File in Client Application]]></title>
            <link>https://anuragaffection.medium.com/firebase-storage-cors-error-on-accessing-json-file-in-client-application-daaa09f2a83d?source=rss-ad9ede5ce6cd------2</link>
            <guid isPermaLink="false">https://medium.com/p/daaa09f2a83d</guid>
            <category><![CDATA[firebase]]></category>
            <category><![CDATA[cors]]></category>
            <category><![CDATA[firebase-storage]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[json]]></category>
            <dc:creator><![CDATA[Anurag Affection]]></dc:creator>
            <pubDate>Sun, 07 Sep 2025 19:51:39 GMT</pubDate>
            <atom:updated>2025-10-22T12:19:50.731Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sVfC7sIufYr9caioI2CEUg.png" /><figcaption>Thumbnail</figcaption></figure><h3>Issue &amp; Scenario</h3><ul><li>Accessing images, pdfs, videos works fine</li><li>Accessing json type file, throwing cors error, as we have to first make a fetch calls to get the content</li><li>then we get the cors error</li></ul><pre>Access to fetch at &#39;https://firebasestorage.googleapis.com/v0/b/&lt;your-app-name&gt;.appspot.com/o/books_unit%2F5SpAiaq7ZOapBPcdtyDe%2F1757162794916-145fn8okt1ri-Bihar_fish_and_poultry.json?alt=media&amp;token=f7e34c49-bbb7-4d&#39; <br>from origin &#39;http://localhost:5173&#39; has been blocked by CORS policy: <br>No &#39;Access-Control-Allow-Origin&#39; header is present on the requested resource.fix </pre><h3>Fix</h3><ul><li>create cors.josn file</li></ul><pre>[<br>  {<br>    &quot;origin&quot;: [&quot;*&quot;],<br>    &quot;method&quot;: [&quot;GET&quot;],<br>    &quot;maxAgeSeconds&quot;: 3600<br>  }<br>]</pre><ul><li>run this commands , this will update the setting of accessing file from Firebase storage in client application</li></ul><pre> gsutil cors set cors.json gs://&lt;your-app-name&gt;.appspot.com<br><br> or <br><br> gsutil cors set cors.json gs://&lt;your-app-name&gt;.firebasestorage.app</pre><ul><li>verify the new settings</li></ul><pre>gsutil cors get gs://&lt;your-app-name&gt;.appspot.com<br><br>or<br><br>gsutil cors get gs://&lt;your-app-name&gt;.firebasestorage.app</pre><h3>To be Noted</h3><ul><li>Change the * to your own domain name</li><li>You can include more methods like post, put, delete</li><li>Cors check will be disable during the cached time which is maxAgeSeconds</li></ul><h3>Reference Link</h3><ul><li><a href="https://firebase.google.com/docs/storage/web/download-files#cors_configuration">Download files with Cloud Storage on Web | Cloud Storage for Firebase</a></li><li><a href="https://stackoverflow.com/questions/78107182/firebase-cors-error-trying-to-fetch-a-json-file">Firebase CORS error trying to fetch a JSON file</a></li><li><a href="https://stackoverflow.com/questions/71859584/how-to-configure-cors-using-flutter-web-and-canvaskit-renderer">How to configure CORS using Flutter Web and CanvasKit renderer?</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=daaa09f2a83d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Problem with using Anchor tag as navigation in React]]></title>
            <link>https://anuragaffection.medium.com/problem-with-using-anchor-tag-as-navigation-in-react-ccfea3fe4824?source=rss-ad9ede5ce6cd------2</link>
            <guid isPermaLink="false">https://medium.com/p/ccfea3fe4824</guid>
            <category><![CDATA[firebase]]></category>
            <category><![CDATA[anchor-tag]]></category>
            <category><![CDATA[react-router-dom]]></category>
            <category><![CDATA[reactjs]]></category>
            <dc:creator><![CDATA[Anurag Affection]]></dc:creator>
            <pubDate>Sun, 07 Sep 2025 18:41:24 GMT</pubDate>
            <atom:updated>2025-09-07T18:41:24.224Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bwyOm0Jfy0Bi5LmgNxm06A.jpeg" /></figure><h3>Fixing Firebase Auth Re-Loading on Sidebar Navigation in React</h3><p>While building my React + Firebase Auth app, I noticed something strange.<br>Login worked fine, routes were protected correctly, but whenever I clicked on my sidebar menu, the app <strong>reloaded</strong>.</p><p>Each click caused the Firebase AuthProvider (code attached belowto re-run, showing the loading state again.<br>It wasn’t infinite loading — just an unnecessary refresh and re-auth check every time.<br>Here’s how I fixed it using React Router for client-side navigation.</p><h3>Video Describing the Problem &amp; Fix</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FPQ4TNU-4MQU%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DPQ4TNU-4MQU&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FPQ4TNU-4MQU%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/12411a7eaf29a056aad92f4648cd4aaa/href">https://medium.com/media/12411a7eaf29a056aad92f4648cd4aaa/href</a></iframe><h3>🔍 The Problem</h3><ul><li>Sidebar links used &lt;a href=&quot;/pms/module&quot;&gt; etc.</li><li>Clicking a menu item → browser did a <strong>full page reload</strong>.</li><li>Because of the reload -&gt; React app restarted.</li><li>AuthProvider initialized again.</li><li>loading state flickered while Firebase’s onAuthStateChanged verified the user’s auth token.</li></ul><pre><br>// auth provider code for reference<br>&quot;use client&quot;;<br>import { createContext, useContext, useEffect, useState } from &quot;react&quot;;<br>import { onAuthStateChanged, signOut } from &quot;firebase/auth&quot;;<br>import { auth } from &quot;@/firebase_config&quot;;<br><br>const AuthContext = createContext();<br><br>export const AuthProvider = ({ children }) =&gt; {<br>    const [user, setUser] = useState(null);<br>    const [loading, setLoading] = useState(true);<br><br>    useEffect(() =&gt; {<br>        const unsub = onAuthStateChanged(auth, (currentUser) =&gt; {<br>            setUser(currentUser);<br>            setLoading(false);<br>        });<br>        return () =&gt; unsub();<br>    }, []);<br><br>    const logout = () =&gt; signOut(auth);<br><br>    return (<br>        &lt;AuthContext.Provider value={{ user, loading, logout }}&gt;<br>            {children}<br>        &lt;/AuthContext.Provider&gt;<br>    );<br>};<br><br>export const useAuth = () =&gt; useContext(AuthContext);</pre><h3>🕵️ Root Cause</h3><p>I was using plain <strong>&lt;a&gt; tags</strong> for navigation inside my single-page React app.</p><ul><li>&lt;a&gt; tags tell the browser to reload the entire page, which is fine for multi-page apps or external links but problematic in single-page apps (SPAs).</li><li>A full page reload resets React’s state, including context providers like AuthProvider and QueryClientProvider.</li><li>The loading state appeared because Firebase’s onAuthStateChanged listener is asynchronous, causing a brief delay while it checks for persisted auth tokens.</li></ul><p>This caused the app to feel sluggish and show unnecessary loading states on every sidebar click.<br>The fix? Switch to client-side navigation with React Router, as explained below.</p><h3>❌ Old Way : Using &lt;a&gt;</h3><pre>// Sidebar.jsx with anchort tage<br>// Causes full page reload, resetting app state and triggering AuthProvider loading<br>function Sidebar() {<br>  return (<br>    &lt;nav&gt;<br>      &lt;a href=&quot;/pms/package&quot;&gt;Packages&lt;/a&gt;<br>      &lt;a href=&quot;/pms/module&quot;&gt;Modules&lt;/a&gt;<br>      &lt;a href=&quot;/pms/section&quot;&gt;Sections&lt;/a&gt;<br>    &lt;/nav&gt;<br>  )<br>}</pre><h3>✅ Fix: Using React Router’s &lt;Link&gt;</h3><p>To prevent full page reloads, I replaced &lt;a&gt; tags with React Router’s &lt;Link&gt; component, which handles navigation client-side without resetting the app state.</p><p>First, ensure you have React Router installed:</p><pre>npm install react-router-dom</pre><p>Then, update the Sidebar.jsx to use &lt;Link&gt;:</p><pre>// Sidebar.jsx (correct)<br>import { Link } from &#39;react-router-dom&#39;;<br><br>function Sidebar() {<br>  return (<br>    &lt;nav&gt;<br>      &lt;Link to=&quot;/pms/package&quot;&gt;Packages&lt;/Link&gt;<br>      &lt;Link to=&quot;/pms/module&quot;&gt;Modules&lt;/Link&gt;<br>      &lt;Link to=&quot;/pms/section&quot;&gt;Sections&lt;/Link&gt;<br>    &lt;/nav&gt;<br>  )<br>}</pre><p>Make sure your app is set up with React Router’s BrowserRouter in the root component (e.g., index.js or App.js):</p><pre>// index.js for reference<br>import { StrictMode } from &#39;react&#39;<br>import { createRoot } from &#39;react-dom/client&#39;<br>import { BrowserRouter } from &#39;react-router-dom&#39;<br>import App from &#39;./app/App&#39;<br>import &#39;./index.css&#39;<br>import { QueryClient, QueryClientProvider } from &quot;@tanstack/react-query&quot;<br>import { Toaster } from &#39;./components/ui/sonner&#39;<br>import { AuthProvider } from &#39;./provider/auth-provider&#39;<br><br>const queryClient = new QueryClient()<br><br>createRoot(document.getElementById(&#39;root&#39;)).render(<br>  &lt;StrictMode&gt;<br>    &lt;QueryClientProvider client={queryClient}&gt;<br>      &lt;BrowserRouter&gt;<br>        &lt;AuthProvider&gt;<br>          &lt;App /&gt;<br>          &lt;Toaster position=&quot;top-right&quot; /&gt;<br>        &lt;/AuthProvider&gt;<br>      &lt;/BrowserRouter&gt;<br>    &lt;/QueryClientProvider &gt;<br>  &lt;/StrictMode &gt;,<br>)</pre><h3>🎉 Result</h3><p>Using &lt;Link&gt; instead of &lt;a&gt;:</p><ul><li>Prevents full page reloads.</li><li>Preserves React’s state and context providers.</li><li>Eliminates the AuthProvider loading flicker, as onAuthStateChanged doesn’t re-run unnecessarily.</li><li>Makes navigation faster and smoother.</li></ul><p>This simple change fixed the issue and improved the user experience in my React + Firebase app!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ccfea3fe4824" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Set Up Shadcn UI with React, Vite, and JavaScript using npm & npx (Latest Guide)]]></title>
            <link>https://anuragaffection.medium.com/how-to-set-up-shadcn-ui-with-react-vite-and-javascript-using-npm-npx-latest-guide-3475970d1cb3?source=rss-ad9ede5ce6cd------2</link>
            <guid isPermaLink="false">https://medium.com/p/3475970d1cb3</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[tailwind-css]]></category>
            <category><![CDATA[npm]]></category>
            <category><![CDATA[shadcn]]></category>
            <dc:creator><![CDATA[Anurag Affection]]></dc:creator>
            <pubDate>Mon, 01 Sep 2025 14:31:40 GMT</pubDate>
            <atom:updated>2025-09-01T14:31:40.134Z</atom:updated>
            <content:encoded><![CDATA[<p>Here in this article, we are going to setup Shadcn ui (latest version) with React, Javascript, Vite , Npm &amp; Npx.</p><h4>If you want to setup Shadcn with React &amp; typescript, checkout the official docs : —</h4><pre># Official Documentation for - React &amp; Typescript<br>https://ui.shadcn.com/docs/installation/vite</pre><h4>Here, lets continue to setup shadcn with React &amp; Javscript</h4><figure><img alt="How to Install and Configure Shadcn UI in React, Vite, and JavaScript (npm &amp; npx, Latest Guide)" src="https://cdn-images-1.medium.com/max/1024/1*G_QDhximyde55mrVVo3FIw.png" /></figure><p>01. Create Project</p><p>Start by creating a new React project using vite. Select the <em>`React + Javascript`</em> template:</p><pre>npm create vite@latest</pre><p>02. Install Tailwind CSS</p><pre><br>npm install -D tailwindcss@3<br>npx tailwindcss init</pre><p>03. Configure file tailwind.config.js</p><pre><br>/** @type {import(&#39;tailwindcss&#39;).Config} */<br>export default {<br>  content: [<br>    &quot;./index.html&quot;,<br>    &quot;./src/**/*.{js,ts,jsx,tsx}&quot;,<br>  ],<br>  theme: {<br>    extend: {},<br>  },<br>  plugins: [],<br>}</pre><p>04. Add Below code in src/index.css</p><pre>@tailwind base;<br>@tailwind components;<br>@tailwind utilities;</pre><p>05. Create new file called jsconfig.json &amp; add the below code.</p><p>This config <strong>creates the </strong><strong>@ alias → shortcut to </strong><strong>src/</strong>, so imports are cleaner, consistent, and work with shadcn.</p><pre>{<br>  &quot;compilerOptions&quot;: {<br>    &quot;baseUrl&quot;: &quot;.&quot;,<br>    &quot;paths&quot;: {<br>      &quot;@/*&quot;: [&quot;./src/*&quot;]<br>    }<br>  }<br>}</pre><p>06. Update the vite.config.js file code like this</p><pre>import { defineConfig } from &#39;vite&#39;<br>import react from &#39;@vitejs/plugin-react&#39;<br>import path from &#39;path&#39;<br><br>export default defineConfig({<br>  plugins: [react()],<br>  resolve: {<br>    alias: {<br>      &quot;@&quot;: path.resolve(__dirname, &quot;./src&quot;),<br>    },<br>  },<br>})</pre><p>07. Match the folderstructure, it should look like similar to this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/482/1*boMG2iOTWL1GIbVFFozb3A.png" /></figure><p>08. Install shadcn latest</p><pre>npx shadcn@latest init</pre><p>09. Add a button component</p><ul><li>the below commands will create a file called button.jsx in path src/components/ui/button.jsx</li></ul><pre>npx shadcn@latest add button</pre><p>10. Minimal code to setup our setup in src/app.jsx</p><pre>import { Button } from &quot;@/components/ui/button&quot;<br><br>function App() {<br>  return (<br>    &lt;div className=&quot;flex min-h-svh flex-col items-center justify-center&quot;&gt;<br>      &lt;Button&gt;Click me&lt;/Button&gt;<br>    &lt;/div&gt;<br>  )<br>}<br><br>export default App</pre><p>11. Start the project with following command</p><pre>npm run dev</pre><p>Reference link</p><ul><li><a href="https://v3.tailwindcss.com/docs/guides/vite">https://v3.tailwindcss.com/docs/guides/vite</a></li><li><a href="https://ui.shadcn.com/docs/installation/vite">https://ui.shadcn.com/docs/installation/vite</a></li></ul><p>Feel free to post our thought, any improvement or facing issue on setup !<br>Thank you</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3475970d1cb3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Male Voices in Flutter TTS for Indian English & Indian Hindi]]></title>
            <link>https://anuragaffection.medium.com/male-voices-in-flutter-tts-for-indian-english-indian-hindi-415f9755b323?source=rss-ad9ede5ce6cd------2</link>
            <guid isPermaLink="false">https://medium.com/p/415f9755b323</guid>
            <category><![CDATA[text-to-speech]]></category>
            <category><![CDATA[male-indian-voices]]></category>
            <category><![CDATA[flutter-tts]]></category>
            <dc:creator><![CDATA[Anurag Affection]]></dc:creator>
            <pubDate>Sun, 13 Apr 2025 07:39:30 GMT</pubDate>
            <atom:updated>2025-06-25T15:34:32.179Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ycL8c5p0a8coPqnQGGsNXg.png" /><figcaption>Male Indian Voice in Flutter TTS</figcaption></figure><pre> void configureTTS() async {<br>    String lang = widget.isEnglishRevision == true ? &quot;en-IN&quot; : &quot;hi-IN&quot;;<br><br>    await flutterTts.setLanguage(lang);<br>    await flutterTts.setSpeechRate(0.40);<br>    await flutterTts.setVolume(1.0);<br>    await flutterTts.setPitch(1.0);<br><br>    if (lang == &#39;hi-IN&#39;) {<br>      await flutterTts.setVoice({<br>        &#39;name&#39;: &#39;hi-in-x-hie-local&#39;,<br>        &#39;locale&#39;: &#39;hi-IN&#39;,<br>      });<br>    } else if (lang == &#39;en-IN&#39;) {<br>      // Optional: Use a good English male voice here<br>      await flutterTts.setVoice({<br>        &#39;name&#39;: &#39;en-in-x-end-network&#39;,<br>        &#39;locale&#39;: &#39;en-IN&#39;,<br>      });<br>    }<br>  }</pre><p>List of Male voices Indian</p><pre>hi-in-x-hie-local<br>en-in-x-end-network<br>en-in-x-ene-network</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=415f9755b323" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[NPM vs NPX]]></title>
            <link>https://anuragaffection.medium.com/npm-vs-npx-d20c98257d00?source=rss-ad9ede5ce6cd------2</link>
            <guid isPermaLink="false">https://medium.com/p/d20c98257d00</guid>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[npm]]></category>
            <category><![CDATA[javasc]]></category>
            <category><![CDATA[npx]]></category>
            <dc:creator><![CDATA[Anurag Affection]]></dc:creator>
            <pubDate>Thu, 21 Mar 2024 20:13:59 GMT</pubDate>
            <atom:updated>2025-06-25T15:33:30.582Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dxqcPFBLpxwxcaTFyNU7Bg.png" /><figcaption>NPM vs NPX</figcaption></figure><pre>Npm<br><br>vs <br><br>Npx<br>NPM<br>🔹Node Package Manager<br><br>NPX<br>🔹Node Package Execute<br><br>🔹npm<br> It is for managing packages <br> and executing locally installed.<br><br><br>🔹npx<br> It is for executing packages <br> without having to install them <br> globally.<br><br>🔹NPM <br> It is primarily used to <br> install, manage, and publish <br> packages/modules.<br><br><br>🔹NPX<br> It is used to execute npm package <br> binaries without having to <br> install them globally.<br><br></pre><pre><br>🔹NPM <br> It is the package manager <br> for JavaScript and the default <br> package manager for Node.js.<br><br><br>🔹NPX<br> It is a part or comes with NPM.<br><br></pre><p>Thank You</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d20c98257d00" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Reserve App]]></title>
            <link>https://anuragaffection.medium.com/reserve-app-804fb84eb895?source=rss-ad9ede5ce6cd------2</link>
            <guid isPermaLink="false">https://medium.com/p/804fb84eb895</guid>
            <category><![CDATA[html]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[tailwind-css]]></category>
            <dc:creator><![CDATA[Anurag Affection]]></dc:creator>
            <pubDate>Sat, 26 Aug 2023 13:39:47 GMT</pubDate>
            <atom:updated>2023-08-26T13:39:47.969Z</atom:updated>
            <content:encoded><![CDATA[<pre>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br><br>&lt;head&gt;<br>    &lt;meta charset=&quot;UTF-8&quot; /&gt;<br>    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot; /&gt;<br>    &lt;title&gt;Reserve&lt;/title&gt;<br>    &lt;link rel=&quot;stylesheet&quot; href=&quot;style.css&quot;&gt;<br><br>    &lt;script src=&quot;https://cdn.tailwindcss.com&quot;&gt;&lt;/script&gt;<br>    &lt;!-- Added Tailwind CDN --&gt;<br><br>&lt;/head&gt;<br><br><br>&lt;body&gt;<br><br><br>    &lt;header class=&quot;w-full p-2 border-b-4 border-[rgba(201, 195, 195, 0.778)] font-semibold flex justify-between items-center sticky top-0 bg-white shadow-sm&quot;&gt;<br><br>        &lt;div class=&quot;flex items-center ml-2 sm:ml-10&quot;&gt;<br>            &lt;img src=&quot;https://freepngimg.com/thumb/bus/2-bus-png-image.png&quot; alt=&quot;bus&quot;<br>                class=&quot;w-8 h-8 mr-1&quot; /&gt;<br>            &lt;div class=&quot;ml-1 text-orange-500 font-bold&quot;&gt;RESERVE&lt;/div&gt;<br>        &lt;/div&gt;<br><br><br>        &lt;nav class=&quot;flex flex-1 justify-end sm:justify-between ml-2 sm:ml-10&quot;&gt;<br>            &lt;div class=&quot;hidden sm:inline&quot;&gt;<br>                &lt;a href=&quot;&quot; target=&quot;_blank&quot; class=&quot;nav-elements mx-5&quot;&gt;Tickets&lt;/a&gt;<br>                &lt;a href=&quot;&quot; target=&quot;_blank&quot; class=&quot;nav-elements mx-5&quot;&gt;Contact Us&lt;/a&gt;<br>            &lt;/div&gt;<br>            &lt;div class=&quot;mr-1 sm:mr-5&quot;&gt;<br>                &lt;a href=&quot;&quot; class=&quot;rounded-md bg-orange-400 px-5 py-1 mx-1 sm:mx-3 text-black&quot;&gt;Login&lt;/a&gt;<br>                &lt;a href=&quot;&quot; class=&quot;nav-elements mx-1 sm:mx-3&quot;&gt;Register&lt;/a&gt;<br>            &lt;/div&gt;<br>        &lt;/nav&gt;<br><br>    &lt;/header&gt;<br><br><br><br>    &lt;main&gt;<br><br><br>        &lt;section class=&quot;w-full h-[40vh] bg-gradient-to-r from-cyan-500 to-blue-500 pb-5 flex flex-col justify-center sm:justify-end items-center&quot;&gt;<br><br>            &lt;div class=&quot;w-full flex justify-center flex-col sm:flex-row&quot;&gt;<br><br>                &lt;div class=&quot;sm:w-60 md:w-80 lg:w-96 border bg-white rounded-sm m-5 p-1&quot;&gt;<br>                    &lt;p class=&quot;pl-1 font-semibold&quot;&gt;From:&lt;/p&gt;<br>                    &lt;select name=&quot;Depart&quot; class=&quot;border-none w-full&quot;&gt;<br>                        &lt;option value=&quot;Delhi&quot;&gt;Venice&lt;/option&gt;<br>                        &lt;option value=&quot;Mumbai&quot;&gt;Mumbai&lt;/option&gt;<br>                        &lt;option value=&quot;Bengaluru&quot;&gt;Bengaluru&lt;/option&gt;<br>                        &lt;option value=&quot;Chennai&quot;&gt;Chennai&lt;/option&gt;<br>                    &lt;/select&gt;<br>                &lt;/div&gt;<br><br>                &lt;div class=&quot;sm:w-60 md:w-80 lg:w-96 border bg-white rounded-sm m-5 p-1&quot;&gt;<br>                    &lt;p class=&quot;pl-1 font-semibold&quot;&gt;To:&lt;/p&gt;<br>                    &lt;select name=&quot;arrive&quot; class=&quot;border-none w-full&quot;&gt;<br>                        &lt;option value=&quot;Delhi&quot;&gt;Delhi&lt;/option&gt;<br>                        &lt;option value=&quot;Mumbai&quot;&gt;Mumbai&lt;/option&gt;<br>                        &lt;option value=&quot;Bengaluru&quot;&gt;Bengaluru&lt;/option&gt;<br>                        &lt;option value=&quot;Chennai&quot;&gt;Chennai&lt;/option&gt;<br>                    &lt;/select&gt;<br>                &lt;/div&gt;<br><br>            &lt;/div&gt;<br><br>            &lt;button type=&quot;button&quot; class=&quot;rounded-md border-none bg-orange-500 px-7 py-2 text-black font-semibold animate-bounce&quot;&gt;Search&lt;/button&gt;<br><br>        &lt;/section&gt;<br><br><br><br><br>        &lt;section class=&quot;w-full mt-12&quot;&gt;<br><br>            &lt;h1 class=&quot;mt-5 text-center font-bold text-2xl&quot;&gt;Travel with world&#39;s largest bus services&lt;/h1&gt;<br><br>            &lt;div class=&quot;flex flex-col sm:flex-row justify-center items-center mt-10 mb-20&quot;&gt;<br><br>                &lt;div class=&quot;h-52 w-56 p-1 mx-3 my-4 sm:my-1  border-2 border-gray-400 flex flex-col justify-center items-center shadow-md shadow-gray-400&quot;&gt;<br>                    &lt;img src=&quot;https://th.bing.com/th/id/OIP.Zyf2I3tkgiLwESqMMl5E4QHaFj?pid=ImgDet&amp;rs=1&quot; alt=&quot;Bus&quot;<br>                        class=&quot;w-32 h-32&quot; width=&quot;&quot; /&gt;<br>                    &lt;h3 class=&quot;text-center font-bold mt-2&quot;&gt;2000+&lt;/h3&gt;<br>                    &lt;p class=&quot;text-center font-semibold&quot;&gt;Bus Collection&lt;/p&gt;<br>                &lt;/div&gt;<br><br>                &lt;div class=&quot;h-52 w-56 p-1 mx-3 my-4 sm:my-1 border-2 border-gray-400 flex flex-col justify-center items-center shadow-md shadow-gray-400&quot;&gt;<br>                    &lt;img src=&quot;https://static.vecteezy.com/system/resources/previews/002/326/454/large_2x/happy-customers-clients-linear-icon-vector.jpg&quot;<br>                        alt=&quot;Family&quot; class=&quot;w-32 h-32&quot; width=&quot;&quot; /&gt;<br>                    &lt;h3 class=&quot;text-center font-bold mt-2&quot;&gt;2 Million+&lt;/h3&gt;<br>                    &lt;p class=&quot;text-center font-semibold&quot;&gt;Happy customers globally&lt;/p&gt;<br>                &lt;/div&gt;<br><br>                &lt;div class=&quot;h-52 w-56 p-1 mx-3 my-4 sm:my-1 border-2 border-gray-400 flex flex-col justify-center items-center shadow-md shadow-gray-500&quot;&gt;<br>                    &lt;img src=&quot;https://th.bing.com/th/id/OIP.MVPVIq-OsiscyzFz5FLaNAHaH6?pid=ImgDet&amp;w=1300&amp;h=1390&amp;rs=1&quot;<br>                        alt=&quot;Ticket&quot; class=&quot;w-32 h-32&quot; width=&quot;&quot; /&gt;<br>                    &lt;h3 class=&quot;text-center font-bold mt-2&quot;&gt;5000+&lt;/h3&gt;<br>                    &lt;p class=&quot;text-center font-semibold&quot;&gt;Tickets book everyday&lt;/p&gt;<br>                &lt;/div&gt;<br><br>            &lt;/div&gt;<br><br>        &lt;/section&gt;<br><br><br><br>        &lt;section class=&quot;w-full bg-gray-100 my-8&quot;&gt;<br><br>            &lt;div class=&quot;flex flex-col md:flex-row justify-center items-center md:items-start p-5&quot;&gt;<br><br>                &lt;div class=&quot;border bg-white p-3 mx-1 my-2 max-w-sm h-44&quot;&gt;<br>                    &lt;div&gt;<br>                        &lt;h3 class=&quot;my-1 font-semibold text-xl&quot;&gt;Vatsal Agarwal&lt;/h3&gt;<br>                        &lt;h4 class=&quot;my-2 font-semibold&quot;&gt;Customer since 2020&lt;/h4&gt;<br>                    &lt;/div&gt;<br>                    &lt;p class=&quot;w-10 h-5 my-2 rounded-md bg-green-600 text-white text-sm text-center font-normal&quot;&gt;4.9 &amp;#9734;&lt;/p&gt;<br>                    &lt;p&gt;Amazing travel experience with reserve. Excellent staff.&lt;/p&gt;<br>                &lt;/div&gt;<br><br>                &lt;div class=&quot;border bg-white p-3 mx-1 my-2 max-w-sm h-44&quot;&gt;<br>                    &lt;div&gt;<br>                        &lt;h3 class=&quot;my-1 font-semibold text-xl&quot;&gt;Rohan Sharma&lt;/h3&gt;<br>                        &lt;h4 class=&quot;my-2 font-semibold&quot;&gt;Customer since 2022&lt;/h4&gt;<br>                    &lt;/div&gt;<br>                    &lt;p class=&quot;w-10 h-5 my-2 rounded-md bg-green-600 text-white text-sm text-center font-normal&quot;&gt;4.3 &amp;#9734;&lt;/p&gt;<br>                    &lt;p&gt;Amazing service. Always a best time with reserve.&lt;/p&gt;<br>                &lt;/div&gt;<br><br>                &lt;div class=&quot;border bg-white p-3 mx-1 my-2 max-w-sm h-44&quot;&gt;<br>                    &lt;div&gt;<br>                        &lt;h3 class=&quot;my-1 font-semibold text-xl&quot;&gt;Virat Kohli&lt;/h3&gt;<br>                        &lt;h4 class=&quot;my-2 font-semibold&quot;&gt;Customer since 2019&lt;/h4&gt;<br>                    &lt;/div&gt;<br>                    &lt;p class=&quot;w-10 h-5 my-2 rounded-md bg-green-600 text-white text-sm text-center font-normal&quot;&gt;4.5 &amp;#9734;&lt;/p&gt;<br>                    &lt;p&gt;Bus was clean and the journey was smooth. Reached on time.&lt;/p&gt;<br>                &lt;/div&gt;<br><br>            &lt;/div&gt;<br><br>        &lt;/section&gt;<br><br>    &lt;/main&gt;<br><br><br><br><br>    &lt;!--  columns-n  =  when its childs are of same type --&gt;<br>    &lt;!--  flex = can be used everywhere  --&gt;<br>    &lt;!--  basically flex is more advance than column --&gt;<br>    &lt;footer class=&quot;w-full flex flex-col sm:flex-row justify-center items-center bg-red-100 mb-1 pb-2 py-3 px-1 gap-1&quot;&gt;<br><br>        &lt;!-- flex1 = this will allow to grow &amp; shrink independently --&gt;<br>        &lt;p class=&quot;flex-1 font-semibold&quot;&gt;&amp;copy; 2023 Anurag Affection. All rights reserved&lt;/p&gt;<br><br>        &lt;div class=&quot;flex flex-1 justify-center items-center gap-3&quot;&gt;<br>            &lt;a href=&quot;https://www.youtube.com/anuragaffection&quot; target=&quot;_blank&quot;&gt;&lt;img<br>                    src=&quot;https://1.bp.blogspot.com/-zaoiLHspoKI/XeI_0uFAeCI/AAAAAAAAF38/CyHgdY8bdOQ7d979yOJ0voSIA8b5bAF2wCLcBGAsYHQ/s1600/Youtube-Icon-2000x2000.png&quot;<br>                    alt=&quot;YouTube&quot; class=&quot;w-8 h-8&quot;&gt;&lt;/a&gt;<br><br>            &lt;a href=&quot;https://www.twitter.com/anuragaffectn&quot; target=&quot;_blank&quot;&gt;&lt;img<br>                    src=&quot;https://th.bing.com/th/id/OIP.X2o257HpNW7ME1yYHcU2QwHaHw?pid=ImgDet&amp;rs=1&quot; alt=&quot;Twitter&quot;<br>                    class=&quot;w-8 h-8&quot;&gt;&lt;/a&gt;<br><br>            &lt;a href=&quot;https://www.instagram.com/anurag.affection/&quot; target=&quot;_blank&quot;&gt;&lt;img<br>                    src=&quot;https://th.bing.com/th/id/R.5e04fd779e7607a47d0bad14976caa90?rik=MYieavaZpaXrMw&amp;riu=http%3a%2f%2f1000logos.net%2fwp-content%2fuploads%2f2017%2f02%2fNew-Instagram-logo.jpg&amp;ehk=kTNHOU7RNhSBC8VTl4FPXOmyjXgyJlrNtPiZ9qk03fA%3d&amp;risl=&amp;pid=ImgRaw&amp;r=0&quot;<br>                    alt=&quot;Instagram&quot; class=&quot;w-8 h-8&quot;&gt;&lt;/a&gt;<br>        &lt;/div&gt;<br><br>    &lt;/footer&gt;<br><br>&lt;/body&gt;<br><br>&lt;/html&gt;</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=804fb84eb895" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>