<?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 Midhun Murali on Medium]]></title>
        <description><![CDATA[Stories by Midhun Murali on Medium]]></description>
        <link>https://medium.com/@midhunmurali007?source=rss-d34e294b0196------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*pllkTXzVvzxcTUHC.</url>
            <title>Stories by Midhun Murali on Medium</title>
            <link>https://medium.com/@midhunmurali007?source=rss-d34e294b0196------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 12:39:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@midhunmurali007/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[My Journey Creating a Custom Flutter Package: Progressive FAB]]></title>
            <link>https://medium.com/@midhunmurali007/my-journey-creating-a-custom-flutter-package-progressive-fab-fe3c4fa59876?source=rss-d34e294b0196------2</link>
            <guid isPermaLink="false">https://medium.com/p/fe3c4fa59876</guid>
            <category><![CDATA[package]]></category>
            <category><![CDATA[floating-action-button]]></category>
            <category><![CDATA[flutter-app-development]]></category>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Midhun Murali]]></dc:creator>
            <pubDate>Wed, 02 Jul 2025 16:26:36 GMT</pubDate>
            <atom:updated>2025-07-02T16:26:36.306Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/218/1*fzYm2Urwdt2_T_E5KBJ2mg.png" /></figure><h3><strong>Introduction</strong></h3><p>As a passionate Flutter developer, I recently embarked on the journey of publishing my first package to <a href="https://pub.dev/">pub.dev</a>. The package, Progressive FAB, addresses a common UI challenge I faced: customising the Floating Action Button (FAB) beyond the limitations of Flutter’s default widget. In this article, I will share my experience, the challenges encountered, the solutions implemented, and how you can leverage and customise this package in your projects.</p><h3><strong>The Challenge: Customising the Floating Action Button</strong></h3><p>While working on a project, I needed a FAB that could adapt its appearance and behaviour based on user interaction and application state. The default FAB in Flutter, though versatile, did not provide the level of customisation I required.</p><p>After exploring available solutions and packages, I realised none fully met my needs. This motivated me to create a custom FAB that could be easily integrated and customised by other developers facing similar challenges.</p><h3><strong>Building the Progressive FAB Package</strong></h3><h4><strong>Design and Implementation</strong></h4><p>I started by outlining the core requirements:</p><ul><li>Support for progress overlay.</li><li>Ability to change icons and actions dynamically.</li><li>Simple API for customisation.</li></ul><p>The implementation involved creating a new widget, ProgressiveFab, which extends StatelessWidget and exposes properties for progress, icon, colour, and callback customisation. I ensured the code was clean, well-documented, and followed Dart best practices.</p><h4>Adding the Custom FAB to Your Project</h4><p>To use the package, add the following to your pubspec.yaml:</p><pre>dependencies:<br>  progressive_fab: ^0.0.2</pre><p>Then, import and use the widget:</p><pre>import &#39;package:progressive_fab/progressive_fab.dart&#39;;<br><br>floatingActionButton: ProgressiveFAB(<br>  progress: _progress,<br>  onPressed: _incrementProgress,<br>  icon: const Icon(Icons.add),<br>  fabColor: Colors.blue,<br>  progressColor: Colors.green,<br>  borderColor: Colors.grey.shade300,<br>  iconColor: Colors.white,<br>  size: 80,<br>  padding: 10,<br>),</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M92IxH6oWLXHDB_EGBDG5w.png" /></figure><h4>Customisation Options</h4><p>The ProgressiveFab widget offers several customisation options:</p><ul><li>progress (double): The progress value (0–100) to display on the FAB.</li><li>onPressed (VoidCallback?): Callback when the FAB is pressed.</li><li>size (double): The total size (diameter) of the FAB, including the progress border.</li><li>padding (double): The padding between the FAB and the progress border.</li><li>fabColor (Color): The background color of the FAB.</li><li>borderColor (Color): The color of the border (background of the progress arc).</li><li>progressColor (Color): The color of the progress arc.</li><li>icon (Widget): The icon to display inside the FAB.</li><li>iconColor (Color): The color of the icon.</li></ul><p>These options make it easy to tailor the FAB to your app’s requirements.</p><h3><strong>Testing and Optimisation</strong></h3><p>To ensure reliability, I wrote comprehensive unit tests covering:</p><ul><li>Widget rendering with different configurations.</li><li>Callback execution.</li></ul><p>The package is optimised for performance, with minimal rebuilds. Static analysis and formatting checks were enforced to maintain code quality.</p><h4>Publishing to pub.dev</h4><p>Publishing the package involved:</p><ul><li>Creating a public GitHub repository.</li><li>Writing detailed documentation and a changelog.</li><li>Ensuring all static analysis checks passed.</li><li>Running “<strong><em>flutter pub publish”</em></strong> after a successful dry run.</li></ul><h3>Conclusion</h3><p>Creating and publishing my first Flutter package was a rewarding experience. It not only solved my immediate UI challenge but also contributed to the Flutter community. I encourage fellow developers to explore, contribute, and provide feedback to help improve Progressive FAB further.</p><p>You can find the package <a href="https://pub.dev/packages/progressive_fab">here</a> and the source code on <a href="https://github.com/midhun-murali/Progressive-FAB">GitHub</a>.</p><p>Thank you for reading! If you found this article helpful, feel free to share and leave your thoughts in the comments.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fe3c4fa59876" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>