<?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 Taleb Rafiepour on Medium]]></title>
        <description><![CDATA[Stories by Taleb Rafiepour on Medium]]></description>
        <link>https://medium.com/@taleb-rafiepour?source=rss-18e0604e7a88------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*8ZiTomqrna3gKrgl-Zm4aA.jpeg</url>
            <title>Stories by Taleb Rafiepour on Medium</title>
            <link>https://medium.com/@taleb-rafiepour?source=rss-18e0604e7a88------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 03:13:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@taleb-rafiepour/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[Quick Introduction To Flutter]]></title>
            <link>https://taleb-rafiepour.medium.com/quick-introduction-to-flutter-9b01eaffe188?source=rss-18e0604e7a88------2</link>
            <guid isPermaLink="false">https://medium.com/p/9b01eaffe188</guid>
            <category><![CDATA[application]]></category>
            <category><![CDATA[cross-platform]]></category>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[flutter-app-development]]></category>
            <dc:creator><![CDATA[Taleb Rafiepour]]></dc:creator>
            <pubDate>Thu, 25 Feb 2021 13:31:48 GMT</pubDate>
            <atom:updated>2021-02-25T13:31:48.548Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_gBg0_VQ7-Pbl4ddwdVLkw.png" /></figure><h3>Table of content :</h3><h4>A.<strong> What is Flutter?</strong></h4><h4>B.<strong> How Flutter works?</strong></h4><h4>C.<strong> What are the advantages of using Flutter?</strong></h4><h4>D.<strong> What are the disadvantages of Flutter?</strong></h4><h4>E.<strong> What are the prerequisites before start learning Flutter?</strong></h4><h4>F.<strong> Summary</strong></h4><h3>What is Flutter?</h3><h4>Where it comes from and for what goal? :</h4><p><a href="https://flutter.dev/"><strong>Flutter</strong></a> is an open-source and free <strong>cross-platform</strong> <strong>UI toolkit </strong>introduced by <a href="https://developers.google.com/">Google</a> for creating high-quality native apps with an <strong>engine that is written in C++</strong>. Flutter was presented in December 2018 as the first stable version 1.0 at the <a href="https://developers.google.com/events/flutter-live">Flutter Live Event</a>. in other words, Flutter is a <strong>guest</strong> framework that is responsible for building beautiful and <strong>pixel-perfect</strong> UI.</p><blockquote><strong>“</strong>Flutter is Google’s UI toolkit for building beautiful, natively compiled applications for <a href="https://flutter.dev/docs">mobile</a>, <a href="https://flutter.dev/web">web</a>, and <a href="https://flutter.dev/desktop">desktop</a> from a single codebase.<strong>”-</strong>Google, <a href="https://flutter.dev/">flutter.dev</a>.</blockquote><h4>Flutter Uses Dart Language :</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a6LgIctb84u_nRyUpgHsTA.png" /></figure><p>You can create your application by Flutter framework with the help of a powerful language named <a href="https://dart.dev/"><strong>Dart</strong></a><strong>, </strong>Dart is a typed object-oriented, client-optimized, and general-purpose programming language created by Google in October 2011.</p><h4>The main idea behind Flutter :</h4><p>The main idea of Flutter is that developers can build an entire user interface by simply combining different <strong>Widget</strong>s, in Flutter <strong>everything is a Widget </strong>and in the general, the whole application is a widget itself created by smaller Widgets, Flutter often uses the <strong>composition approach</strong> to create the bigger widget by combining the smaller widgets.</p><p>Flutter offers many <strong>ready-to-use</strong> <strong>Widget</strong>s to create a modern application, A Widget can be a unique Button, Text, Input, Style element, or a pop-up screen, etc.</p><h4>A Sample Flutter Application (Everything is a Widget) :</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9SWz1v-5UJ8UbDDQ_EdwcA.png" /><figcaption>Everything is a widget in Flutter</figcaption></figure><h4>Widget Tree Of Above ☝️ Sample Application:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J6AKMjvw3pGctTQ5VUQ2uQ.png" /><figcaption>Widget tree of the above design</figcaption></figure><h4>One piece of code in Dart :</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KAiWys7T7zGx0UELinhHxA.png" /></figure><h4>Flutter Power :</h4><p>Flutter is fast in rendering and it renders <strong>60 fps </strong>in all devices and <strong>120 fps</strong> for capable devices.</p><p>The application logic is based on <strong>reactive-programming</strong>, <strong>Widgets </strong>may optionally have a state (there is two types of widget, <strong>StatelessWidget </strong>for static UI and <strong>StatefulWidget </strong>for dynamic UI) and by changing the state of widgets, Flutter will automatically (reactive-programming) compare <strong>old Widget state with new Widget state</strong> and render the widget with <strong>only necessary changes</strong> instead of re-rendering the whole widget.</p><h4>Below are two types of reactive-platform architecture :</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kABW6NeCkvouHoqdygFRYw.png" /><figcaption><strong>Reactive-platforms architecture vs Flutter architecture</strong></figcaption></figure><p>More description about this picture will be described in the <strong>How Flutter Works</strong> section, so memorize this image🤯.</p><h4>What Flutter Consist Of? :</h4><p>Flutter consists of an <strong>SDK (Software Development Kit)</strong> and a <strong>Framework</strong>.</p><ol><li><a href="https://flutter.dev/docs/development/tools/sdk/releases?tab=macos"><strong>Flutter SDK</strong></a> is a collection of tools that are going to help you develop your application. this includes tools to compile your code into machine code (code for mobile(iOS, Android), desktop(macOS, Linux, Windows), Web,device-embedded).</li></ol><p>2. <a href="https://flutter.dev/docs/reference/widgets"><strong>Flutter Framework</strong></a> is a collection of reusable UI elements (Buttons, Text, Inputs, Sliders,…) that you can personalize for your own need.</p><blockquote><strong>“</strong>Our vision for Flutter is something that many of us have been dreaming of for years, a powerful, general purpose, open UI kit for building stuning experience on any device-embeded,mobile,desktop and beyond<strong>”</strong>-<a href="https://www.linkedin.com/in/timsneath/">Tim Sneath</a>,Group Product Manager At Google.</blockquote><h3>How Flutter Works?</h3><ol><li><strong>Declarative UI and Reactive-style</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TdNzTF8rJitzx2mj25R2mg.png" /><figcaption><strong>Declarative UI</strong></figcaption></figure><p>As I mentioned before the main idea of Flutter is <strong>Widget</strong>, this means you can create every UI in a <strong>Declarative and</strong> <strong>reactive-style </strong>by combining different widgets, so Flutter doesn’t use native UI controls which available on each platform because it has a <a href="https://flutter.dev/docs/reference/widgets"><strong>rich set of widgets</strong></a> by itself that are built to <strong>replicate</strong> native controls with <strong>high fidelity</strong>.</p><p>Flutter is responsible for drawing the whole UI by itself (<strong>Skia Engine</strong>), and it <strong>controls every single pixel</strong> on the screen, rendering is completely controlled with <strong>Flutter SDK </strong>which is composed of <strong>Flutter Framework</strong> and <strong>Flutter Engine</strong>.</p><p>2. <strong>Ahead Of Time (AOT) Compilation</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*biLSkwQHjeQqicj2Dma8qQ.png" /><figcaption><strong>Dart AOT and JIT</strong></figcaption></figure><p>Flutter uses “<strong>Dart Ahead Of Time (AOT)” </strong>compilation in<strong> release mode</strong> which compiles Dart codes into the native codes for every platform(Native iOS, Android, Web, …), this is a very great thing and causes high performance of the application production as same as a native app.</p><p>3. <strong>Just In Time Compilation (Hot Reload)</strong></p><p>Flutter uses a “<strong>just-in-time”</strong> compilation in <strong>debug mode</strong> for creating a <strong>Dart virtual machine </strong>to run on platforms such as Windows,macOS, and Linux. and this causes <strong>fast compilation after the first compile</strong> of the app, when we do some modifications in the source file, it will inject to running application very fastly (some seconds or some milliseconds depends on your Widget size). this feature is named “<strong>Hot Reload”</strong> in Flutter.</p><p>4. <strong>Generational Garbage Collection</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KFZ8qshZNFFriKoj4TXCuA.png" /></figure><p>Dart uses a “<strong>generational garbage collector” </strong>which is very efficient for rendering the UI, it refreshes the UI for every frame and accomplishes this by creating many objects which may be alive for no more than one frame.</p><p>5. <strong>Tree Shaking</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*flIEVK3zMD3R2T4UvM9FRg.png" /><figcaption>Tree Shaking Compiler</figcaption></figure><p>Dart has a “<strong>Tree Shaking” </strong>compiler that <strong>only includes the code you need</strong> in your app, for example, if you need just a widget or two, you can use its large library of widgets freely and when you compile your app the <strong>unused codes will be ignored</strong>.</p><p>6. <strong>Platform Channel</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W5ithTYDJUlSYeJTBCmNCg.png" /><figcaption><strong>Platform Channel Structure</strong></figcaption></figure><p>Flutter has no direct access to the platforms specific hardware API (Native APIs) by itself, for example, if you want to access the specific hardware API and OS capability (like the Battery, Wifi, Bluetooth, Services,…) you must use <a href="https://flutter.dev/docs/development/platform-integration/platform-channels"><strong>Platform Channel</strong></a><strong> </strong>in your Dart code, <strong>Platform Channel</strong> is used for communicating with platform-specific APIs<strong>.</strong></p><p><strong>Platform channel</strong> is an API that provides a simple mechanism for communicating data between your Dart code and the platform-specific code of your host app (such as Android, iOS, Web,…), and it lets you write your code in Java, Kotlin, Swift, etc, if you want, and sometimes is required to do that to achieve your goal.</p><p>For accessing every platform-specific APIs like Bluetooth, Wifi, Notification, etc, there is a package created for that and everything else that comes to your mind someone else created a package for that on the official website of Flutter packages named <a href="https://pub.dev/"><strong>pub.dev</strong></a>.</p><h3>What are the advantages of using Flutter?</h3><ol><li><strong>Save time and money</strong></li></ol><p>You can <strong><em>save money</em></strong> by writing a single code base in Flutter and make an App for multiple platforms at the same time. and you can <strong><em>save time</em></strong> by creating expressive and complex UI using widgets (there are many widgets for everything) in a <strong>Declarative and Reactive style</strong> (Dart is very powerful at creating complex widgets with animations and custom design).</p><p>2. <strong>Quick development</strong></p><p>Flutter makes the development process very faster than usual with the help of “<strong>Hot Reload”. </strong>you can quickly change the UI or business logic without restarting the app. and this makes the programming very fast and interactive, for example, if you working beside a designer or an end-user you can do suggested changes quickly and get instant response from your development partner.</p><p>3. <strong>High performance</strong></p><p>Flutter has its own Widget and <strong>no need to access OEM</strong> (Original Equipment Manufacturer)ones so there is <strong>less communication between the Flutter app and specific Platform</strong>, also Flutter uses <strong>Dart AOT</strong> which compiles Dart code directly into the native code and finally <strong>machine code</strong>.</p><p>4. <strong>Compatibility</strong></p><p>As I mentioned above Flutter uses <strong>Widget</strong>s for creating UI and rendering it on every platform by a 2D graphics rendering engine named <strong>Skia</strong>,<strong> </strong>so rendering UI is the responsibility of <strong>Flutter Engine</strong> and this good feature confident that Flutter applications can work on every OS version (no matter an old OS version or future OS version) with more compatibility.</p><p>5. <strong>Open-source</strong></p><p>Both <a href="https://flutter.dev/"><strong>Flutter</strong></a> and <a href="https://dart.dev/"><strong>Dart</strong></a><strong> </strong>are free and <a href="https://github.com/flutter/flutter">open-source</a>. open-source has very good advantages like big <strong>community support</strong>, <strong>technology agility</strong>, <strong>fast</strong> <strong>development speed</strong>, <strong>solid information security</strong>, <strong>reliability</strong> (because there are more eyes on it), <strong>faster time to market,</strong> and more.</p><p>6. <strong>Great UI</strong></p><p>With Flutter, you can create beautiful and custom designs so you don’t need the platform-specific component to render its UI, and the only thing that Flutter needs is a <strong>canvas </strong>to draw the whole application UI on it.</p><h3>What are the disadvantages of Flutter?</h3><ol><li>Large file size of installing the app (greater than 4MB).</li><li>Difficult maintaining of code because the framework and Dart language is updating rapidly.</li><li>Doesn&#39;t support Android TV and Apple TV.</li></ol><h3>What are the prerequisites before start learning Flutter?</h3><ol><li>Familiar with at least one of the <strong>OOP</strong> (Object Oriented Programming) languages like Java, C++, Swift, PHP, Python,…</li><li>Familiar with at least one of the <strong>application framework</strong>s like Android, iOS,… or <strong>web framework</strong>s like Laravel, Django, React.js,…</li></ol><h3>Summary</h3><p>Flutter is different from other cross-platform frameworks because of the specific architecture that I described for you. learning Flutter is very easy and fast, and if you are a developer and you come from other frameworks you can fastly <strong>map your knowledge from that frameworks</strong> to the Flutter framework <a href="https://flutter.dev/docs/get-started/flutter-for/android-devs">here</a>.</p><blockquote>If this article was useful for you, please <strong>press and hold</strong> 😊 the <strong>clap</strong> 👏🏻 button to motivate me to write new articles🙏🏼 , I will write many articles about different <strong>challenges in Flutter Applications</strong>. follow me on <a href="https://www.linkedin.com/in/taleb-rafiepour">LinkedIn</a> if you want to notify when i published a new article.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9b01eaffe188" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>