<?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 Tushar Asodariya on Medium]]></title>
        <description><![CDATA[Stories by Tushar Asodariya on Medium]]></description>
        <link>https://medium.com/@tushar-asodariya?source=rss-36b6c5211d4d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*_G-QI4Vh-Q7SSAdOwkjIxQ.png</url>
            <title>Stories by Tushar Asodariya on Medium</title>
            <link>https://medium.com/@tushar-asodariya?source=rss-36b6c5211d4d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 13:02:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tushar-asodariya/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[Why High-IQ People Procrastinate More]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://tushar-asodariya.medium.com/the-mental-shift-that-ends-procrastination-4afc591d0220?source=rss-36b6c5211d4d------2"><img src="https://cdn-images-1.medium.com/max/2600/1*Q4jfS1n2sWYkDgHcYef5xg.png" width="2752"></a></p><p class="medium-feed-snippet">It&#x2019;s a frustratingly familiar cycle: you know exactly what you need to do. You might even want to do it. Yet, you find yourself unable to&#x2026;</p><p class="medium-feed-link"><a href="https://tushar-asodariya.medium.com/the-mental-shift-that-ends-procrastination-4afc591d0220?source=rss-36b6c5211d4d------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://tushar-asodariya.medium.com/the-mental-shift-that-ends-procrastination-4afc591d0220?source=rss-36b6c5211d4d------2</link>
            <guid isPermaLink="false">https://medium.com/p/4afc591d0220</guid>
            <category><![CDATA[procrastination]]></category>
            <category><![CDATA[overcome-procrastination]]></category>
            <category><![CDATA[mental-toughness]]></category>
            <category><![CDATA[laziness]]></category>
            <dc:creator><![CDATA[Tushar Asodariya]]></dc:creator>
            <pubDate>Wed, 07 Jan 2026 21:07:56 GMT</pubDate>
            <atom:updated>2026-01-10T21:07:32.545Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Implement Reading Progress Bar using Flutter]]></title>
            <link>https://tushar-asodariya.medium.com/implement-reading-progress-bar-using-flutter-c5125dc1d3b6?source=rss-36b6c5211d4d------2</link>
            <guid isPermaLink="false">https://medium.com/p/c5125dc1d3b6</guid>
            <category><![CDATA[flutter-app-development]]></category>
            <category><![CDATA[flutter-ui]]></category>
            <category><![CDATA[flutter-widget]]></category>
            <category><![CDATA[flutter-progress-bar]]></category>
            <category><![CDATA[animated-progress-bar]]></category>
            <dc:creator><![CDATA[Tushar Asodariya]]></dc:creator>
            <pubDate>Sat, 23 Apr 2022 10:03:29 GMT</pubDate>
            <atom:updated>2022-04-23T10:03:29.018Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZmkGs7BXgr2hxYzB0IlTxw.gif" /><figcaption>Implement Reading Progress Bar using Flutter</figcaption></figure><p>Have you seen the progress bar that fills up as we scroll down the article we are reading? If not, then <a href="https://www.cssscript.com/demo/top-progress-bar-reading/">check now</a>.</p><p>So, that looks freaking amazing and so intuitive, isn’t it?</p><p>Now, let’s dive into the quest of how to implement that reading progress bar using Flutter. Before that, let me inform you that I am going to implement this for mobile applications, so feel free to use this approach and implement it for any other screen you like.</p><p>Enough, of talking.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/0*edCfxI4Ign1O1K_3" /></figure><p>First of all, we need a <strong>screen with lots of words on it </strong>and of course, it should <strong>be scrollabl</strong>e.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2Fl0ErAuedm3sECRdzq%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Fl0ErAuedm3sECRdzq%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2Fl0ErAuedm3sECRdzq%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/30524041e5a83fa42fa4d2a00388de81/href">https://medium.com/media/30524041e5a83fa42fa4d2a00388de81/href</a></iframe><p>For that, I have used HTML content and rendered that using <a href="https://pub.dev/packages/flutter_widget_from_html_core"><em>flutter_widget_from_html_core</em></a><em>.</em></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FfwbZnTftCXVocKzfxR%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FfwbZnTftCXVocKzfxR%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FfwbZnTftCXVocKzfxR%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="307" frameborder="0" scrolling="no"><a href="https://medium.com/media/cb414786b6bc70a9a0babb0654d7460c/href">https://medium.com/media/cb414786b6bc70a9a0babb0654d7460c/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8d366ebbb33fa4d9612a3cec9941ec12/href">https://medium.com/media/8d366ebbb33fa4d9612a3cec9941ec12/href</a></iframe><p>Here’s, what it looks like.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/304/1*mq2RSV0k-rpmgWAdwHcxQw.gif" /><figcaption>Scrollable View</figcaption></figure><p>Then, we will get some UI for the progress indicators. Well, for that I have used <a href="https://pub.dev/packages/percent_indicator"><em>percent_indicator</em></a> and added that to the bottom navigation bar property of the <em>Scaffold</em> widget. (Obviously, you can place it anywhere!)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VJSQCMm-Xy8WAWOG1a59xg.png" /><figcaption>Linear Percent Indicator</figcaption></figure><p>Now, we will create an object of ScrollController and will assign that to the controller property of our scrollable widget(SingleChildScrollView or ListView).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rwFP6m0mJ0IC2c9q2fj3ew.png" /><figcaption>ScrollController added to SingleChildScrollView</figcaption></figure><p>Now, It’s time…</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F9tDoZmNDdLrMhBmngA%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F9tDoZmNDdLrMhBmngA%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2F9tDoZmNDdLrMhBmngA%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="435" frameborder="0" scrolling="no"><a href="https://medium.com/media/e9da28e1d0f7c0a36d46de14700512bb/href">https://medium.com/media/e9da28e1d0f7c0a36d46de14700512bb/href</a></iframe><p>It’s time to create a progressValue variable, which will store the value of, how much we have scrolled through the screen and assign that to the <strong><em>percent</em></strong> property of the <strong><em>LinearPercentIndicator</em></strong> widget.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tft2mb8ddOl1Qo3bGbY_Sg.png" /></figure><p>Finally, it’s time to add a listener to our scroll controller, to get the values of how much we have scrolled through the screen.</p><p>Let’s look at the implementation of Scrollcontroller, to know which properties we can use to get the values of how much the user has scrolled through the screen.</p><p>Using <em>offset</em> property we will get current position of how much we have scrolled through the screen. But that value will go higher than 100, so we will divide that <em>offset</em> value with <em>maxScrollExtent</em> property of <em>position</em> from <em>scrollController</em>. Here, position is object of <a href="https://api.flutter.dev/flutter/widgets/ScrollPosition-class.html"><em>ScrollPosition</em></a> class.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NmJ1ShkTmHdiCe6aozRJ5g.png" /></figure><p>Also, after assigning value to progressValue, add setState(), to rebuild the widget.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2Fej38v8TyQKQtj6C9FN%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Fej38v8TyQKQtj6C9FN%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2Fej38v8TyQKQtj6C9FN%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="277" frameborder="0" scrolling="no"><a href="https://medium.com/media/b5066d297597eca112c98db2e162b702/href">https://medium.com/media/b5066d297597eca112c98db2e162b702/href</a></iframe><p>Here’s the output :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/304/1*UCIe7ZpDptd7_slU01jTMQ.gif" /></figure><p><strong>Voila</strong>!!!, we did it.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F3o6ZtkTtNTSngwbh1m%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F3o6ZtkTtNTSngwbh1m%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2F3o6ZtkTtNTSngwbh1m%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="435" frameborder="0" scrolling="no"><a href="https://medium.com/media/8f4b745ba529337e2781cb3b4848c37a/href">https://medium.com/media/8f4b745ba529337e2781cb3b4848c37a/href</a></iframe><p>But, wait there’s two issues over here.</p><ol><li>It will throw an error when we scrolls up from the top, as the value we get from <em>offset</em> property will be negative and <em>percent</em> property only accepts positive value.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JhQ1r3d3EOMRVxmXDNpQMg.gif" /></figure><p>2. It will through an error when we scrolls down from the bottom, as the value we get from after division will be greater than 1.0 and <em>percent</em> property only accepts value from 0.0 to 1.0.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2QPlyleeu1Vc2ndVFsRdgw.gif" /></figure><p>No Worries!!!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F5491799&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Ftomhardy-handleit-gangster-gif-5491799&amp;image=https%3A%2F%2Fc.tenor.com%2FQsXIo-wT9QwAAAAC%2Ftomhardy-handleit.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/3627697c5c5656b597091baa536c03b1/href">https://medium.com/media/3627697c5c5656b597091baa536c03b1/href</a></iframe><p>Here’s the quick fix for these issues.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cJuqPp7MY2Lmy2tyEQFYlA.png" /></figure><p>Finally, we have implemented reading progress bar using Flutter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/342/1*-1heyf-eteSwUyVIF25nzg.gif" /></figure><p>Please, check out this git repo to look at full code and please do <strong>follow</strong> me on <strong>Github</strong> as well as here on <strong>Medium</strong>, too. Thank you!!!</p><p><a href="https://github.com/tushar-asodariya/flutter_reading_progress_bar">GitHub - tushar-asodariya/flutter_reading_progress_bar: Reading Progress Bar implementation using Flutter</a></p><p>I would love to read your responses for this article, so please do <strong>comment</strong> as well as all <strong>claps</strong> you will give me keeps me motivated to create more and share more with everyone.</p><p>See you, then Till next article.</p><p>Happy Fluttering!!!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F22736994&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fjim-carrey-jim-carrey-typing-jim-carrey-typing-angry-jim-carrey-typing-fast-gif-22736994&amp;image=https%3A%2F%2Fc.tenor.com%2FDnMOr2rgYaQAAAAM%2Fjim-carrey-jim-carrey-typing.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/dad0244612af930ecb1e81a3686832a2/href">https://medium.com/media/dad0244612af930ecb1e81a3686832a2/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c5125dc1d3b6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>