<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Rohit Kumar</title>
    <description>The latest articles on Forem by Rohit Kumar (@rohitkumarr77).</description>
    <link>https://forem.com/rohitkumarr77</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3718081%2F186c2569-3d9b-47b0-9832-d3b553ef0bc5.png</url>
      <title>Forem: Rohit Kumar</title>
      <link>https://forem.com/rohitkumarr77</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/rohitkumarr77"/>
    <language>en</language>
    <item>
      <title>Flutter Widget Deep Dive: Custom Bottom Navigation</title>
      <dc:creator>Rohit Kumar</dc:creator>
      <pubDate>Mon, 16 Feb 2026 17:00:37 +0000</pubDate>
      <link>https://forem.com/rohitkumarr77/flutter-widget-deep-dive-custom-bottom-navigation-1b4l</link>
      <guid>https://forem.com/rohitkumarr77/flutter-widget-deep-dive-custom-bottom-navigation-1b4l</guid>
      <description>&lt;p&gt;Hey Devs! Today I worked on enhancing the bottom navigation bar in my Flutter app.&lt;/p&gt;

&lt;p&gt;Replaced the default Navigation Bar with a custom Container for a premium look.&lt;/p&gt;

&lt;p&gt;Added animated glow effects on selected tabs for a casino-style interface 🎰.&lt;/p&gt;

&lt;p&gt;Used IndexedStack for smooth tab switching without rebuilding screens.&lt;/p&gt;

&lt;p&gt;Implemented AnimatedContainer + AnimatedDefaultTextStyle for smooth transitions.&lt;/p&gt;

&lt;p&gt;Cleaned up Icon + Label logic for selected/unselected state management.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;AnimatedContainer(&lt;br&gt;
  duration: Duration(milliseconds: 300),&lt;br&gt;
  decoration: BoxDecoration(&lt;br&gt;
    color: isSelected ? Colors.amber.withOpacity(0.15) : Colors.transparent,&lt;br&gt;
    borderRadius: BorderRadius.circular(20),&lt;br&gt;
    boxShadow: isSelected ? [BoxShadow(color: Colors.amber.withOpacity(0.6), blurRadius: 15)] : [],&lt;br&gt;
  ),&lt;br&gt;
  child: Column(&lt;br&gt;
    mainAxisSize: MainAxisSize.min,&lt;br&gt;
    children: [&lt;br&gt;
      Icon(icon, color: isSelected ? Colors.amber : Colors.grey),&lt;br&gt;
      SizedBox(height: 4),&lt;br&gt;
      AnimatedDefaultTextStyle(&lt;br&gt;
        duration: Duration(milliseconds: 300),&lt;br&gt;
        style: TextStyle(color: isSelected ? Colors.amber : Colors.grey, fontWeight: isSelected ? FontWeight.bold : FontWeight.normal),&lt;br&gt;
        child: Text(label),&lt;br&gt;
      ),&lt;br&gt;
    ],&lt;br&gt;
  ),&lt;br&gt;
)&lt;br&gt;
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;🎯 Result:&lt;br&gt;
A smooth, modern, and interactive navigation bar that feels premium and responsive.&lt;/p&gt;

&lt;p&gt;💬 Takeaway:&lt;br&gt;
Custom widgets + Flutter’s animation capabilities let you build high-quality, professional UI without relying on 3rd-party packages.&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>flutter</category>
      <category>mobile</category>
      <category>widget</category>
    </item>
    <item>
      <title>Flutter Build Failed: Android NDK Clang Could Not Be Found (Fix)</title>
      <dc:creator>Rohit Kumar</dc:creator>
      <pubDate>Wed, 28 Jan 2026 14:46:08 +0000</pubDate>
      <link>https://forem.com/rohitkumarr77/flutter-build-failed-android-ndk-clang-could-not-be-found-fix-26e7</link>
      <guid>https://forem.com/rohitkumarr77/flutter-build-failed-android-ndk-clang-could-not-be-found-fix-26e7</guid>
      <description>&lt;p&gt;If you’re building a Flutter app and suddenly hit this error:&lt;/p&gt;

&lt;p&gt;`Target dart_build failed:&lt;br&gt;
Error: Android NDK Clang could not be found.&lt;/p&gt;

&lt;p&gt;Execution failed for task ':app:compileFlutterBuildDebug'&lt;br&gt;
Gradle task assembleDebug failed with exit code 1`&lt;/p&gt;

&lt;p&gt;Don’t worry — this is a very common Flutter + Android Studio issue, and the fix is straightforward once you understand it.&lt;/p&gt;

&lt;p&gt;Let’s break it down 👇&lt;/p&gt;

&lt;p&gt;🔍 What does this error mean?&lt;/p&gt;

&lt;p&gt;Flutter is trying to compile native Android code (C/C++), but it can’t find Clang, the compiler that comes with the Android NDK.&lt;/p&gt;

&lt;p&gt;Even if you never wrote C++ code, many Flutter plugins (camera, Firebase, ML, video player, etc.) use native code internally.&lt;/p&gt;

&lt;p&gt;If the NDK is missing, corrupted, or misconfigured, Flutter fails to build.&lt;/p&gt;

&lt;p&gt;🚨 Common reasons this happens&lt;/p&gt;

&lt;p&gt;Android NDK not installed&lt;/p&gt;

&lt;p&gt;Wrong or unsupported NDK version&lt;/p&gt;

&lt;p&gt;NDK path missing in local.properties&lt;/p&gt;

&lt;p&gt;Corrupted NDK installation&lt;/p&gt;

&lt;p&gt;Gradle doesn’t know which NDK to use&lt;/p&gt;

&lt;p&gt;✅ Step-by-Step Fix (Tested &amp;amp; Working)&lt;br&gt;
✅ Step 1: Install Android NDK&lt;/p&gt;

&lt;p&gt;Open Android Studio:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;File → Settings&lt;br&gt;
→ Appearance &amp;amp; Behavior&lt;br&gt;
→ System Settings&lt;br&gt;
→ Android SDK&lt;br&gt;
→ SDK Tools&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Enable:&lt;/p&gt;

&lt;p&gt;✅ NDK (Side by side)&lt;/p&gt;

&lt;p&gt;✅ CMake&lt;/p&gt;

&lt;p&gt;✅ Android SDK Command-line Tools&lt;/p&gt;

&lt;p&gt;Click Apply → OK&lt;/p&gt;

&lt;p&gt;✅ Step 2: Install the recommended NDK version&lt;/p&gt;

&lt;p&gt;Flutter is most stable with:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;NDK 25.2.9519653&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;In SDK Tools:&lt;/p&gt;

&lt;p&gt;Click Show Package Details&lt;/p&gt;

&lt;p&gt;Select 25.2.9519653&lt;/p&gt;

&lt;p&gt;Install it&lt;/p&gt;

&lt;p&gt;✅ Step 3: Set NDK path manually&lt;/p&gt;

&lt;p&gt;Open:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;android/local.properties&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Add or update:&lt;/p&gt;

&lt;p&gt;`&lt;code&gt;sdk.dir=C:\\Users\\YOUR_USERNAME\\AppData\\Local\\Android\\Sdk&lt;br&gt;
ndk.dir=C:\\Users\\YOUR_USERNAME\\AppData\\Local\\Android\\Sdk\\ndk\\25.2.9519653&lt;/code&gt;&lt;br&gt;
`&lt;/p&gt;

&lt;p&gt;⚠ Windows users: Always use double backslashes (\)&lt;/p&gt;

&lt;p&gt;✅ Step 4: Specify NDK version in Gradle&lt;/p&gt;

&lt;p&gt;Open:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;android/app/build.gradle&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Inside the android {} block, add:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;ndkVersion "25.2.9519653"&lt;br&gt;
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;This prevents Gradle from picking the wrong NDK.&lt;/p&gt;

&lt;p&gt;✅ Step 5: Clean &amp;amp; rebuild&lt;/p&gt;

&lt;p&gt;Run:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;flutter clean&lt;br&gt;
flutter pub get&lt;br&gt;
flutter run&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Your project should now build successfully 🎉&lt;/p&gt;

&lt;p&gt;🔎 Extra check (recommended)&lt;/p&gt;

&lt;p&gt;Run:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;flutter doctor -v&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Make sure there are no ❌ errors under:&lt;/p&gt;

&lt;p&gt;Android toolchain&lt;/p&gt;

&lt;p&gt;Android SDK&lt;/p&gt;

&lt;p&gt;NDK&lt;/p&gt;

&lt;p&gt;🧠 Key Takeaway&lt;/p&gt;

&lt;p&gt;Flutter apps often depend on native Android code, so a correctly installed and configured NDK is essential.&lt;/p&gt;

&lt;p&gt;This error looks scary, but it’s easy to fix once you know where to look.&lt;/p&gt;

&lt;p&gt;If this helped you, feel free to ❤️ the post or share it with another Flutter dev who’s stuck on the same issue.&lt;/p&gt;

&lt;p&gt;Happy coding 🚀💙&lt;/p&gt;

</description>
      <category>flutter</category>
      <category>android</category>
      <category>ndk</category>
      <category>androidstudio</category>
    </item>
    <item>
      <title>How I Fixed “Card Theme Error” in Flutter</title>
      <dc:creator>Rohit Kumar</dc:creator>
      <pubDate>Sun, 18 Jan 2026 16:21:25 +0000</pubDate>
      <link>https://forem.com/rohitkumarr77/how-i-fixed-card-theme-error-in-flutter-3cpi</link>
      <guid>https://forem.com/rohitkumarr77/how-i-fixed-card-theme-error-in-flutter-3cpi</guid>
      <description>&lt;p&gt;While working on my Flutter project, I faced an issue where the CardTheme&lt;br&gt;
was showing errors in Android Studio. In this post, I’ll explain why this&lt;br&gt;
happens and how to fix it step by step.&lt;/p&gt;

&lt;p&gt;I was trying to customize the Card Theme in my Flutter app, but every line&lt;br&gt;
inside Card Theme was showing an error.&lt;/p&gt;
&lt;h2&gt;
  
  
  Error Code
&lt;/h2&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;CardTheme(
  elevation: 2,
  shape: RoundedRectangleBorder(
    borderRadius: BorderRadius.circular(12),
  ),
)

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;The issue happened because CardTheme parameters changed in the latest&lt;br&gt;
Flutter version. Wrapping it correctly and using the updated API fixes&lt;br&gt;
the problem.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cardTheme: const CardTheme(
  elevation: 2,
)

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After applying this fix, all errors were removed and the app worked perfectly.&lt;/p&gt;

&lt;p&gt;If you are facing similar issues in Flutter, I hope this post helps you.&lt;br&gt;
Feel free to comment if you have questions.&lt;/p&gt;

</description>
      <category>github</category>
      <category>android</category>
      <category>mobile</category>
      <category>flutter</category>
    </item>
  </channel>
</rss>
