<?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 Sachin Vyas on Medium]]></title>
        <description><![CDATA[Stories by Sachin Vyas on Medium]]></description>
        <link>https://medium.com/@v19sachin?source=rss-7ec22b407745------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*nbaThgixMHtKJNFfNMsB-A.jpeg</url>
            <title>Stories by Sachin Vyas on Medium</title>
            <link>https://medium.com/@v19sachin?source=rss-7ec22b407745------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 00:57:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@v19sachin/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[10 Best Practices for Flutter in 2022]]></title>
            <link>https://medium.com/@v19sachin/10-best-practices-for-flutter-in-2022-367a65e6eb69?source=rss-7ec22b407745------2</link>
            <guid isPermaLink="false">https://medium.com/p/367a65e6eb69</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[flutter-app-development]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[flutter-ui]]></category>
            <category><![CDATA[flutter-widget]]></category>
            <dc:creator><![CDATA[Sachin Vyas]]></dc:creator>
            <pubDate>Wed, 07 Sep 2022 09:29:22 GMT</pubDate>
            <atom:updated>2022-09-07T09:29:22.084Z</atom:updated>
            <content:encoded><![CDATA[<p>Flutter is one of the most popular cross-platform mobile frameworks by Google. The developers have widely adopted the framework across the world, hence there is a loop of updated versions of Flutter, and the latest is Flutter 3. Today we are going to talk about what are the best practices for for designing and developing with Flutter to improve code quality, readability, maintainability, and productivity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u3vLgFmkDHQHDKwJielSTg.png" /></figure><p><strong>1. Refactor code into widgets rather than methods</strong></p><p>Consider the following widget:</p><pre>Column(<br>  children: [<br>     Text(&#39;Hello&#39;),<br>  ],<br>);</pre><p>Now if we want to refactor Text widgets we have two ways:</p><p><strong>Refactor into method:</strong></p><pre>Text buildHello() =&gt; Text(&#39;Hello&#39;);</pre><p><strong>Refactor into widget:</strong></p><p>class HelloWidget extends StatelessWidget {</p><pre>const HelloWidget({<br>    Key? key,<br>  }) : super(key: key);</pre><pre>  @override<br>  Widget build(BuildContext context) {<br>    return Text(&#39;Hello&#39;);<br>  }<br>}</pre><p>Now <strong>refactoring into method </strong>might seem tempting here but when buildHello is too big it might rebuild even when nothing inside buildHello was changed.</p><p>But when it comes to <strong>refactoring into widget</strong>, we get all the benefits of widget lifecycle so it will rebuild only when something in widget changes. So this <strong>prevents unnecessary rebuilds</strong> and thus improving the performance. This also offers all the optimisation that Flutter offers for widget class.</p><h3>2. Make build function pure</h3><p>Consider the following stateful widget:</p><pre>class HelloWidget extends StatefulWidget {<br>  const HelloWidget({<br>    Key? key,<br>  }) : super(key: key);<br><br>  @override<br>  _HelloWidgetState createState() =&gt; _HelloWidgetState();<br>}<br><br>class _HelloWidgetState extends State&lt;HelloWidget&gt; {<br>  @override<br>  Widget build(BuildContext context) {<br>    return FutureBuilder(<br>        future: getText(),<br>        builder: (context, AsyncSnapshot&lt;String&gt; snapshot) {<br>          return Text(snapshot.data ?? &#39;&#39;);<br>        });<br>  }<br>}</pre><p>Here, when the rebuild happens the getText() is called every time and this might create janky UI and use more resources.</p><p>So the idea of having <strong>pure build function</strong> is that we should move out any operation from build method that can affect rebuild performance.</p><h3>3. Use state management</h3><p>Flutter itself doesn’t impose any state management by default, so it’s easy to end up with a messy combination and might depend on parameter passing or storing everything in persistent storage for storing state.</p><p>While using a simple solution for state management is always recommended, we should also <strong>consider the scalability and maintainability of the app</strong> to select it.</p><p>Furthermore, even though stateful widgets offer the simplest solution for state management, it can not scale when we want to maintain the state across multiple screens. e.g. Authentication state of User.</p><p>State management comes really handy here. It allows to have central store of things that we can use to store anything and when anything in store changes, all the widgets dependent on that will be changed automatically.</p><p>There are so <strong>many options available</strong> for state management. Depending on the experience and level of comfort of the team, we can use any of the available solutions as mentioned <a href="https://flutter.dev/docs/development/data-and-backend/state-mgmt/options">here</a>. For instance, one powerful option for State Management with Flutter is the <a href="https://pub.dev/packages/flutter_bloc">BloC pattern</a>.</p><h3>4. Define Theme</h3><p>Define <strong>Theme</strong> of the app as well as a first priority to avoid the headache of changing the theme in future updates, Setting up Theme is surely confusing but one time task. Ask your designer to share all the Theme related data like, Colors, font sizes and weightage.</p><p>Consider the following code:</p><pre>MaterialApp(<br>  title: appName,<br>  theme: ThemeData(<br>    // Define the default brightness and colors.<br>    brightness: Brightness.dark,<br>    <br>    // You can add the color from the separate <br>    // class here as well to maintain it well.<br>    primaryColor: Colors.lightBlue[800],    // Define the default font family.<br>    fontFamily: &#39;Georgia&#39;,    // Define the default `TextTheme`. <br>    // Use this to specify the default<br>    // text styling for headlines, titles, bodies of text, and more.    textTheme: const TextTheme(<br>      headline1: TextStyle(<br>        fontSize: 72.0, <br>        fontWeight: FontWeight.bold,<br>    ),<br>    headline6: TextStyle(<br>        fontSize: 36.0, <br>        fontStyle: FontStyle.italic<br>    ),<br>    bodyText2: TextStyle(<br>        fontSize: 14.0, <br>        fontFamily: &#39;Hind&#39;,<br>    ),<br>    ),<br>  ),<br>  home: const MyHomePage(<br>    title: appName,<br>  ),<br>);</pre><p>You can do much more with the Theme, which is defining your custom TextField, Card, Bottom Navigation Bar themes for once and use it straight away in the app.</p><pre>class AppTheme {<br>  AppTheme();<br><br>  static AppTheme? _current;<br><br>  // ignore: prefer_constructors_over_static_methods<br>  static AppTheme get current {<br>    _current ??= AppTheme();<br>    return _current!;<br>  }<br><br>  static ThemeData? lightTheme = ThemeData(<br>    scaffoldBackgroundColor: AppColors.screenBackground,<br>    primaryColor: AppColors.blue,<br>    colorScheme: const ColorScheme.light(secondary: Colors.white),<br>    cardColor: Colors.white,<br>    floatingActionButtonTheme: const FloatingActionButtonThemeData(<br>      backgroundColor: AppColors.blue,<br>    ),<br>}</pre><h3>5. Follow effective dart style guide</h3><p>It’s always better to have a defined style guide to have widely accepted conventions that can help improve the code quality. If we have a <strong>consistent style</strong>, it becomes much easier to have the team coordinated and even incorporate new developers. In this sense, maintaining a constant and regular style will help the big project in the long term.</p><p>While it’s possible to define the custom style guide that the team is comfortable with, Dart also offers the official <a href="https://dart.dev/guides/language/effective-dart/style">style guide</a> that we can follow.</p><p>Moreover, it’s always a great idea to have <strong>Linter</strong> in the project. This becomes very helpful when the team is large, when not everyone is aware of the style guide or when they forget to follow some rules. All the Linter rules offered by Dart can be found <a href="https://dart-lang.github.io/linter/lints/">here</a>.</p><h3>6. Select packages carefully</h3><p>The Flutter ecosystem is very <strong>supportive of the community</strong>, especially when it comes to <strong>reusable pieces of code</strong>. The typically called libraries are called packages in the Flutter ecosystem.</p><p>While it’s always tempting to use a package for every functionality, we should consider the following factors before using any package:</p><ol><li>When was the package updated? We should always <strong>avoid using stale packages</strong>.</li><li>How popular is the package? If the package has considerable <strong>popularity</strong>, it is much easier to find community support.</li><li><strong>Check the open issues</strong> in the code repository of the package. Are there any issues the can affect the functionality we are trying to integrate from that package?</li><li>How frequently does the package get <strong>updated</strong>? This is really important if we want to take advantage of the latest Dart features.</li><li>Are you using only little functionalities from the package? It makes more sense to write the code or copy the code than depend on the whole package when we are using only a little functionality.</li></ol><h3>7. Using async/await more readable way</h3><p>Consider the following code:</p><pre>// Don’t<br>Future&lt;int&gt; getUsersCount() {<br>  return getUsers().then((users) {<br>    return users?.length ?? 0;<br>  }).catchError((e) {<br>    log.error(e);<br>    return 0;<br>  });<br>}// Do<br>Future&lt;int&gt; getUsersCount() async {<br>  try {<br>    var users = await getActiveUser();<br>    return users?.length ?? 0;<br>  } catch (e) {<br>    log.error(e);<br>    return 0;<br>  }<br>}</pre><h3>8. Use MediaQuery/LayoutBuilder only when needed</h3><p>Many developers tend to use MediaQuery/LayoutBuilder believing that it makes everything responsive. But in many cases, they end up using it incorrectly.</p><p>Consider the following code:</p><pre>Container(<br>  width: MediaQuery.of(context).size.width * 0.7<br>);</pre><p>Here we think it will take only 70% of the physical width, which is right, but since the physical width can vary from device to device, the remaining 30% might look different on different devices. Also, when the child of Container has more width than 70%, it will overflow devices having smaller physical width.</p><p>This is why we should<strong> find an alternative way </strong>whenever possible instead of using MediaQuery/LayoutBuilder. To sum up, MediaQuery/LayoutBuilder should be used when we want to have a different layout depending on various breakpoints of the physical size of the device.</p><h3>9. Use streams only when needed</h3><p>While Streams are very powerful, using them also comes with <strong>great responsibility</strong> in order to make effective use of this resource. Using Streams with poor implementation can lead to more memory and CPU usage. Even more, forgetting to close the streams can lead to memory leaks.</p><p>What’s more, using Stream only for one event seems overkill. In the case of only one event, instead of Stream, it’s a good idea to use Future. <strong>Streams should be used only when we want to handle many asynchronous events.</strong></p><p>So, in these cases, instead of using Streams, we can use something more lightweight such as <a href="https://flutter.dev/docs/development/data-and-backend/state-mgmt/simple">ChangeNotifier</a> for reactive UI. For more advanced functionalities, we can use something like <a href="https://bloclibrary.dev/#/">Bloc library</a> that focuses on using the resources effectively and offering us a simple interface to build the reactive UI.</p><h3>10. Use const keyword whenever possible</h3><p>Using <strong>const constructor </strong>for widgets can reduce the work required for garbage collectors. This may initially seem like a small performance improvement but it really adds up and makes a difference when the app is big enough or there is a view that gets frequently rebuilt.</p><p>Const declarations are also more <strong>hot-reload friendly</strong>. Also, we should avoid the unnecessary const keyword. Consider the following code:</p><pre>const Container(<br>  width: 100,<br>  child: const Text(&#39;Hello World&#39;)<br>);</pre><p>Here we don’t need to use const for Text widget since const is already applied to parent widget.</p><h3>Some cosmetic points to keep in mind</h3><ul><li>Never fail to wrap your root widgets in a safe area.</li><li>You can declare multiple variables with shortcut- (int mark =10, total = 20, amount = 30;)</li><li>Try not to use un required commented codes.</li><li>Create private variables and methods whenever possible.</li><li>Build different classes for colors, text styles, dimensions, constant strings, duration, and so on.</li><li>Develop API constants for API keys.</li><li>Try not to use of await keywords inside the bloc</li><li>Try not to use global variables and functions. They have to be tied up with the class.</li><li>Check dart analysis and follow its recommendations</li><li>Check underline which suggests Typo or optimisation tips</li><li>Use _ (underscore)(private) if the value is not used inside the block of code.</li></ul><pre>//Do<br>someFuture.then((_) =&gt; someFunc());</pre><pre>//Do not<br>someFuture.then((DATA_TYPE VARIABLE) =&gt; someFunc());</pre><ul><li>Magical numbers always have proper naming for human readability.</li></ul><pre>//Do<br>final _frameIconSize = 13.0;<br> SvgPicture.asset(<br> Images.frameWhite,<br> height: _frameIconSize,<br> width: _frameIconSize,<br> );</pre><pre>//Do not<br>SvgPicture.asset(<br>Images.frameWhite,<br>height: 13.0,<br>width: 13.0,<br>);</pre><h3>Alright, here we are</h3><p>So, this was about the best practices for Flutter development that relatively ease down the work of every Flutter developer.</p><p>I hope this helps make your Flutter code more readable while also improving your app’s performance. Happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=367a65e6eb69" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[10 Useful Packages Flutter Developer should not miss.]]></title>
            <link>https://medium.com/@v19sachin/10-flutter-useful-package-flutter-developer-should-not-miss-b8d9326b80e?source=rss-7ec22b407745------2</link>
            <guid isPermaLink="false">https://medium.com/p/b8d9326b80e</guid>
            <category><![CDATA[flutter-ui]]></category>
            <category><![CDATA[flutter-package]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[flutter-widget]]></category>
            <category><![CDATA[flutter-app-development]]></category>
            <dc:creator><![CDATA[Sachin Vyas]]></dc:creator>
            <pubDate>Tue, 28 Jun 2022 10:13:27 GMT</pubDate>
            <atom:updated>2022-06-28T10:14:09.345Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*Dk2LJ8gOg4_j5pJODoSSqg.png" /></figure><p>In Flutter, the support of shared packages is contributed by developers that allows us to build apps without much hustle.</p><p>It saves developers from developing from scratch.</p><p>In this article, I am going to list down 10 amazing Flutter packages to ease your app devlopment process and make your UI beuatiful. All of them are listed on Pub.dev.</p><h4>1. <a href="https://pub.dev/packages/translator">translator</a>.</h4><p>A flutter package that helps you transale text from other many languages. A free and unlimited Google Translate API for Dart. You can use it for translate strings and text.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/593/1*98XFGKISwRvGWZjkq_M6dg.png" /><figcaption>pub stats for translator</figcaption></figure><p>Example:</p><pre><strong><br>final</strong> translator = GoogleTranslator();</pre><pre>translator.translate(&quot;I love Brazil!&quot;, from: &#39;en&#39;, to: &#39;pt&#39;).then((s) {<br>    print(s);<br>  }); <br>  <em>// prints Eu amo o Brasil!</em></pre><p>you can omit from language and it&#39;ll auto-detect the language of source text</p><pre>translator.translate(&quot;Hello&quot;, to: &#39;es&#39;).then(print);<br><em>// prints Hola</em></pre><h4>2. <a href="https://pub.dev/packages/sensors_plus">sensors_plus</a></h4><p>A flutter package for accessing accelerometer, gyroscope, and magnetometer sensors.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/438/1*EFsVuY-iMH4ncqlwoUpyAQ.png" /><figcaption>pub stats for sensors_plus</figcaption></figure><p>Example:</p><pre><strong>import</strong> &#39;package:sensors_plus/sensors_plus.dart&#39;;<br><br>accelerometerEvents.listen((AccelerometerEvent event) {<br>  print(event);<br>});<br><em>// [AccelerometerEvent (x: 0.0, y: 9.8, z: 0.0)]</em><br><br>userAccelerometerEvents.listen((UserAccelerometerEvent event) {<br>  print(event);<br>});<br><em>// [UserAccelerometerEvent (x: 0.0, y: 0.0, z: 0.0)]</em><br><br>gyroscopeEvents.listen((GyroscopeEvent event) {<br>  print(event);<br>});<br><em>// [GyroscopeEvent (x: 0.0, y: 0.0, z: 0.0)]</em><br><br>magnetometerEvents.listen((MagnetometerEvent event) {<br>  print(event);<br>});<br><em>// [MagnetometerEvent (x: -23.6, y: 6.2, z: -34.9)]</em></pre><h4>3. <a href="https://pub.dev/packages/sign_in_with_apple">sign_in_with_apple</a></h4><p>A Flutter package to initiate Sign in with Apple (on iOS, macOS, and Android). Includes support for keychain entries as well as signing in with an Apple ID.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/327/1*bCDcFMkHwsFzRH2GBdWasQ.png" /><figcaption>pub stats for sign_in_with_apple</figcaption></figure><p>Example:</p><pre>SignInWithAppleButton(<br>  onPressed: () <strong>async</strong> {<br>    <strong>final</strong> credential = <strong>await</strong> SignInWithApple.getAppleIDCredential(<br>      scopes: [<br>        AppleIDAuthorizationScopes.email,<br>        AppleIDAuthorizationScopes.fullName,<br>      ],<br>    );<br><br>    print(credential);<br><br>    <em>// Now send the credential (especially `credential.authorizationCode`) to your server to create a session</em><br>    <em>// after they have been validated with Apple (see `Integration` section for more information on how to do this)</em><br>  },<br>);</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/569/1*Nd7WJQtKqAZMn0gTbl5wlg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/649/1*kvmWo8u3uCiLHzIKtw9BVw.png" /></figure><h4>4. <a href="https://pub.dev/packages/fl_chart">fl_chart</a></h4><p>If drawing fantastic charts is what you are looking for, this is the package. The fl-chart is an amazing package to create pie charts, line charts, bar charts, scattered charts and more. It also provides flexible settings to customize the look &amp; feel of the charts. If you are building an app that banks on rich data representation, filtering and analytics, this package could be your life-saver.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/431/1*-clPb_UQED5bRqpGTs0m-w.png" /><figcaption>pub stats for fl_chart</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*GpS4e4sggLUBSTEgp8JJQA.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*BzBmLPRFB6DyQJOBAVQpdw.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*ohKGFZjJGMejSDDFRlNeBw.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*n5x-8tG306MD6Vfcd_UBpQ.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*cadVWBwNL2TXLoB-kXioaA.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/567/1*cPigBzWOWLaSQSR_OqZRsQ.gif" /></figure><h4>5. <a href="https://pub.dev/packages/intro_slider">intro_slider</a></h4><p>Flutter Intro Slider is a package that helps you make a cool intro for your app. Create intro has never been easier and faster</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/293/1*NYMOfX2wekKioT4UqOv2Hw.png" /><figcaption>pub stats for intro_slider</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*5mdeKKPPUTXR70olIcrHEw.gif" /></figure><h4>6. <a href="https://pub.dev/packages/local_auth">local_auth</a></h4><p>Flutter plugin for Android and iOS devices to allow local authentication via fingerprint, touch ID, face ID, passcode, pin, or pattern.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/288/1*3uCGVAg1yRyK88k2vku1Uw.png" /><figcaption>pub stats for local_auth</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*QhEqZ4bxT3MT8qdKzd13ew.gif" /></figure><h4>7. <a href="https://pub.dev/packages/flutter_slidable">flutter_slidable</a></h4><p>A flutter package of slidable list item with directional slide actions that can be dismissed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/325/1*onLNIUIoCSf4T40kPoy1VA.png" /><figcaption>pub stats for flutter_slidable</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/324/1*GbulbBtu3YHb42v8ZY5-Cw.gif" /></figure><h4>8.<a href="https://pub.dev/packages/file_picker">file_picker</a></h4><p>A flutter package that allows you to use a native file explorer to pick single or multiple absolute file paths, with extension filtering support.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/296/1*3sPUMm-kHeKxpdWz3A_mqA.png" /><figcaption>pub stats for file_picker</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*uRxakuuyb-SeFsbOdZeGYg.gif" /></figure><h4>9. <a href="https://pub.dev/packages/shimmer">shimmer</a></h4><p>A package provides an easy way to add shimmer effect in your app.</p><p>Shimmer is utilized to add wonderful animations while content is loading from the servers in an application. This makes the UI look more responsive and gets users from leaving a sluggish internet collaboration. It very well may be utilized rather than traditional ProgressBar or usual loaders accessible in the Flutter structure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/314/1*GiAnMk_iii6Lpok1H7BsiA.png" /><figcaption>pub stats for shimmer</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/270/1*xdSC4kr1W_0Je6rQ9VX4_g.gif" /></figure><h4>10. <a href="https://pub.dev/packages/pull_to_refresh">pull_to_refresh</a></h4><p>A flutter package with beautiful drop-down refresh and pull up load animations. It supports android and iOS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/270/1*xVC9dj38_K_JyWT1_7Nh9w.png" /><figcaption>pub stats for pull_to_refresh</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/569/1*zwngs_CzPuMMgkYTnvZHeA.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/572/1*reEu1Zc8pBMq1PjoseQsCg.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/572/1*kwFtH5AiavSZTY8mStGvig.gif" /><figcaption>Different style for pull_to_refresh</figcaption></figure><p>I made my list based on popularity and ease of maintenance, based on my opinion.</p><ul><li>Thanks for reading. Hope you liked it. 💙</li><li>Please Share This List With Your developer Friends and Community If You Found It Helpful.</li><li>Make sure you leave your feedback in the comments. 😀</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b8d9326b80e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning Flutter in 2022]]></title>
            <link>https://medium.com/@v19sachin/learning-flutter-in-2022-2528880dbef4?source=rss-7ec22b407745------2</link>
            <guid isPermaLink="false">https://medium.com/p/2528880dbef4</guid>
            <category><![CDATA[app-development]]></category>
            <category><![CDATA[2022]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[flutter-app-development]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <dc:creator><![CDATA[Sachin Vyas]]></dc:creator>
            <pubDate>Tue, 31 May 2022 08:49:02 GMT</pubDate>
            <atom:updated>2022-05-31T10:47:57.177Z</atom:updated>
            <content:encoded><![CDATA[<p>I’m sure that either you want to know what is flutter or you’re here because you want to get started with it. But you’re thinking is flutter worth learning in 2022?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*WntGgsyKpriHbeXT_2zX9w.jpeg" /></figure><p>Let’s take a look at why and how the heck do you get started?</p><h3>Firstly What Is Flutter?</h3><p>Flutter is a free and open-source mobile UI framework created by Google and released in May 2017. In a few words, it allows you to create a native mobile application with only one codebase. This means that you can use one programming language and one codebase to create two different apps (for iOS and Android).</p><p>Now, there’s one thing that you should keep in mind</p><blockquote><strong><em>Flutter</em></strong><em> is a </em><strong><em>SDK</em></strong><em> (Software Development Kit) </em><strong><em>not a language.</em></strong><em> The language that is being used in Flutter development is </em><strong><em>Dart.</em></strong></blockquote><p><strong>Dart</strong> a programming language from Google, which has excellent support for asynchronous operations, which is very important for today’s IO and Data-intensive applications.</p><p>If you know a bit of programming, Dart is an object programming language.</p><h3>Why you should choose Flutter?</h3><h4>Simple to learn and use</h4><p>Flutter is a modern framework, and you can feel it! It’s way simpler to create mobile applications with it. If you have used Java, Swift, or React Native, you’ll notice how Flutter is different.</p><p>You can<strong> build apps for various platform via single code </strong>base specifically when it comes to Android and iOS applications. Secondly, there’s no need to get separate IDEs and separate person for each platform. You can just do it yourself.</p><p>Considering this on a bigger scale, it is much easier to manage apps for Android and iOS from single code instead of managing the Android one with another code and iOS one with another, plus managing the cost for each platform is another headache. Make sense?</p><h4>Quick compilation: maximum productivity</h4><p>Thanks to Flutter, you can change your code and see the results in real-time. It’s called Hot-Reload. It only takes a short amount of time after you save to update the application itself. It saves a lot of time</p><p>Significant modifications force you to reload the app. But if you do work like design and change the size of an element, it’s in real-time!</p><h4>Good documentation</h4><p>It’s important for new technology to have good documentation. But it’s not always the case that it has it!</p><p>You can learn a lot from Flutter’s documentation, and everything is very detailed with easy examples for basic use cases.</p><p>Flutter also has their <strong>Official </strong><a href="https://www.youtube.com/channel/UCwXdFgeE9KYzlDdR7TG9cMw"><strong>YouTube</strong></a><strong> </strong>channel that will keep you updated regarding various widgets and updates in flutter.</p><h4>A growing community</h4><p>Flutter has a robust community, and it’s only the beginning!</p><p>To demonstrate this point, let’s look at how many stars the Flutter repository has had over time:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1/0*dyBG8Q6iif8JAlDb.png" /><figcaption>Flutter has more than 135k stars on GitHub which overtook react native from the end of 2020.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jF1aEisopiCXVMyIubokaw.png" /></figure><p>Here you can see from how many stars a repository has on GitHub, this highlights how many developers are coming to Flutter.</p><figure><img alt="Stack Overflow Trends" src="https://cdn-images-1.medium.com/max/1024/1*FrMT0Oc9Vb-7qfMZaBT7IA.jpeg" /><figcaption><a href="https://insights.stackoverflow.com/trends?tags=flutter%2Creact-native%2Cionic%2Cxamarin">Stack Overflow Trends</a></figcaption></figure><p>Here you can see percentage of stack overflow questions asked each month. You can clearly see flutter is getting lot more attention and people are are developing more and more apps in Flutter day by day.</p><p><em>Well, That’s because it is easy to learn :)</em></p><h3>Where Should I Start?</h3><p>If you are convinced that Flutter is going to be the future of mobile application development and want to give it a shot. Let’s see where to start?</p><p>Well, to be honest I never goes for searches like “Flutter basic tutorials” or “Flutter for beginners” instead I do searches like “How to create list view in flutter”, “How to create animated container” and similar. I learn and search things when I’m coding and things that I need.</p><p>Considering a proper guide then <a href="https://flutter.dev/docs/get-started/install">flutter’s official documentation</a> is one of the core reason flutter is bursting out today. It will help you from setting up Flutter till your first application up and running.</p><p>Here are a few of the Flutter courses you can take to learn this remarkable technology.</p><h4><a href="https://www.educative.io/courses/learn-dart-first-step-to-flutter?affiliate_id=5073518643380224">1. Learn Dart: First Step to Flutter (FREE)</a></h4><p>This is a great free course to learn Dart, the language you need to learn to create Flutter apps from great online learning, interactive, text-based platform called <a href="https://javarevisited.blogspot.com/2020/05/top-10-educative-courses-for-programmers.html">Educative</a>.</p><p>You can learn Dart for free with this interactive course right now.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OP4N5frCD6imIQXchxP0wA.jpeg" /></figure><h4><a href="https://click.linksynergy.com/deeplink?id=JVFxdTr9V80&amp;mid=39197&amp;murl=https%3A%2F%2Fwww.udemy.com%2Fcourse%2Flearn-flutter-beginners-course%2F">2. Learn Flutter — Beginners Course (FREE Udemy Course)</a></h4><p>This is another free course to learn Flutter from Udemy. In this course, you will learn how to build Android and iOS apps with a flutter framework. This I not a comprehensive course but with 2-hour learning material, it’s a decent course to <a href="https://www.udemy.com/course/learn-flutter-beginners-course/?ranMID=39197&amp;ranEAID=JVFxdTr9V80&amp;ranSiteID=JVFxdTr9V80-C2VQobKZZCitbWZ.lZ_nEw&amp;LSNPUBID=JVFxdTr9V80&amp;utm_source=aff-campaign&amp;utm_medium=udemyads">get started with Flutter for FREE</a>.</p><p>The good thing about the course is that explanations are simple and to the point and it gives a decent overview of the basic widgets in Flutter and the general Flutter development approach which is fine for a<strong> beginner’s course</strong>, particularly for a free tutorial.</p><p>If you are looking to learn Flutter and looking for a free course then you will love this one.</p><h4><strong>3. Flutter for Beginners full Playlist</strong></h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FfmPmrJGbb6w%3Flist%3DPLlxmoA0rQ-Lw6tAs2fGFuXGP13-dWdKsB&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DfmPmrJGbb6w&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FfmPmrJGbb6w%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/033095f8af4a5ad4eaeabe05338d5ae0/href">https://medium.com/media/033095f8af4a5ad4eaeabe05338d5ae0/href</a></iframe><p>This is a 3 to 4-hour course where you’ll be mentored to dive into core Flutter concepts in a gradual sequence. At the end of this course, you’ll know how to develop apps in Flutter and run it in Android and iOS devices.</p><h3>Thanks</h3><p>Well, what do you think of Flutter? Will you start learning it?</p><p><em>I hope that this introduction has interested and motivated you. I have been using flutter for quite some time now and currently working as a full-time flutter developer. I am planning to build more apps in a flutter in the future too .</em></p><p>If you start learning flutter, then consider following me and Feel free to share this article if you liked it. I’ll be posting more articles like this . 💜</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2528880dbef4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>