<?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 Tino Kallinich on Medium]]></title>
        <description><![CDATA[Stories by Tino Kallinich on Medium]]></description>
        <link>https://medium.com/@mx_tino?source=rss-c20507342da------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*LNUDPJpgBLc7yfA2.jpg</url>
            <title>Stories by Tino Kallinich on Medium</title>
            <link>https://medium.com/@mx_tino?source=rss-c20507342da------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 08:06:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mx_tino/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[Flutter: Gitlap CI /CD]]></title>
            <link>https://medium.com/flutter-community/flutter-gitlap-ci-cd-dfb7b85672e4?source=rss-c20507342da------2</link>
            <guid isPermaLink="false">https://medium.com/p/dfb7b85672e4</guid>
            <category><![CDATA[app-development]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[cross-platform]]></category>
            <category><![CDATA[gitlab]]></category>
            <dc:creator><![CDATA[Tino Kallinich]]></dc:creator>
            <pubDate>Fri, 29 Nov 2019 17:37:07 GMT</pubDate>
            <atom:updated>2019-12-02T08:27:58.196Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-xKBEllkuBX7KlTBzwZCGw.png" /></figure><h3>Flutter: Gitlab CI /CD</h3><p>Continuous Integration /Continuous Delivery within for a Flutter App can be achieved with various Platforms and Tools. In this article I will show a example which uses <strong><em>Gitlab</em></strong> with a <strong><em>shared runner</em></strong>. As usual a Flutter project has to be created connected to a Gitlap repository. With the <strong><em>first commit</em></strong> we can deploy a standard <strong><em>.yml</em></strong> file. This <strong><em>.yml</em></strong> file will be the starting point of this blog post.</p><ol><li>Setup the project with a <strong><em>.gitlab-ci.yml</em></strong></li><li>Get a <strong><em>docker:image</em></strong></li><li>Define your <strong><em>stages</em></strong></li><li>Setup a <strong><em>runner</em></strong></li></ol><h3>Create <strong><em>.gitlab-ci.yml</em></strong></h3><p>Once you successfully created your project it is time to setup your <strong><em>.yml</em></strong> which will be executed by a selected <strong><em>runner</em></strong> from Gitlap. The name ist defined by <a href="https://flutter.dev/docs/deployment/cd">Flutter.dev</a> as <strong><em>.gitlab-ci.yml</em></strong> and it has to be saved in your root package.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/777/1*vxjpHqr-BexINf_6txMpDQ.png" /></figure><h3>Declare a docker:image</h3><p>In order to build your Flutter Application you need to get a valid docker image. In this example I used the docker image <strong><em>cirrusci/flutter:stable</em></strong><em>.</em></p><pre><strong>image</strong>: cirrusci/flutter:stable</pre><p>If you like to have a closer look into the docker image than please follow the <a href="https://hub.docker.com/r/cirrusci/flutter">link</a> to Docker Hub.</p><h3>Define your stages</h3><p>Each stage in your <strong><em>.yml</em></strong> file will represent a specific task executed from the Gitlab <strong><em>runner</em></strong>. Here I used three <strong><em>stages</em></strong> which should be executed and successfully passed before a <em>merge</em> to a branch is possible.</p><pre><strong>stages</strong>:<br>  - build<br>  - analyze<br>  - test</pre><p>Stage 1: <strong><em>build</em></strong></p><p>Within the build, the runner builds the project. Please keep in mind that the build command has additional subcommands for each target platform. Run the <strong><em>flutter build</em></strong> commad without parameters in your Terminal and you will find all available target platforms. Here I selected aot as target, which stands for: “Build an ahead-of-time compiled snapshot of your app’s Dart code”.</p><pre><strong>build</strong>:<br>  <strong>stage</strong>: build<br><br>  <strong>script</strong>:<br>    - flutter build aot<br><br>  <strong>tags</strong>:<br>    - shared<br><br>  <strong>only</strong>:<br>    - merge_requests</pre><p>Stage 2: <strong><em>test</em></strong></p><p>All your implemented unit test will be executed, as long as the follow the path<em> </em><strong><em>/root_package/test/*</em></strong>.</p><pre><strong>unit_test</strong>:<br>  <strong>stage</strong>: test<br><br>  <strong>script</strong>:<br>    - flutter test test/*<br><br>  <strong>tags</strong>:<br>    - shared<br><br>  <strong>only</strong>:<br>    - merge_requests</pre><p>Stage 3: <strong><em>analyze</em></strong></p><p>The analyze stage has been left with a <strong><em>echo</em></strong> statement only. But in general it is possible to run the <strong><em>flutter analyze </em></strong>command in it. But if you encounter any <strong><em>linting</em></strong> errors your build will be failed.</p><pre><strong>analyze</strong>:<br>  <strong>stage</strong>: analyze<br><br>  <strong>script</strong>:<br>    - echo job excluded<br><br>  <strong>tags</strong>:<br>  - shared<br><br>  <strong>only</strong>:<br>    - merge_requests</pre><p>For each <strong><em>stage</em></strong> in your <strong><em>.gitlab-ci.yml</em></strong> file you can find a <strong><em>script</em></strong>, a<strong><em> tag</em></strong> and a <strong><em>only</em></strong> condition.</p><p>The <strong><em>tag</em></strong> is used in this example this, since this <strong><em>.yml</em></strong> file is executed with shared <strong><em>runner</em></strong> within GitLab. The script uses the <strong><em>only</em></strong> condition in order to ensure that only valid code can be merged between branches.</p><h3><strong>Full Example</strong></h3><pre><strong>image</strong>: cirrusci/flutter:stable<br><br><strong>stages</strong>:<br>  - build<br>  - analyze<br>  - test<br><br><strong>before_script</strong>:<br>  - flutter pub get<br>  - flutter clean<br><br><strong>build</strong>:<br>  <strong>stage</strong>: build<br><br>  <strong>script</strong>:<br>    - flutter build aot<br><br>  <strong>tags</strong>:<br>    - shared<br><br>  <strong>only</strong>:<br>    - merge_requests<br><br><strong>unit_test</strong>:<br>  <strong>stage</strong>: test<br><br>  <strong>script</strong>:<br>    - flutter test test/*<br><br>  <strong>tags</strong>:<br>    - shared<br><br>  <strong>only</strong>:<br>    - merge_requests</pre><pre><strong>analyze</strong>:<br>  <strong>stage</strong>: analyze<br><br>  <strong>script</strong>:<br>    - echo job excluded<br><br>  <strong>tags</strong>:<br>  - shared<br><br>  <strong>only</strong>:<br>    - merge_requests</pre><h3>Setup runner</h3><p>Please the <a href="https://docs.gitlab.com/runner/install/osx.html">Gitlab documentation</a> for the installation and registration of a Gitlab runner.</p><p>Happy coding …</p><p>Business Blog</p><p><a href="https://www.inovex.de/blog/author/tkallinich/">Tino Kallinich, Autor bei inovex-Blog</a></p><p>The Villan Project</p><p><a href="https://the-villan-project.de/">The Villan Project - The Main Menu</a></p><p>2D Animation Repository</p><p><a href="https://www.2dimensions.com/a/Seemann-123/files/recent/all">2D - Tino Kallinich</a></p><p>Githup Repository</p><ul><li><a href="https://github.com/SeemannMx">SeemannMx - Overview</a></li><li><a href="https://www.twitter.com/FlutterComm">JavaScript is not available.</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dfb7b85672e4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/flutter-community/flutter-gitlap-ci-cd-dfb7b85672e4">Flutter: Gitlap CI /CD</a> was originally published in <a href="https://medium.com/flutter-community">Flutter Community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Flutter: Themes]]></title>
            <link>https://medium.com/@mx_tino/flutter-themes-9cebc0fecd1d?source=rss-c20507342da------2</link>
            <guid isPermaLink="false">https://medium.com/p/9cebc0fecd1d</guid>
            <category><![CDATA[dartlang]]></category>
            <category><![CDATA[cross-platform]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[ui-ux-design]]></category>
            <dc:creator><![CDATA[Tino Kallinich]]></dc:creator>
            <pubDate>Wed, 20 Mar 2019 06:40:58 GMT</pubDate>
            <atom:updated>2019-03-20T06:40:58.706Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xVmMjAR8ZD_sQxSmeVTXsg.png" /></figure><p>If you want your Flutter app to have a stand out user experience I recommend to use Flutters theme widget. It can be used to define application wide colors , fonts and text styles. This theme can than be referenced within each widget in your app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A068zrcU0uFqCaerfbcSMQ.png" /></figure><p>In Flutter you can design custom themes with material app widget, they can be dark, light or colorful. The style depends on your preferred color set.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dF1KQ4dlNPETsdawMqemlw.png" /></figure><p>In android we collect all the theme related data in a resource directory, but in Flutter we are able to declare the theme inside the root widget of the project.</p><pre><strong>MaterialApp</strong>(<br>    ...<br>    theme: <strong>ThemeData</strong>( ... ), // declared app theme<br>    ...<br>);</pre><p>The app theme can than be individualized by defining custom colors, fonts etc. inside the <em>ThemeData</em> widget.</p><p><em>Define</em> Application wide <em>Colors</em></p><pre><strong>ThemeData</strong>(<br>    brightness:     Brightness.light,<br>    primaryColor:   Color(#003c7e),<br>    accentColor:    Color(#4487c7),<br>...<br>)</pre><p><em>Declare Application wide Fonts</em></p><pre><strong>ThemeData</strong>(<br>    fontFamily: &#39;Roboto&#39;,<br>    <br>    textTheme: <strong>TextTheme</strong>( ... )<br>)</pre><p><em>Declare Application wide TextTheme</em></p><pre><strong>TextTheme</strong>(<br>    headline:    TextStyle(fontSize: 36px, ... ),<br>    title:       TextStyle(fontSize: 24px, ... ),<br>    body:        TextStyle(fontSize: 12px, ... ),<br>)</pre><p>The custom application theme has been declared and can be used everywhere within your app using the Theme.of() function. If you worked with Inherited widget before you recognize a similarity (<em>GlobalValues.of()</em>).</p><p><em>Set Theme in Widgets</em></p><pre>Container(<br>    color: Theme.of(context).primaryColor,    <br>    child: Text(&#39;custom theme&#39;, <br>                 style: Theme.of(context).textTheme.body<br>    )<br>)</pre><p><strong>Recap</strong></p><p>Now you are able to declare a custom theme which allows you to define your theme at a central position and reference the attributes everywhere in your app.</p><p>I hope this article helps you to get started with Flutter and UI/UX related topics, feel free to check my other articles for more Flutter concepts.Flutter</p><p>Happy coding …</p><p>Business Blog</p><p><a href="https://www.inovex.de/blog/author/tkallinich/">Tino Kallinich, Autor bei inovex-Blog</a></p><p>2D Animation Repository</p><p><a href="https://www.2dimensions.com/a/Seemann-123/files/recent/all">2D - Tino Kallinich</a></p><p>Github Repository</p><p><a href="https://github.com/SeemannMx">SeemannMx - Overview</a></p><p>Sources &amp; Quotes:</p><ul><li><a href="https://itsallwidgets.com/">https://itsallwidgets.com/</a></li><li><a href="https://flutter.dev/docs/cookbook/design/themes">https://flutter.dev/docs/cookbook/design/themes</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9cebc0fecd1d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Flutter: Flares]]></title>
            <link>https://medium.com/@mx_tino/flutter-flares-b6b2b2d7ea4e?source=rss-c20507342da------2</link>
            <guid isPermaLink="false">https://medium.com/p/b6b2b2d7ea4e</guid>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[cross-platform]]></category>
            <category><![CDATA[animation]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <dc:creator><![CDATA[Tino Kallinich]]></dc:creator>
            <pubDate>Thu, 14 Mar 2019 07:34:33 GMT</pubDate>
            <atom:updated>2019-03-14T07:34:33.554Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*inxt-W0JP7WS6ybeI4L6RQ.png" /></figure><p>Flutter flare animations are created by the 2dimensions team. With this new platform we are able to create, download and share new Flutter flare animat-ions. If you wonder what a flare animation looks like, than feel free to check the <a href="https://www.2dimensions.com/explore/popular/trending/all">2dimensions website</a> for public files.</p><p><strong>Getting started</strong></p><p>Before we can run a flare animation in our Flutter project we need to declare the dependency <em>flare_flutter</em> in the projects <em>pubspec.yaml</em> file.</p><pre>// pubspec.yaml </pre><pre><strong>dependencies:<br>  flutter:<br>    sdk: </strong>flutter<br><br>  <strong>flare_flutter: </strong>any</pre><p><strong>Download a Flare Animation</strong></p><p>Got to the <a href="https://www.2dimensions.com/explore/popular/trending/all">www.2dimensions.com</a> website and create or download any flare animation (<em>.flr file</em>).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*AH9axmhC99Rvs0egHWdv-Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L4htGCZnFqM2Gwg0tvgTHg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MFcl8bvxnpnGQk7J6Z8x7w.png" /><figcaption>2dimensions flare animations</figcaption></figure><p><strong>Assets Folder</strong></p><p>To keep it simple we will fetch the animation from a assets directory. There-fore we create a <em>assets</em> and a <em>anim</em> directory in the projects root directory.</p><pre>               /* &lt;root package name&gt;/assets/anim */</pre><p>Paste the flare file (.flr) into the <em>anim</em> directory. Finally declare the flare animation (<em>.flr</em>) in the <em>assets</em> section of the <em>pubspec.yaml </em>file.</p><pre>// pubspec.yaml</pre><pre><strong>flutter:<br>  uses-material-design: </strong>true<br>  <strong>assets:</strong><br>    - assets/anim/some_flare_animation.flr</pre><p><strong>Setup the Flare Animation</strong></p><p>Add the import to the preferred widget <em>.dart</em> file.</p><pre><strong>import &#39;</strong>package:flare_flutter/flare_actor.dart<strong>&#39;</strong>;</pre><p>Include the <em>Flare Runner Widget</em> with the assets <em>path</em>.</p><pre><strong>return </strong>Container(<br>           child: FlareActor(<strong>&#39;assets/anim/some_flare_animation.flr&#39;</strong>,<br>           animation: <strong>&#39;simple_anim&#39;</strong>,<br>           alignment: Alignment.<em>center</em>,<br>           fit: BoxFit.<strong>contain<br>        </strong>);</pre><p>The flare animation has been setup and it is runnable, start your app and see if the flare animation is displayed correctly.Flutter</p><p><strong>Recap</strong></p><p><em>2dimensions</em> allows us to create amazing <em>imagination</em> animations only limited by your imagination. You can start by using the public <em>flare</em> animations or create your own projects.</p><p>I hope this article helps you to get started with Flutter and Flare Animations.</p><p>Happy coding …</p><p>Business Blog</p><p><a href="https://www.inovex.de/blog/author/tkallinich/">Tino Kallinich, Autor bei inovex-Blog</a></p><p>2D Animation Repository</p><p><a href="https://www.2dimensions.com/a/Seemann-123/files/recent/all">2D - Tino Kallinich</a></p><p>Github Repository</p><p><a href="https://github.com/SeemannMx">SeemannMx - Overview</a></p><p>Sources &amp; Quotes:</p><ul><li><a href="https://www.2dimensions.com/explore/popular/trending/all">https://www.2dimensions.com</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b6b2b2d7ea4e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Flutter: How to Bug Report]]></title>
            <link>https://medium.com/flutter-community/flutter-how-to-bug-report-6f9556eb448?source=rss-c20507342da------2</link>
            <guid isPermaLink="false">https://medium.com/p/6f9556eb448</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[community]]></category>
            <category><![CDATA[helping-others]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Tino Kallinich]]></dc:creator>
            <pubDate>Wed, 27 Feb 2019 12:01:00 GMT</pubDate>
            <atom:updated>2019-02-27T12:01:00.716Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*46w4ehNLq02pLGqWtplF5w.png" /></figure><p>The Flutter Development Team is eager to get useful bug reports from the community. Please see the steps below if you found a bug within the Flutter framework, the core Flutter widgets or any Flutter managed packages. If you find a Dart bases Bug please refer directly to the <a href="https://github.com/dart-lang/language">language funnel</a> in the <a href="https://github.com/dart-lang">Dart repository</a>.</p><p><em>Please follow the basics of good behavior and keep up a professional cooperation practices.</em></p><p><strong>Found a Bug</strong></p><ol><li>Search First</li><li>File a Bug</li><li>Rating of existing Bugs</li><li>Follow up</li></ol><p><strong>Search First @</strong></p><p>*<a href="https://github.com/flutter/flutter/issues/">https://github.com/flutter/flutter/issues/</a></p><p>*<a href="https://stackoverflow.com/questions/tagged/flutter?sort=frequent">https://stackoverflow.com/questions/tagged/flutter?sort=frequent</a></p><p>Use the filter function and search for the issue, maybe this bug has been reported already. If you have found one attach you report to an existing one and add a thumps up<em> (see Rating)</em>.</p><p><strong>Report a Bug</strong></p><p><em>Get Flutter Doctor report</em></p><pre>$ flutter doctor</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MV8RCLKsuv2yyndiyyr8Kg.png" /></figure><p><em>Get your Flutter version</em></p><pre>$ flutter --version</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b9p7J0tB7zkecQV4hq63eQ.png" /></figure><p><em>Get your Flutter channel</em></p><pre>$ flutter channel</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WNQ3QglNGEmR-1LJ_jOaWw.png" /></figure><p><em>Get your application Log</em></p><pre>$ flutter run --verbose</pre><p>This will show a log (noisy logging), including all shell commands. There are many more flutter bash commands which can help to identify a bug, please refer to my Flutter Cheatsheet for that matter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NjHQIjii5wZq-sI8fWES8Q.png" /></figure><p>Go directly to the official <a href="https://github.com/flutter/flutter/issues">Flutter repository</a> and create Bug Report by initiating a <em>new Issue</em> for the Flutter Project.</p><p>Create a new issue with a click at the <em>new Issue </em>button and choose one of the given topics.</p><ul><li><em>I am having difficulty installing Flutter or getting it to work.</em></li><li><em>I have a problem with my Flutter application.</em></li><li><em>I want help writing my application.</em></li></ul><p>If you run into Flutter specific issues, like a widget has a is inconsistent look on multiple platforms, then you may select the second topic. Click on <em>Get startet </em>and follow the given instructions. The comments will guide you through the complete process to finalize your bug report.</p><p><em>Steps to Reproduce</em></p><ol><li>Describe your issue as clear as possible, you may use code fragments, screenshot or error messages</li><li>Attach output from above (version, channel, doctor …)</li></ol><p>Click <em>Submit Issue</em> to the Flutter Development Team, now your bug report is available to the community.</p><p><strong>Rating</strong></p><p>Rate existing bugs in order to promote their importance <em>(thumbs up)</em>, this will signalize the urgency of the issue to the Flutter Development Team. The same process should be used to promote new features, which you may like to have in your app but does not exist jet.</p><p><strong>Follow up</strong></p><p>Github’s projects structure provides access to all reported issues and you can track the state of each report.</p><p><strong>Recap</strong></p><p>Please help the Flutter Dev Team to identify bugs in the framework and continue to rate already known issues. This will help to improve the whole framework step by step.</p><p>As Filip and Andrew state in the <a href="https://www.youtube.com/watch?v=nGlh4SVrsFg">Boring Show</a><em>: “The issues with the most thumps up will have the more attention to it</em>.” The reactions are used by the Engineering Team to sort the issues by their urgency. Therefore please engage in bug reporting in order to improve the Flutter framework.</p><p>I hope this article helps you to file bug reports correctly and promote more community engagement by all Flutter developers.</p><p>Happy coding …</p><p>Business Blog</p><p><a href="https://www.inovex.de/blog/author/tkallinich/">Tino Kallinich, Autor bei inovex-Blog</a></p><p>2D Animation Repository</p><p><a href="https://www.2dimensions.com/a/Seemann-123/files/recent/all">2D - Tino Kallinich</a></p><p>Github Repository</p><p><a href="https://github.com/SeemannMx">SeemannMx - Overview</a></p><p>Sources &amp; Quotes</p><ul><li><a href="https://www.youtube.com/watch?v=nGlh4SVrsFg">The Boring Flutter Development Show, Episode 13</a></li></ul><p><a href="https://twitter.com/FlutterComm">JavaScript is not available.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6f9556eb448" width="1" height="1" alt=""><hr><p><a href="https://medium.com/flutter-community/flutter-how-to-bug-report-6f9556eb448">Flutter: How to Bug Report</a> was originally published in <a href="https://medium.com/flutter-community">Flutter Community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Flutter: BLoC with Streams]]></title>
            <link>https://medium.com/flutter-community/flutter-bloc-with-streams-6ed8d0a63bb8?source=rss-c20507342da------2</link>
            <guid isPermaLink="false">https://medium.com/p/6ed8d0a63bb8</guid>
            <category><![CDATA[dartlang]]></category>
            <category><![CDATA[state-management]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[bloc]]></category>
            <dc:creator><![CDATA[Tino Kallinich]]></dc:creator>
            <pubDate>Tue, 26 Feb 2019 12:01:02 GMT</pubDate>
            <atom:updated>2019-02-26T12:01:02.202Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JVWWKVOoQ6ZmGFXWN7iRjA.png" /></figure><p>This article will help you to get started with the <em>BLoC</em> pattern and the use of streams in Flutter.</p><pre><em>                /*  BLoC — Business Logic Component */</em></pre><p>Patterns and state management in Flutter can become very complex, therefore I will demonstrate the implementation of Flutters BLoC pattern using streams. BLoC helps to organize your code and separates the business logic from the UI. The BLoC wraps the business logic and takes events to access the functionality with streams. Here I use streams and sinks to send events and return a state to the UI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P8CgLEsuO4LygZjXdHuOqQ.png" /></figure><p>The state then updates the UI with the retrieved data (<em>snapshot</em>) from the stream using a <em>StreamBuilder</em>.</p><p><strong>Preparation</strong></p><p>Create a new Flutter project and get the <em>IncrementApp </em>running, the Flutter app which is always created with a new project. Delete all comments and strip down all widgets to their bar minimum in order to reduce the complexity. Furthermore delete following from the project structure, because we will use a BloC to replace the <em>incrementCounter</em>.</p><pre>int <strong>_counter </strong>= 0;<br><br><strong>void </strong>_incrementCounter() {<br>  setState(() {<em><br>    </em><strong>_counter</strong>++;<br>  });</pre><p><em>Please refer to the linked </em><a href="https://github.com/SeemannMx/flutter_app_bloc"><em>Github repository (flutter_app_bloc)</em></a><em> for code details.</em></p><p><strong>Getting started</strong></p><p>The new created Flutter project consists of a <em>main.dart</em> function and a<em> page widget</em>. I have refactored the<em> main.dart </em>file and excluded the <em>widget class</em> into a new file called <em>LandingPage.dart.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RQH7ykFD3EEMn6NuAmO4_g.png" /><figcaption>bloc_app: project structure</figcaption></figure><p><strong>First Steps</strong></p><p>The page holds widgets and a widget can trigger in BloC executed events. Sounds complicated but if you go through it one by one it isn&#39;t. First we create the events which we can listen to.</p><p><em>Create CounterEvent.dart file</em></p><p>This class defines all events which we can trigger from the widgets.</p><pre><strong>abstract class </strong>CounterEvent{}<br><br><strong>class </strong>IncrementEvent <strong>extends </strong>CounterEvent{}</pre><p><em>Create a CounterBLoC.dart file</em></p><p>The BLoC wraps the business logic and the exposed stream. The <em>count() </em>function will increment a <em>_counter</em>, triggered from the <em>IncrementEvent</em>.</p><pre>// CounterBloc.dart </pre><pre><strong>class </strong>CounterBLoC{<br><br>  int <strong>_counter </strong>= 0;</pre><pre>  // to be updated with a StreamSink!<br>  _count(CounterEvent event) =&gt; <strong>_counter++</strong>;</pre><pre>}</pre><p><strong>Implement Stream &amp; Sink</strong></p><p>To trigger and share data we can use<em> Streams</em> and <em>Sinks</em>. They are controlled with a <em>StreamController </em>for the <em>events</em> and the s<em>tream</em> itself.</p><p><em>Create StreamController and Sink for the counter</em></p><pre>// CounterBLoC.dart</pre><pre>// init StreamController<strong><br>final _counterStreamController </strong>= StreamController&lt;int&gt;();<br>StreamSink&lt;int&gt; <strong>get counter_sink </strong>=&gt; <strong>_counterStreamController</strong>.<strong>sink</strong>;</pre><pre><em>// expose data from stream<br></em>Stream&lt;int&gt; <strong>get stream_counter </strong>=&gt; <strong>_counterStreamController</strong>.<strong>stream</strong>;</pre><p>The controller exposes the stream and the sink (<em>StreamSink</em>) collects the data which will be exposed.</p><p><em>Create StreamController and Sink for the events</em></p><pre><strong>final _counterEventController </strong>= StreamController&lt;CounterEvent&gt;();</pre><pre><em>// expose sink for input events<br></em>Sink &lt;CounterEvent&gt; <strong>get counter_event_sink </strong>{ <br>   return <strong>_counterEventController</strong>.<strong>sink</strong>;<br>}</pre><p>The <em>_counterEventController</em> (of type <em>StreamController</em>) controls the <em>stream</em> of counter <em>events</em> and exposes the <em>sink</em> of <em>events</em>.</p><p><em>Update the CounterBLoC()._count() function</em></p><pre>_count(CounterEvent event) =&gt; <strong>counter_sink</strong>.add(++<strong>_counter</strong>);</pre><p>Add the counter incrementation to the sink, which is exposed with a StreamController.</p><p>Now it is possible to stream the counter value to a widget. The <em>sink</em> holds the incremented value (<em>_counter</em>) and the controller exposes the value in a stream. Every widget which has a implemented <em>StreamBuilder</em> can listen to a declared stream.</p><p><em>Initialize BLoC Constructor and listen to stream</em></p><pre>CounterBLoC() {  <strong>_counterEventController</strong>.<strong>stream</strong>.listen(_count);  }</pre><p>The<em> listen()</em> function creates a broadcast of streams. StreamBuilders can listen to this streams.</p><p><em>Clean up the BLoC</em></p><p>To prevent memory leaks we have to close all implemented controllers.</p><pre>dispose(){<br>  <strong>_counterStreamController</strong>.close();<br>  <strong>_counterEventController</strong>.close();<br>}</pre><p><em>BLoC and Events</em></p><p>Initialize the <em>CounterBLoC</em> and attach the <em>IncrementEvent</em> to the <em>sink</em> of the reference <em>StreamController</em>.</p><pre>//LandingPage.dart</pre><pre>final bloc = CounterBLoC();<br>...<br>onPressed: () =&gt; <strong>_bloc</strong>.<strong>counter_event_sink</strong>.add(IncrementEvent()),<br>...</pre><p><em>Update UI with StreamBuilder</em></p><p>The <em>StreamBuilder</em> can listen to the exposed streams and return widgets which can hold <em>snapshots </em>of retrieved stream-data.</p><pre>// Scaffold() widget</pre><pre>body:<strong> </strong>StreamBuilder(<br>    stream: <strong>_bloc</strong>.<strong>stream_counter</strong>,<br>    initialData: 0,<br>    builder: (context, snapshot) {<br>      <strong>return </strong>Center(child: Text(    snapshot.<strong>data</strong>.toString()    ));<br>    }<br>);</pre><p><em>Final Clean up LandingPage.dart</em></p><pre>@override<br>dispose(){<br>  <strong>super</strong>.dispose();<br>  <strong>_bloc</strong>.dispose();<br>}</pre><p>The <em>CounterBLoC</em> creates several<em> StreamController and </em>they have to be closed with the implemented <em>dispose()</em> function.</p><p>At this point we can run and test the application. This short prototype shows the complexity of a simple logic, but with the growth of you apps it becomes more practical.</p><p><strong>Recap</strong></p><p>I recommend to get familiar with BLoC or any other pattern to structure your app. If your are a beginner you may use public available packages at the <a href="https://pub.dartlang.org/">https://pub.dartlang.org</a> website :</p><ul><li><a href="https://pub.dartlang.org/packages/bloc"><strong>bloc</strong></a></li><li><a href="https://pub.dartlang.org/packages/bloc_pattern"><strong>bloc_pattern</strong></a></li><li><a href="https://pub.dartlang.org/packages/flutter_bloc"><strong>flutter_bloc</strong></a></li></ul><p>I hope this simple guide helps you to get started with the BLoC pattern and Streams in Flutter. Please see my other articles as well, if you are inserted in more informations about Flutter and mobile development.</p><p>Happy coding …</p><p>Business Blog</p><p><a href="https://www.inovex.de/blog/author/tkallinich/">Tino Kallinich, Autor bei inovex-Blog</a></p><p>2D Animation Repository</p><p><a href="https://www.2dimensions.com/a/Seemann-123/files/recent/all">2D - Tino Kallinich</a></p><p>Github Repository</p><ul><li><a href="https://github.com/SeemannMx">SeemannMx - Overview</a></li><li><a href="https://twitter.com/FlutterComm">JavaScript is not available.</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6ed8d0a63bb8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/flutter-community/flutter-bloc-with-streams-6ed8d0a63bb8">Flutter: BLoC with Streams</a> was originally published in <a href="https://medium.com/flutter-community">Flutter Community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Flutter: Libraries]]></title>
            <link>https://medium.com/@mx_tino/flutter-libraries-645538bd6553?source=rss-c20507342da------2</link>
            <guid isPermaLink="false">https://medium.com/p/645538bd6553</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[dependencies]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[plugins]]></category>
            <dc:creator><![CDATA[Tino Kallinich]]></dc:creator>
            <pubDate>Mon, 25 Feb 2019 08:01:00 GMT</pubDate>
            <atom:updated>2019-03-04T09:41:11.050Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rKyYKU7cYbTiWhuFO39lmw.png" /></figure><p>Software development lives and dies with third party packages and plugins. In Flutter we have a wide range of Plugins hosted at the <a href="https://pub.dartlang.org/flutter">Flutter Packages website</a>. The version 1.0 of the Flutter framework has been released in December 2018 and therefore some plugins are still in a early beta stage. Nevertheless the basic packages are implemented and ready to use.</p><p>All third party packages and plugins are managet in the <em>pubspec.yaml</em> file which can be found in the projects root directory,</p><pre>// pubspec.yaml</pre><pre><strong>name: </strong>flutter_application<br><strong>description: </strong>A new Flutter application.<br><br><strong>version: </strong>1.0.0+1<br><br><strong>environment:<br>  sdk: &quot;&gt;=2.0.0-dev.68.0 &lt;3.0.0&quot;<br><br>dependencies:<br>  flutter:<br>   sdk: </strong>flutter<br><br>  <strong>cupertino_icons: </strong>^0.1.2<br>  <strong>shared_preferences: </strong>any <strong><br>  scoped_model: </strong>any<strong><br></strong>  <strong>http: </strong>any</pre><pre><strong>dev_dependencies:<br>  flutter_test:<br>    sdk: </strong>flutter<strong><br><br>flutter:<br>  uses-material-design: </strong>true<br>  <strong>assets:<br>    </strong>- assets/...</pre><p>Add all required Flutter packages under the section<em> dependencies</em> and follow strictly the spacing convention.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EIZca-B4VQLjnTn2z-l57g.png" /></figure><p>Please see below my top list of packages, the include a wide range of functionality. Starting with <em>State Management</em>, <em>Login, Notifications</em> and <em>Memory</em> access. Ends with <em>Web</em> interaction and running<em> Animations</em>.</p><p><strong>State management</strong></p><p><a href="https://pub.dartlang.org/packages/redux">redux | Dart Package</a></p><p><strong>Login</strong></p><ul><li><a href="https://pub.dartlang.org/packages/google_sign_in">google_sign_in | Flutter Package</a></li><li><a href="https://pub.dartlang.org/packages/firebase_auth">firebase_auth | Flutter Package</a></li></ul><p><strong>Memory</strong></p><ul><li><a href="https://pub.dartlang.org/packages/shared_preferences">shared_preferences | Flutter Package</a></li><li><a href="https://pub.dartlang.org/packages/cloud_firestore">cloud_firestore | Flutter Package</a></li></ul><p><strong>Icons</strong></p><p><a href="https://pub.dartlang.org/packages/flutter_launcher_icons">flutter_launcher_icons | Dart Package</a></p><p><strong>Notifications</strong></p><p><a href="https://pub.dartlang.org/packages/flutter_local_notifications">flutter_local_notifications | Flutter Package</a></p><p><strong>Maps</strong></p><p><a href="https://pub.dartlang.org/packages/google_maps_flutter">google_maps_flutter | Flutter Package</a></p><p><strong>Web</strong></p><ul><li><a href="https://pub.dartlang.org/packages/http">http | Dart Package</a></li><li><a href="https://pub.dartlang.org/packages/url_launcher">url_launcher | Flutter Package</a></li></ul><p><strong>Animations</strong></p><p><a href="https://pub.dartlang.org/packages/flare_flutter">flare_flutter | Flutter Package</a></p><p>Please be advised to evaluate the package documentation and the related repository before you include it into your <em>pubspec.yaml</em> file.</p><p>I hope my recommendations help you to get started with Flutter.</p><p>Happy coding …</p><p>Business Blog</p><p><a href="https://www.inovex.de/blog/author/tkallinich/">Tino Kallinich, Autor bei inovex-Blog</a></p><p>2D Animation Repository</p><p><a href="https://www.2dimensions.com/a/Seemann-123/files/recent/all">2D - Tino Kallinich</a></p><p>Github Repository</p><p><a href="https://github.com/SeemannMx">SeemannMx - Overview</a></p><p>Sources &amp; Quotes</p><ul><li><a href="https://pub.dartlang.org/">https://pub.dartlang.org/</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=645538bd6553" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Share Streams with InheritedWidget]]></title>
            <link>https://medium.com/flutter-community/share-streams-with-inheritedwidget-e26c5364578b?source=rss-c20507342da------2</link>
            <guid isPermaLink="false">https://medium.com/p/e26c5364578b</guid>
            <category><![CDATA[widget]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[cross-platform]]></category>
            <dc:creator><![CDATA[Tino Kallinich]]></dc:creator>
            <pubDate>Sun, 24 Feb 2019 11:01:00 GMT</pubDate>
            <atom:updated>2019-02-25T15:39:25.759Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q_M4U4mRJNPbrV3xv7BCzA.png" /></figure><p>I’m working with Flutter since late 2018, just before the version 1.0 has been released. As you can see in my other <a href="https://medium.com/search?q=Tino%20Kallinich">articles</a> I y huge fan of micro apps. Apps which cover a single topic or fulfill a certain task. I use this approach where ever I start experimenting with new features.</p><p>Streams are of course no new features, but working with them can result in large projects. In this article I will use micro-app to demonstrate how we can use streams and access them every where in our app.</p><p><em>“Can I connect to a stream every where in my app using the InheritedWidget?”</em></p><p>Before I start I will clarify what a <em>BLoC</em>, a <em>Stream</em>, a <em>StreamController</em> and a <em>StreamBuilder</em> is. This micro-app should be able to connect to a stream of data. We will attach the stream data to a widget.This will result in a live update of the widget with the stream data. Doing this for a single page application is quite easy, but how so in app with more then one page.</p><p>The micro-app in this article has a minimum of two pages and will serve as an example of stream sharing across a Flutter application.</p><p><strong>Definitions</strong></p><p><em>BLoC</em></p><p>The <strong><em>B</em></strong><em>usiness </em><strong><em>Lo</em></strong><em>gic </em><strong><em>C</em></strong><em>omponent </em>can be seen as a wrapper of all your code which is not UI related.<em> BloC </em>is a pattern which helps you to structure your project into UI related code and business logic.</p><p><a href="https://pub.dartlang.org/packages/bloc">bloc | Dart Package</a></p><p>For me as a starter this means, you can create a <em>bloc.dart</em> component and collect all you functional code in it. Additional you can create a <em>widget.dart</em> which calls the component in order to populate its view.</p><p><em>Streams</em></p><p>In nature a stream, like the gulf-stream, is a current of a medium. The gulf-stream moves the medium water around the world. In code we can think of stream in the same way, it sends data from A to B.</p><p><em>StreamController</em></p><p>The <em>StreamController </em>controls the <em>Stream</em>, meaning he can expose and manipulate the <em>Stream</em> accordingly.</p><pre><em>          /* A controller with the stream it controls. */</em></pre><p><em>StreamBuilder</em></p><p>The <em>StreamController</em> exposes the S<em>tream</em> and the <em>Stream</em>B<em>uilder</em> can retrieve any <em>Stream</em> data in a<em> snapshot</em>.</p><pre>StreamBuilder(<br>  initialData: <strong>&quot; ...&quot;</strong>,<br>  stream: <strong>/* some stream */</strong>,<br>  builder: (context, snapshot) {    <strong>return Container(...);    </strong>}<br>)</pre><p>The StreamBuilder is a widget which can be placed anywhere in your app. For example you could declare it a the top level of you widget tree (root widget) and trickle down the stream reference. In this article I decided to combine the concept of <em>InheritedWidgets</em> and <em>Streams</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9IsiSUJETjVfe43zeqQMRw.png" /></figure><p><strong>Get Startet</strong></p><p>Create three pages <em>LandingPage.dart</em>,<em> FirstPage.dart </em>and<em> SecondPage.dart</em>. Add routing as you prefer, so we can navigate between the pages. Please see my <a href="https://github.com/SeemannMx/flutter_app_stream">GitHub repository</a> (<em>flutter_app_stream</em>) for reference.</p><p><em>Create a Stream in a BLoC</em></p><pre>// TestBloc.dart</pre><pre><strong>class </strong>TestBloc{<br><br>  int <strong>counter </strong>= 0;<br><br>  Stream &lt;int&gt; getPeriodicStream() <strong>async* </strong>{<br><br>    <strong>counter</strong>++;<br>    <strong>yield* </strong>Stream.periodic(Duration(seconds: 1),(_) {<br>      <strong>var </strong>value = <strong>new </strong>Random().nextInt(100);<br>      <strong>return </strong>value;<br>    });<br><br>  }<br>}</pre><p>The generated <em>Stream</em> sends random numbers between 0 and 100 in a 1 sec interval.</p><p><em>Create a InhertedWidget</em></p><p>With the InheritedWidget I can share any data between all child widgets. Here I wraped the InheritedWidget around the root widget. Now we can access all data from the InhertedWidget everywhere in the app.</p><pre>// GlobalValues.dart</pre><pre><strong>class </strong>GlobalValues <strong>extends </strong>InheritedWidget {</pre><pre>  // StreamController <strong>controller</strong>;<br>  // Stream <strong>stream</strong>;<br>  // Provider <strong>provider </strong>= <strong>new </strong>Provider(); * optional<br>  // TestBloc <strong>testbloc </strong>= TestBloc();<br>  // int <strong>counter </strong>= 0;</pre><pre>  @override<br>  bool updateShouldNotify(InheritedWidget oldWidget) =&gt; <strong>true</strong>;<br><br>  GlobalValues({Key key, Widget child}) {<br>    <strong>super</strong>(key: key, child: child);<br>  }<br><br>  <strong>static </strong>GlobalValues <em>of</em>(BuildContext context){<br>    <strong>return </strong>context.inheritFromWidgetOfExactType(GlobalValues) <br>       <strong>as </strong>GlobalValues;<br>  }<br>}</pre><p>The <em>InheritedWidget</em> is called <em>GlobalValues</em> in this project and article (name casting with the keyword <strong>as</strong>). We declare the <em>StreamController</em>, <em>Stream</em> and the <em>BLoC</em> here.</p><p><strong>Setup the StreamController</strong></p><p>The <em>LandingPage.dart</em> will initialize the <em>Stream</em> and setup the <em>Stream-Controller </em>by calling the BloC (<em>bloc.getPeriodicStream()</em>). The counter will take care that we initialize the <em>Stream</em> only ones.</p><pre><strong>class </strong>_LandingPageState <strong>extends </strong>State&lt;LandingPage&gt; {<br><br>  StreamController <strong>ctrl</strong>;<br>  TestBloc <strong>bloc </strong>= TestBloc();<br><br>  int <strong>counter </strong>= 0;<br><br>  @override<br>  Widget build(BuildContext context) {<br><br>    <strong>if</strong>(<strong>counter </strong>== 0){</pre><pre><em>      // listen to multiple streams      <br>      </em><strong>ctrl </strong>= StreamController.broadcast();</pre><pre>      // get and add a Stream<br>      <strong>ctrl</strong>.addStream(<strong>bloc</strong>.getPeriodicStream());<br>      <br>      <strong>counter</strong>++;<br>    }<br><br>    // get access to StreamController  <br>    GlobalValues.<em>of</em>(context).<strong>controller </strong>= <strong>ctrl</strong>;<br><br>    <strong>return </strong>Scaffold(...)<br>  }<br>}</pre><p>The <em>routing</em> to the next page (<em>FirstPage.dart</em>) is hidden in the <em>Scaffold </em>widget. Feel free to create the UI for navigation and representation of data.</p><p><strong>Setup the StreamBuilder</strong></p><p>First task is to get the reference to the <em>StreamController</em> in order to get access to the <em>Stream</em>.</p><pre>// FirstPage.dart and SecondPage.dart</pre><pre>@override<br>Widget build(BuildContext context) {<br><br>  <strong>controller </strong>= GlobalValues.<em>of</em>(context).<strong>controller</strong>;<br>  ...</pre><pre>}</pre><p>Second we wrap the <em>StreamBuilder</em> around a widget. This widget and its child widget have now access to the <em>Stream</em> via the <em>StreamBuilder stream</em> attribute.</p><pre>// FirstPage.dart and SecondPage.dart</pre><pre>Scaffold(<br>  appBar: AppBar( ... ),<br>  body: StreamBuilder(<br>    initialData: <strong>&quot;...&quot;</strong>,<br>    stream: <strong>controller</strong>.<strong>stream</strong>,<br>    builder: (context, snapshot) {<br>      <strong>return new Text( ... )</strong><br>    }),<br>);</pre><p><strong>Get Stream Data</strong></p><p>With the <em>stream</em> attribute we are listen to the stream and returns <em>snapshots</em> of it in the <em>builder</em> function. The <em>snapshot</em> holds the stream data. We can use it to populate widgets which are returned to its parent.</p><pre>builder: (context, snapshot) {<br>  <strong>return new Text(snapshot.data.toString);</strong><br>}</pre><p>With this setup we are able to listen to multiple <em>Streams </em>on multiple pages by sharing the<em> StreamController</em> with a <em>InhertedWidget</em>. As soon as your start the app the counter (<em>the periodic stream</em>) will start and you can navigate between all pages and see the value of the counter on each screen.</p><p><strong>Optional</strong></p><pre>getText(AsyncSnapshot snapshot, BuildContext context){<br><br>  String setString = <strong>&#39;Page </strong>${snapshot.<strong>data</strong>.toString()}<strong>&#39;</strong>;<br><br>  int value = int.<em>tryParse</em>(snapshot.<strong>data</strong>.toString()) ?? 1984;<br>  <strong>if </strong>(value % 2 != 0) setString = <strong>&quot;disconnected from stream&quot;</strong>;<br><br>  <strong>return </strong>Text(setString, style: TextStyle(fontSize: 24),);<br>}</pre><p>To manipulate the <em>snapshot</em> you can <em>parse</em>, <em>modify</em> and <em>return</em> value as you can see in the <em>getText(…)</em> function.</p><p><strong>Recap</strong></p><p>They Question was :</p><p><em>“Can I connect to a stream every where in my app using the InhertedWidget?”</em></p><p>The answer is <em>yes</em>, but before you use this structure you should search for the <a href="https://pub.dartlang.org/packages/scoped_model">scope_model</a> pattern. This has been a straight forward experiment, where I try to work through some new concepts and work with <em>BLoC</em>, <em>Streams</em> and <em>InheritedWidgets</em>.</p><p>I hope this article helps you to get started with Flutter and motivated you to create similar project articles.</p><p>Happy coding …</p><p>Business Blog</p><p><a href="https://www.inovex.de/blog/author/tkallinich/">Tino Kallinich, Autor bei inovex-Blog</a></p><p>2D Animation Repository</p><p><a href="https://www.2dimensions.com/a/Seemann-123/files/recent/all">2D - Tino Kallinich</a></p><p>Github Repository</p><p><a href="https://github.com/SeemannMx">SeemannMx - Overview</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e26c5364578b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/flutter-community/share-streams-with-inheritedwidget-e26c5364578b">Share Streams with InheritedWidget</a> was originally published in <a href="https://medium.com/flutter-community">Flutter Community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Flutter: Cheat Sheet]]></title>
            <link>https://medium.com/@mx_tino/flutter-cheatsheet-ee46128ba626?source=rss-c20507342da------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee46128ba626</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[cross-platform]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[bash-script]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <dc:creator><![CDATA[Tino Kallinich]]></dc:creator>
            <pubDate>Fri, 22 Feb 2019 08:01:00 GMT</pubDate>
            <atom:updated>2019-02-23T19:35:17.484Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AEEd3xnxEBxKobQjZEu79w.png" /></figure><p>Every Flutter developer has to know the basic Flutter<em> bash </em>commands. For those how are not familiar with <em>bash</em> please find below all needed Console / Terminal commands.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*Z2yz522vgIRU-jJrPRwxxw.png" /></figure><p><strong>Flutter SDK Commands</strong></p><p><em>Flutter version</em></p><pre>$ flutter --version</pre><p><em>Flutter device id</em></p><pre>$ flutter --device-id </pre><p><em>Flutter help</em></p><pre>$ flutter -h</pre><p><em>Flutter channel</em></p><pre>$ flutter channel</pre><p><em>Flutter upgrade</em></p><pre>$ flutter upgrade</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*Z2yz522vgIRU-jJrPRwxxw.png" /></figure><p><strong>Flutter Project Commands</strong></p><p><em>Flutter clean</em></p><pre>$ flutter clean</pre><p><em>Flutter build</em></p><pre>$ flutter build </pre><p><em>Flutter run</em></p><pre>$ flutter run </pre><p><strong>Flutter Test Commands</strong></p><p><em>Flutter test driver</em></p><pre>$ flutter drive --target=test_driver/app.dart</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RojeumLUrlFBqNV5Td-JQw.png" /></figure><p><strong>Flutter Bug Reporting</strong></p><p><em>Flutter doctor</em></p><pre>$ flutter doctor</pre><p><em>Flutter run verbose</em></p><pre>$ flutter run --verbose</pre><p><em>Flutter bug report</em></p><pre>$ flutter --bug-report</pre><p>I hope this small cheatsheet helps you to get started with Flutter. Please see my other articles as well, if you are inserted in more informations about Flutter and mobile development.</p><p>Happy coding …</p><p>Business Blog</p><p><a href="https://www.inovex.de/blog/author/tkallinich/">Tino Kallinich, Autor bei inovex-Blog</a></p><p>2D Animation Repository</p><p><a href="https://www.2dimensions.com/a/Seemann-123/files/recent/all">2D - Tino Kallinich</a></p><p>Github Repository</p><p><a href="https://github.com/SeemannMx">SeemannMx - Overview</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee46128ba626" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Flutter: Custom Icon]]></title>
            <link>https://medium.com/@mx_tino/flutter-custom-icon-46444d5f9676?source=rss-c20507342da------2</link>
            <guid isPermaLink="false">https://medium.com/p/46444d5f9676</guid>
            <category><![CDATA[design]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[cross-platform]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[development]]></category>
            <dc:creator><![CDATA[Tino Kallinich]]></dc:creator>
            <pubDate>Wed, 20 Feb 2019 05:01:00 GMT</pubDate>
            <atom:updated>2019-02-20T05:01:00.868Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lJNfTqw_Ic2IaVsLhjje-w.png" /></figure><p>Creating a mobile application demands an app icon. In Flutter its not drag and drop process like in iOS. It is more like in android, where you declare a image in a assets folder and call set it programmatically.</p><p>In order to add a custom icon to you Flutter project you need a image first. Please be advised that you use only images which have the appropriate</p><p>li-cense or design your own image. The image size should be considered as well, since the image will be a small icon. Your focus should be on sharpness and less details. Even your app theme plays a part in the design of your icon, specially if your designing a icon in a company brand context.</p><p>Lets assume you have an appropriate image which will we can use as icon, then we can start to attach it to the Flutter project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0kltYpRvGCg252zAQIaPZA.png" /></figure><p>We can use the community plugin <a href="https://pub.dartlang.org/packages/flutter_launcher_icons">flutter_launcher_icons</a> for this task.</p><ol><li>Add Assets Directory</li></ol><p>Create new assets directory in projects root directory and add a subdirectory icons.</p><pre>&lt;project_root_directory/assets/icons&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4P-fU6nXo7R3RV1hlFMlXg.png" /></figure><ol><li>Add Image Assets</li></ol><pre>// pubspec.yaml</pre><pre><strong>flutter:<br><br>  uses-material-design: </strong>true<br>  <strong>assets:</strong><br>    - assets/icons/your_icon_image.png<br>    </pre><p>2. Add Dependencies</p><pre>//pubspec.yaml</pre><pre><strong>dev_dependencies:<br>  flutter_test:<br>    sdk: </strong>flutter<br><em><br>  </em><strong>flutter_launcher_icons: </strong>any<br><br><strong>flutter_icons:<br>  android: </strong>true<br>  <strong>ios: </strong>true<br>  <strong>image_path: &quot;assets/icons/your_icon_image.png&quot;</strong></pre><p>3. Platform Icons</p><p>As you can see above in Flutter we separate the icons in ios and android. Here you can segregate the icons with a simple boolean tag (true / false).</p><pre>// pubspec.yaml</pre><pre><strong>flutter_icons:<br>  android: </strong>true<br>  <strong>ios: </strong>true<br>  <strong>...</strong></pre><p>4. Run Flutter command</p><p>Get Dart package ‘<em>flutter_launcher_icons</em>’and run command in your projects root directory.</p><pre>$ flutter pub get</pre><p>5. Set Custom Icon</p><p>Run Flutter command in your projects root directory to set the icon for your project.</p><pre>$ flutter packages pub run flutter_launcher_icons:main </pre><p>Now you have set your own icon to your Flutter project.</p><p>A simple task which goes quite deep into each platform. The process of changing the app icon by Google’s new framework Flutter is pretty straight forward. Since Flutter is a plugin bases framework, it becomes clear that the quality of the projects are driven by the community efforts to contribute to plugins and packages.</p><p>I hope you enjoyed this article and I could help you to get started with Flutter.</p><p>Happy coding …</p><p>Business Blog</p><p><a href="https://www.inovex.de/blog/author/tkallinich/">Tino Kallinich, Autor bei inovex-Blog</a></p><p>2D Animation Repository</p><p><a href="https://www.2dimensions.com/a/Seemann-123/files/recent/all">2D - Tino Kallinich</a></p><p>Github Repository</p><p><a href="https://github.com/SeemannMx">SeemannMx - Overview</a></p><p>Sources &amp; Quotes:</p><ul><li><a href="https://pub.dartlang.org/packages/flutter_launcher_icons">Flutter Launcher Plugin</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=46444d5f9676" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Flutter: micro-apps]]></title>
            <link>https://medium.com/@mx_tino/flutter-micro-apps-de80af8be34a?source=rss-c20507342da------2</link>
            <guid isPermaLink="false">https://medium.com/p/de80af8be34a</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[blog]]></category>
            <category><![CDATA[mobile]]></category>
            <category><![CDATA[development]]></category>
            <dc:creator><![CDATA[Tino Kallinich]]></dc:creator>
            <pubDate>Tue, 19 Feb 2019 10:02:51 GMT</pubDate>
            <atom:updated>2019-03-08T15:09:53.974Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tyPam0ct3X8O2bRfh1YMNg.png" /></figure><p>The rising star Flutter in his version 1.0 is available now and the question arise what can we do with it. To many blogs discuss this topic, so I get straight to the conclusion. I have worked with Flutter for the past four months and for me it is a great framework for fast mobile development. If you have noticed, I have left the word cross-platform out of it. Because no matter which cross-platform framework you work with, in every framework you need to handle platform specific requirements.</p><p>I don’t compare native with cross-platform, because I think its not com-parable. Like comparing air plans with cars, both are designed for trans-potation. But of course they are used in a whole different context. The same is true for development.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xHINeY-FYBvnuvUltEEMHw.png" /></figure><p>What are micro apps? I define micro-apps as ui based applications, where all the heavy work is outsourced to well designed backend. They are designed to tackle a specific task, for example WhatsApp can be seen as micro-app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s-SBQllLjRYtl9Z02P_kZA.png" /></figure><p>Here comes Flutter`s advantage, Google has provided us with an open source framework, which we can run on every platform. Of course there are still some issues with platform specific requirements and third party libraries. But this kind of obstacles exists in every cross-platform framework.</p><p>Since the UI of a micro-app is not as sophisticated as in a large online streaming platform application. If you compare a basic <em>math calculator</em> with<em> online shopping app </em>you can see the difference. Fast-prototyping in Flutter. With Flutter we can implement a prototype for <em>all </em>platforms in record time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HeF-YunbADt5dSEt6rXc0w.png" /></figure><p>Flutter helps specially in <em>micro-apps</em>, where your prototype develops over time in your production app.</p><p>In my opinion Flutter is still underrated, because<em> React </em>and <em>React Native</em> are hyped by the large web-dev community. It will take time to convince customers to use Flutter in new projects. But I think with given time Flutter will find his spot in the world of software development. A specially since Flutter is only the first step to built a new eco system around Google’s new operation system <a href="https://github.com/fuchsia-mirror">Fuchsia</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qL8BwX4h5EqO_GvYL-52ZQ.png" /></figure><p>I hope you enjoyed reading this article will help you to get started with Flutter.</p><p>Happy coding …</p><p>Business Blog</p><p><a href="https://www.inovex.de/blog/author/tkallinich/">Tino Kallinich, Autor bei inovex-Blog</a></p><p>2D Animation Repository</p><p><a href="https://www.2dimensions.com/a/Seemann-123/files/recent/all">2D - Tino Kallinich</a></p><p>Github Repository</p><p><a href="https://github.com/SeemannMx">SeemannMx - Overview</a></p><p>Sources &amp; Quotes:</p><ul><li><a href="https://commons.wikimedia.org/">https://commons.wikimedia.org</a></li><li><a href="https://de.wikipedia.org/">https://de.wikipedia.org</a></li><li><a href="https://www.forbes.com/sites/adrianbridgwater/2015/07/16/what-are-micro-apps-and-why-do-they-matter-for-mobile/#296e43636338">https://www.forbes.com</a> article on micro-apps by Adrian Bridgwater “What Are Micro Apps”</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de80af8be34a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>