<?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 Kartik hadiya on Medium]]></title>
        <description><![CDATA[Stories by Kartik hadiya on Medium]]></description>
        <link>https://medium.com/@kah_78256?source=rss-a5db89b447d1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*wC2egO-W_1glYPpg</url>
            <title>Stories by Kartik hadiya on Medium</title>
            <link>https://medium.com/@kah_78256?source=rss-a5db89b447d1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 19:37:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kah_78256/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 to Create Skeleton Loaders in Flutter Without Writing Placeholder Widgets]]></title>
            <link>https://medium.com/@kah_78256/how-to-create-skeleton-loaders-in-flutter-without-writing-placeholder-widgets-3a98d0de1cb2?source=rss-a5db89b447d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/3a98d0de1cb2</guid>
            <category><![CDATA[flutter-package]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[flutterdevelopmentcompany]]></category>
            <category><![CDATA[skeleton]]></category>
            <category><![CDATA[open-source]]></category>
            <dc:creator><![CDATA[Kartik hadiya]]></dc:creator>
            <pubDate>Mon, 08 Jun 2026 06:16:14 GMT</pubDate>
            <atom:updated>2026-06-08T06:16:14.220Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/490/1*ZbKkZg0WLUV-7q_zeN7zgA.gif" /><figcaption>AutoShimmerAnimate automatically generates shimmer skeleton loaders from existing Flutter widgets.</figcaption></figure><p>Loading states are an important part of every modern mobile application. When data is being fetched from an API, users expect visual feedback instead of staring at a blank screen. This is where skeleton loaders and shimmer effects come in.</p><p>If you’ve built Flutter applications that consume APIs, you’ve probably implemented loading states using shimmer effects or skeleton loaders.</p><p>The usual approach is to create a separate placeholder widget that mimics the final UI while data is being loaded. Although this works, it also means maintaining two versions of the same screen: the actual widget and the loading widget.</p><p>As applications grow, keeping both layouts synchronized becomes time-consuming and difficult to maintain.</p><p>Recently, while exploring Flutter packages on pub.dev, I came across <strong>AutoShimmerAnimate</strong>, a package that automatically generates shimmer skeleton loaders directly from existing widget trees.</p><p>After trying it in a sample project, I found it to be a surprisingly simple solution for handling loading states.</p><h3>The Problem With Traditional Skeleton Loaders</h3><p>A common implementation usually looks something like this:</p><pre>if (isLoading) {<br>  return ProductCardSkeleton();<br>}</pre><pre>return ProductCard(product);</pre><p>At first, this seems completely fine.</p><p>However, over time, a few challenges appear:</p><ul><li>You end up maintaining duplicate UI.</li><li>Every design change must be applied twice.</li><li>Skeleton layouts can easily become outdated.</li><li>Large screens become harder to manage.</li><li>Development time increases unnecessarily.</li></ul><p>The more screens your application has, the more noticeable this problem becomes.</p><h3>Introducing AutoShimmerAnimate</h3><p>AutoShimmerAnimate takes a different approach.</p><p>Instead of building a separate skeleton widget, it automatically generates a shimmer loading state from your existing widget tree.</p><p>Some of its notable features include:</p><ul><li>Automatic skeleton generation</li><li>Multiple shimmer effects</li><li>Theme support</li><li>State-based loading</li><li>Custom loading builders</li><li>Custom shimmer wrappers</li><li>Animation customization</li><li>Layered skeleton colors</li></ul><p>Package Link:</p><p><a href="https://pub.dev/packages/auto_shimmer_animate">https://pub.dev/packages/auto_shimmer_animate</a></p><h3>Installation</h3><p>Add the package to your pubspec.yaml:</p><pre>dependencies:<br>  auto_shimmer_animate: ^0.2.1</pre><p>Then run:</p><pre>flutter pub get</pre><p>Import the package:</p><pre>import &#39;package:auto_shimmer_animate/auto_shimmer_animate.dart&#39;;</pre><h3>Basic Usage</h3><p>The simplest implementation only requires wrapping your existing widget.</p><pre>AutoShimmerAnimate(<br>  isLoading: isLoading,<br>  child: ProductCard(),<br>)</pre><p>When isLoading is false, the original widget is displayed.</p><p>When isLoading is true, the package automatically generates a shimmer skeleton version of the same widget.</p><p>This removes the need to create and maintain separate placeholder widgets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/490/1*ZbKkZg0WLUV-7q_zeN7zgA.gif" /><figcaption>The package automatically converts existing widget trees into shimmer skeletons without requiring separate placeholder widgets.</figcaption></figure><h3>Handling Loading Lists</h3><p>For list-based UIs, you can provide placeholder data while content is loading.</p><pre>final visibleProducts = isLoading<br>    ? List.filled(6, Product.placeholder())<br>    : products;</pre><p>Then wrap the list widget:</p><pre>AutoShimmerAnimate(<br>  isLoading: isLoading,<br>  child: ProductList(<br>    products: visibleProducts,<br>  ),<br>)</pre><p>This allows the generated skeleton layout to closely match the final UI structure.</p><h3>Customizing The Shimmer</h3><p>One thing I liked about this package is its flexibility.</p><p>You can customize:</p><ul><li>Base color</li><li>Child skeleton color</li><li>Highlight color</li><li>Animation duration</li><li>Direction</li><li>Repeat delay</li><li>Highlight opacity</li><li>Highlight width</li></ul><p>Example:</p><pre>AutoShimmerAnimate(<br>  isLoading: isLoading,<br>  baseColor: Colors.indigo.shade100,<br>  childBaseColor: Colors.indigo.shade200,<br>  highlightColor: Colors.white,<br>  child: ProductCard(),<br>)</pre><p>This makes it easy to adapt the shimmer effect to your application’s design system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/490/1*FGe2XKuD1_UMzqYhAXytZQ.gif" /><figcaption>Customize skeleton colors to match your application’s branding and design language.</figcaption></figure><h3>Multiple Shimmer Effects</h3><p>The package includes several built-in shimmer styles.</p><h3>Sweep Effect</h3><p>The classic shimmer animation.</p><pre>effect: const AutoShimmerSweepEffect()</pre><h3>Aurora Effect</h3><p>A softer multi-color shimmer animation.</p><pre>effect: const AutoShimmerAuroraEffect()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/490/1*8fFO73qhIIWJEXd0RC8j0w.gif" /><figcaption>Aurora Effect provides a more visually appealing and premium loading experience.</figcaption></figure><h3>Pulse Effect</h3><p>Useful when you want a more subtle loading animation.</p><pre>effect: const AutoShimmerPulseEffect()</pre><h3>Raw Effect</h3><p>Provides complete control over gradients and color stops.</p><pre>effect: const AutoShimmerRawEffect()</pre><p>These options make it easy to choose a loading experience that fits your application.</p><h3>Custom Loading Builder</h3><p>Sometimes you may want complete control over the loading UI while still using shimmer animations.</p><p>AutoShimmerAnimate supports custom loading builders for such scenarios.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/490/1*wLSHrHDw5ihndeWiXGI_lg.gif" /><figcaption>Build completely custom loading layouts while still benefiting from shimmer animations.</figcaption></figure><p>This provides flexibility when your loading state needs a highly customized appearance.</p><h3>State-Based Loading</h3><p>If your application uses BLoC, Provider, Riverpod, or another state-management solution, state-based loading support is also available.</p><pre>enum ViewStatus {<br>  initial,<br>  loading,<br>  loaded,<br>}</pre><pre>AutoShimmerStateAnimate&lt;ViewStatus&gt;(<br>  state: status,<br>  loadingStates: const [<br>    ViewStatus.initial,<br>    ViewStatus.loading,<br>  ],<br>  child: ProductCard(),<br>)</pre><p>This feels much cleaner than manually checking loading states throughout the UI.</p><h3>What I Liked</h3><p>After testing the package, these were the biggest advantages:</p><p>✅ No duplicate skeleton widgets</p><p>✅ Uses existing widget trees</p><p>✅ Clean API</p><p>✅ Easy integration</p><p>✅ Multiple shimmer effects</p><p>✅ Theme support</p><p>✅ State-based loading</p><p>✅ Flexible customization options</p><h3>Final Thoughts</h3><p>Skeleton loaders significantly improve the user experience by making applications feel faster and more responsive.</p><p>What stood out to me about AutoShimmerAnimate is that it eliminates the need to manually maintain separate placeholder layouts. Instead, it reuses the existing widget tree and generates the loading state automatically.</p><p>If you’re looking for a quick and clean way to add shimmer loading states to your Flutter applications, AutoShimmerAnimate is definitely worth exploring.</p><p>You can check it out here:</p><p><a href="https://pub.dev/packages/auto_shimmer_animate">https://pub.dev/packages/auto_shimmer_animate</a></p><p>Happy Flutter coding! 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3a98d0de1cb2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create your custom button in Flutter]]></title>
            <link>https://medium.com/@kah_78256/create-your-custom-button-in-flutter-a0897efa4710?source=rss-a5db89b447d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/a0897efa4710</guid>
            <dc:creator><![CDATA[Kartik hadiya]]></dc:creator>
            <pubDate>Wed, 13 Nov 2024 07:10:43 GMT</pubDate>
            <atom:updated>2024-11-13T07:10:43.559Z</atom:updated>
            <content:encoded><![CDATA[<p>Changing button styles on multiple screens can be time-consuming and lead to code duplication. If different button styles are required, updating them later may require significant effort and result in duplicate code. this is why we don’t have to do that</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/1*ZuOiZOBOVcBK5MgahsUGaA.gif" /></figure><p>We will start with a new file because we must follow clean code architecture. The file structure will be like this :</p><p>lib/<br> ├── models/<br> ├── screens/<br> ├── widgets/<br> ├── services/<br> ├── utils/<br> └── main.dart</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a0897efa4710" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>