<?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>DEV Community: MɑԵհeմՏ ѵíղícíմՏ</title>
    <description>The latest articles on DEV Community by MɑԵհeմՏ ѵíղícíմՏ (@matheusvinicius).</description>
    <link>https://dev.to/matheusvinicius</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%2F2519947%2F9905893d-443c-406a-8ac6-05dc979c0816.jpg</url>
      <title>DEV Community: MɑԵհeմՏ ѵíղícíմՏ</title>
      <link>https://dev.to/matheusvinicius</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/matheusvinicius"/>
    <language>en</language>
    <item>
      <title>How I Built a Mini-OS in Flutter Web: Solving the Bundle Size Challenge with WASM</title>
      <dc:creator>MɑԵհeմՏ ѵíղícíմՏ</dc:creator>
      <pubDate>Tue, 12 May 2026 00:48:47 +0000</pubDate>
      <link>https://dev.to/matheusvinicius/how-i-built-a-mini-os-in-flutter-web-solving-the-bundle-size-challenge-with-wasm-o7p</link>
      <guid>https://dev.to/matheusvinicius/how-i-built-a-mini-os-in-flutter-web-solving-the-bundle-size-challenge-with-wasm-o7p</guid>
      <description>&lt;h3&gt;
  
  
  The Vision: mathOS
&lt;/h3&gt;

&lt;p&gt;I’ve always felt that standard "single-page" portfolios were a bit too static. To push the boundaries of &lt;strong&gt;Flutter Web&lt;/strong&gt; and &lt;strong&gt;WebAssembly (WASM)&lt;/strong&gt;, I decided to build &lt;strong&gt;mathOS&lt;/strong&gt;—a desktop-inspired environment right in the browser. &lt;/p&gt;

&lt;p&gt;It features draggable windows, a Spotlight-style search, and a real-time guestbook. But as every Flutter Web developer knows, with great UI comes a great... &lt;strong&gt;bundle size&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Hurdle: Initial Loading Performance
&lt;/h3&gt;

&lt;p&gt;When I first compiled the project using WASM, the initial bundle was heavier than I liked. In the web world, every second of loading is a lost visitor. I looked for a straightforward deferred (lazy) loading solution that played well with Flutter’s latest rendering engine, but I couldn't find exactly what I needed.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Solution: Building &lt;code&gt;flutter_lazy_load_web&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;Instead of compromising on the UI, I decided to build my own solution. I developed and published &lt;strong&gt;flutter_lazy_load_web&lt;/strong&gt; on pub.dev. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What it does:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Wraps Dart’s deferred library loading.&lt;/li&gt;
&lt;li&gt;Splits screens and heavy logic into on-demand chunks.&lt;/li&gt;
&lt;li&gt;Reduces the initial JS/WASM overhead significantly.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Engineering Excellence
&lt;/h3&gt;

&lt;p&gt;This wasn't just a "weekend project." To ensure it was production-ready, I implemented:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;100% Test Coverage:&lt;/strong&gt; Ensuring that every window and interceptor works as expected.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CI/CD Pipeline:&lt;/strong&gt; Automated testing and deployment on every push.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;WASM Support:&lt;/strong&gt; Leveraging the latest performance improvements in the Flutter ecosystem.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Conclusion
&lt;/h3&gt;

&lt;p&gt;Building mathOS taught me that the limitations of a framework are often just opportunities to build new tools for the community. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Check out the live demo and the source code here:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;mathOS Live:&lt;/strong&gt; &lt;a href="https://matheusvinicius.dev.br/" rel="noopener noreferrer"&gt;https://matheusvinicius.dev.br/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The Package:&lt;/strong&gt; &lt;a href="https://pub.dev/packages/flutter_lazy_load_web" rel="noopener noreferrer"&gt;https://pub.dev/packages/flutter_lazy_load_web&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GitHub Repo:&lt;/strong&gt; &lt;a href="https://github.com/Mathvdias/portfolio" rel="noopener noreferrer"&gt;https://github.com/Mathvdias/portfolio&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I’d love to hear your thoughts on WASM performance and how you are handling bundle sizes in your own Flutter Web projects&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/url" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/url" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>flutter</category>
      <category>dart</category>
      <category>webassembly</category>
      <category>performance</category>
    </item>
  </channel>
</rss>
