<?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 Luka Knezić on Medium]]></title>
        <description><![CDATA[Stories by Luka Knezić on Medium]]></description>
        <link>https://medium.com/@willzyx?source=rss-673058f1549e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*nb3zZ0jVj52_UKkUKVQVhg.jpeg</url>
            <title>Stories by Luka Knezić on Medium</title>
            <link>https://medium.com/@willzyx?source=rss-673058f1549e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 13:11:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@willzyx/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[Using Flutter to build mobile apps]]></title>
            <link>https://medium.com/coding-your-dreams/using-flutter-to-build-mobile-apps-67dafb9a89a?source=rss-673058f1549e------2</link>
            <guid isPermaLink="false">https://medium.com/p/67dafb9a89a</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[mobile]]></category>
            <dc:creator><![CDATA[Luka Knezić]]></dc:creator>
            <pubDate>Fri, 12 Jan 2018 09:50:51 GMT</pubDate>
            <atom:updated>2018-01-12T09:50:51.743Z</atom:updated>
            <content:encoded><![CDATA[<p>As an Android developer, I never really liked cross-platform solutions. I thought they would never be able to match the smooth animations and responsiveness of native apps. After looking at some of the new and updated frameworks, I realized this was no longer true. The difference between them had become minimal. I wanted to make a replica of the first Android game I made. It was a simple 2D game with a 3x4 grid view filled with squares where one randomly selected square wouldn’t be the same color as all the others.</p><p>So I tried React Native as it had great support and a lot of outside contributors. After a few days of going through no real IDE support, choosing from many versions of even the simplest libraries, reading the really poor documentation and not really making much progress, I started to look for alternatives. I was already determined to make the iOS app without using Swift or Objective-C. There had to be a better way than this. One of the alternatives was <strong>Flutter</strong> — I remembered hearing about it and I wanted to give it a try.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FP8_X1HZdDYHydxhItIMlA.png" /><figcaption>Game screen</figcaption></figure><h3>Trying Flutter</h3><p>Flutter is a reactive SDK for building cross-platform apps that instead of using OEM widgets provided by the platform actually draws them by itself. That’s all I knew about it. Before that, I had never seen any Dart or Flutter code. To start off, I played with their gallery_example app to make sense of what was I getting myself into. After React Native I was prepared for the worst, but Dart actually turned out to be <strong>so intuitive </strong>that it took me only a few hours to make the first game prototype in Flutter. Exceptions are shown within the widget that caused it while the rest of the app still runs just fine, instead of slapping you with the red screen with no actual information about the exception like in React Native.</p><p>The great thing about it is that everything is written in Dart and most of it is documented pretty well on their site. Even things that are not documented or that are missing are easy to figure out as you can just jump into the code and see what exactly is happening in that built-in widget since they are just the same as any of your custom widgets.</p><p>After I made a working game, I wanted to add more functionality to it. At the time it was just a screen with a grid view, there was no main menu or anything else really. After adding the main menu and the game over screen, I wanted to add animations and make it feel smoother during game-play. It was surprisingly easy to make complex animations, control them and chain multiple animations!</p><p>Now that the game looked great, I added Google login and a real-time database to keep track of high scores and show them within the game. There are Firebase plugins that are easy to use and simple to set up. Since all of that was already built or built by the Flutter team I wanted to see what would it take to implement some functionality that is not widely available as a finished library or native component, I decided it would be a good idea to sync random generator from the game with NTP service. That way when I was animating color changing in the main menu all ‘random’ colors and animations would sync up on all other devices, and it could work offline as long as the local clock on the device didn’t drift too much. Implementing this was more challenging but completely doable.</p><p>While <strong>I found a bug in Flutter</strong> when receiving data from RawDatagramSocket that I used for communicating with NTP service, the bug was fixed fairly quickly given that it was not crucial feature or part of a big production app.</p><h3>So I should use it?</h3><p>Unfortunately, since <strong>it is in alpha</strong>, it means some things are just not ready yet. There are no maps or in-app browser widgets. Even though you can use a library for that, which will launch maps or web browser in a new native activity and communicate with the Flutter app, there is lack of flexibility or customization that I have got used to with Flutter. While this is a setback, it can be solved by making a clone of the ‘url_launcher’ library from Flutter team, customizing some of the parameters and the layout of the browser view that was displayed, so everything still looks like a part of the app.</p><p>Although this seemed like a big problem, it was actually fairly easy to make native activity and communicate with flutter app over PlatformChannels. While this seems to be just a minor detail, the reality is that most of our clients want to show maps somewhere in their apps and that sometimes makes it impossible to even try and use Flutter for development. They are working on it (Issue #73), but as of the time of writing this article, there is no support for that.</p><h3>So I shouldn’t use it?</h3><p>Flutter is a good solution for simple cross-platform apps at the moment, but once Flutter gets released, it could really disrupt mobile development just by the fact that it really decreases development time. Dart makes it really easy to transition from Java, Kotlin or even JavaScript. It’s really easy to understand and you can actually ‘read’ the widgets without the need for a visual editor. This is important today as every app has its own customized widgets allowing for full app customization and Flutter’s rendering engine makes it possible to have 120 fps animations. Unfortunately, the only thing getting in the way of using Flutter much more is the lack of support for maps.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=67dafb9a89a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coding-your-dreams/using-flutter-to-build-mobile-apps-67dafb9a89a">Using Flutter to build mobile apps</a> was originally published in <a href="https://medium.com/coding-your-dreams">Coding your dreams</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>