<?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[Flutter Clan - Medium]]></title>
        <description><![CDATA[We’re a group of Flutter Fanboys in pursuit of learning new stuff and sharing anything that we find useful. - Medium]]></description>
        <link>https://medium.com/flutter-clan?source=rss----28960b1a2174---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Flutter Clan - Medium</title>
            <link>https://medium.com/flutter-clan?source=rss----28960b1a2174---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 10:40:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/flutter-clan" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Firebase Crashlytics with Flutter]]></title>
            <link>https://medium.com/flutter-clan/firebase-crashlytics-with-flutter-7fe869f24bac?source=rss----28960b1a2174---4</link>
            <guid isPermaLink="false">https://medium.com/p/7fe869f24bac</guid>
            <category><![CDATA[crash]]></category>
            <category><![CDATA[crashlytics]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[firebase]]></category>
            <category><![CDATA[detection]]></category>
            <dc:creator><![CDATA[Rishabh Sharma]]></dc:creator>
            <pubDate>Thu, 22 Jul 2021 13:10:13 GMT</pubDate>
            <atom:updated>2021-07-22T13:10:13.115Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article, we would discuss how can we integrate and analyze firebase crashlytics on a flutter app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kAKZ-9ifPoDdWlxQ" /><figcaption>Photo by <a href="https://unsplash.com/@filisantillan?utm_source=medium&amp;utm_medium=referral">Filiberto Santillán</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong><em>But Why we need this?</em></strong></p><p>It was the month of July when my app crashed in someone&#39;s phone and I was not able to detect the issue as I didn&#39;t have any logs for solving the issue nor did I had the real device of that model.</p><p>Then I stumbled upon <a href="https://pub.dev/packages/firebase_crashlytics"><em>Firebase crashlytics</em> </a>which is a cool solution to track all your crashes with detailed information such as logs, device model, etc. Which were enough to solve my problem.</p><p><strong><em>But the real problem was how can I integrate this?</em></strong></p><p>After some digging and hours of research, I was finally able to integrate Firebase Crashlytics into my Flutter app.</p><p><strong>Disclaimer</strong>: <strong>Firebase Crashlytics would only work with Flutter version <em>2.0.2</em> <em>or lower</em> as of July 21.</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F5zf2M4HgjjWszLd4a5%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F5zf2M4HgjjWszLd4a5%2Fgiphy.gif&amp;image=https%3A%2F%2Fmedia0.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExODhsMmNqYnZpYnNocjd3MTFkd2k2Mm96dzEwbTg2OGdwcGplMzQ1bSZlcD12MV9naWZzX2dpZklkJmN0PWc%2F5zf2M4HgjjWszLd4a5%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="181" frameborder="0" scrolling="no"><a href="https://medium.com/media/ceb4fd2380af661521a6e88c61bea3a3/href">https://medium.com/media/ceb4fd2380af661521a6e88c61bea3a3/href</a></iframe><ol><li>Go to the Firebase console and enable Firebase Crashlytics and now it would listen to all the crashes that would happen</li><li>Add firebase_crashlytics: ^2.0.7into your pubsec.yaml</li><li>Goto this <a href="https://firebase.flutter.dev/docs/crashlytics/overview/"><em>official documentation</em></a><em> </em>of firebase crashlytics and follow all the steps</li><li>Wrap your runApp with runZonedGuarded</li></ol><pre>runZonedGuarded(() {<br> runApp(MyApp());<br> }, FirebaseCrashlytics.instance.recordError);<br>}</pre><p>5. Create a method for initializing</p><pre><em>// Toggle this to cause an async error to be thrown during initialization</em><br><em>// and to test that runZonedGuarded() catches the error</em><br><strong>const</strong> _kShouldTestAsyncErrorOnInit = <strong>false</strong>;<br><br><em>// Toggle this for testing Crashlytics in your app locally.</em></pre><pre><strong>const</strong> _kTestingCrashlytics = <strong>true</strong>;<br>Future&lt;void&gt; _initializeFlutterFire() async {<br> <br> // Wait for Firebase to initializeif (_kTestingCrashlytics) {<br> // Force enable crashlytics collection enabled if we’re testing it.</pre><pre> await  FirebaseCrashlytics.instance.setCrashlyticsCollectionEnabled(true);<br> <br>} else {<br> // Else only enable it in non-debug builds.<br> // You could additionally extend this to allow users to opt-in.</pre><pre> await FirebaseCrashlytics.instance<br>.setCrashlyticsCollectionEnabled(!kDebugMode);<br> }</pre><pre> // Pass all uncaught errors to Crashlytics.<br> Function originalOnError = FlutterError.onError;<br> FlutterError.onError = (FlutterErrorDetails errorDetails) async <br>{<br> await FirebaseCrashlytics.instance.recordFlutterError(errorDetails);<br> <br> // Forward to original handler.<br> originalOnError(errorDetails);<br> };</pre><pre>if (_kShouldTestAsyncErrorOnInit) {<br> await _testAsyncErrorOnInit();<br> }<br> }</pre><p>6. Just call this method in the init state</p><pre><a href="http://twitter.com/override">@override</a><br> void initState() {<br> super.initState();<br> _initializeFlutterFireFuture = _initializeFlutterFire();<br> }</pre><p>All set for Android, but there are few changes that we still have to do with the iOS part.</p><ol><li>Select Target Runner</li><li>Go to build settings and select “All”</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/323/1*pZQQoHFO33N17Dq--lbsAw.png" /></figure><p>6. Under Build Options you would find <strong><em>Debug Information Format</em></strong></p><p>7. Open that and for all schemes change the settings to “DWARF with dYSM file”</p><p>8. Enable Bitcode as well</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/515/1*e0y2Y--6jNVHCVeoHoF-Qg.png" /></figure><p>9. Now if your app crashes, you can see its analytics on the Crashlytics Console</p><p>But wait, the console is asking for some ‘dSYM’ stuff what&#39;s that?</p><p><strong>dSYM</strong> files store the debug symbols for your app</p><p>Services like Crashlytics use it to replace the symbols in the crash logs with the names of the appropriate methods so it will be readable and will make sense.</p><p>In the case of android devices, these files are automatically uploaded but for iOS, we have to follow some steps.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2Ft9ctG5MZhyyU8%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Ft9ctG5MZhyyU8%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2Ft9ctG5MZhyyU8%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="429" frameborder="0" scrolling="no"><a href="https://medium.com/media/1032578ae910e0448b1352b9d2f64679/href">https://medium.com/media/1032578ae910e0448b1352b9d2f64679/href</a></iframe><p>We just have to upload the dSYM files to the console</p><ol><li>For uploading we can not just drag and drop these files on the console rather we have to run a script in order to upload them</li><li>Run this script on your terminal</li></ol><pre>/path to pods directory/FirebaseCrashlytics/upload-symbols<br> -gsp /path to GoogleService-Info.plist -p ios /path/to/dSYMs</pre><p>You can easily get paths to the pods directory and to the GoogleService-Info.plist</p><p>The main task is to get the dSYMs path, follow these steps to fetch the path</p><ol><li>Archive the project</li><li>In the Organiser select the archive project and right-click on it then select <strong><em>Show in Finder</em></strong></li><li>Select the Project and again right-click on it then select <strong><em>Show Package Contents</em></strong></li><li>You will be able to view the dSYMs folder</li><li>Drag the folder to your terminal and then copy its path</li></ol><p>Now run this Script and your setup is complete!</p><pre>/path to pods directory/FirebaseCrashlytics/upload-symbols<br> -gsp /path to GoogleService-Info.plist -p ios /path to dSYMs</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7fe869f24bac" width="1" height="1" alt=""><hr><p><a href="https://medium.com/flutter-clan/firebase-crashlytics-with-flutter-7fe869f24bac">Firebase Crashlytics with Flutter</a> was originally published in <a href="https://medium.com/flutter-clan">Flutter Clan</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Native Splash Screen in Flutter apps]]></title>
            <link>https://medium.com/flutter-clan/native-splash-screen-in-flutter-apps-91838a0dd4d1?source=rss----28960b1a2174---4</link>
            <guid isPermaLink="false">https://medium.com/p/91838a0dd4d1</guid>
            <category><![CDATA[size-issues]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[delay]]></category>
            <category><![CDATA[splash-screen]]></category>
            <category><![CDATA[logo-size]]></category>
            <dc:creator><![CDATA[Rishabh Sharma]]></dc:creator>
            <pubDate>Thu, 01 Jul 2021 05:51:36 GMT</pubDate>
            <atom:updated>2021-07-01T05:52:20.322Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*o7-iMf6xPoBBGEuH" /><figcaption>Photo by <a href="https://unsplash.com/@coinviewapp?utm_source=medium&amp;utm_medium=referral">CoinView App</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>When we load our splash screen in our Flutter app, the app takes about a second to initialize the Dart VM and displays a white or empty screen for that time frame.</p><p>For solving this issue, we can use a native splash screen for that time frame, and when the flutter VM loads, it displays the splash screen written inside the flutter app.</p><p>But does this solves all our problems?</p><p>The answer is NO!</p><p>There are size gaps in the logo when we load it in the native splash screen as compared to the splash screen on the flutter app.</p><p>Because of this, it looks like a glitch.</p><p>Let&#39;s see how can we solve this.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FgLiyt8QwcHA5ZvLwaF%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FgLiyt8QwcHA5ZvLwaF%2Fgiphy.gif&amp;image=https%3A%2F%2Fmedia4.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExZDdyam44OGJzdTdxMm9wcGRlN3BxazkwYnZnOHU0bnhzdzZ2ZHpzaSZlcD12MV9naWZzX2dpZklkJmN0PWc%2FgLiyt8QwcHA5ZvLwaF%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="246" frameborder="0" scrolling="no"><a href="https://medium.com/media/97e4a3dd4fefc1342d4b31f8a80525d5/href">https://medium.com/media/97e4a3dd4fefc1342d4b31f8a80525d5/href</a></iframe><p>We would use <a href="https://pub.dev/packages/flutter_native_splash">flutter_native_splash</a> for implementing splash screen from the native side for both android and iOS.</p><ol><li>Just add flutter_native_splash: latest in your pubsec.yaml and follow the steps given on their official documentation <a href="https://pub.dev/packages/flutter_native_splash">flutter_native_splash</a></li><li>In flutter_native_splash.yaml, you can set the color and background image according to your designs and set the image attribute with the path to your logo or splash screen image that you would like to display.</li><li>Don&#39;t forget to add the image path in the assets of pubspec.yaml</li></ol><p>By running</p><pre>flutter pub run flutter_native_splash:create</pre><p>a few folders and files would be generated automatically. These files would contain the code for displaying the splash screen from the native side.</p><p><strong>For Android</strong></p><ol><li>Goto drawable/launch_background.xml and set the height or width with the exact pixels that you defined in your flutter app for the image. Here always use “ dp ”(Density-independent Pixels) so that it exactly matches the size that we gave the image on the flutter side.</li><li>Set constraints for width and height and set gravity = fill</li></ol><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br>&lt;layer-list xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;&gt;<br><br>    &lt;item android:height=&quot;100dp&quot; android:width=&quot;300dp&quot; android:gravity=&quot;center&quot;&gt;<br>        &lt;bitmap<br>            android:layout_width=&quot;match_parent&quot;<br>            android:layout_height=&quot;match_parent&quot;<br>            android:gravity=&quot;fill&quot;<br>            android:src=&quot;@drawable/splash&quot; /&gt;<br>    &lt;/item&gt;<br>&lt;/layer-list&gt;</pre><p><strong>For iOS</strong></p><ol><li>Open Xcode</li><li>Goto ios/Runner/Base.lproj/LaunchScreen.storyboard</li><li>Select the logo image and set horizontal and vertical constraints for moving the image to the center. Also, set the height and width.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/292/1*xhcbKqbZbfHIHTbEAakrtA.png" /></figure><p>4. Set the content mode to Aspect Fit</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/282/1*3roeEv7noqgBMyrGcMtGcg.png" /></figure><p>Everything would work fine after following these steps without any size issues!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=91838a0dd4d1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/flutter-clan/native-splash-screen-in-flutter-apps-91838a0dd4d1">Native Splash Screen in Flutter apps</a> was originally published in <a href="https://medium.com/flutter-clan">Flutter Clan</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Text Scaling in Flutter]]></title>
            <link>https://medium.com/flutter-clan/text-scaling-in-flutter-ef447cb53bf1?source=rss----28960b1a2174---4</link>
            <guid isPermaLink="false">https://medium.com/p/ef447cb53bf1</guid>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <dc:creator><![CDATA[Akshat kaneria]]></dc:creator>
            <pubDate>Wed, 30 Jun 2021 19:30:59 GMT</pubDate>
            <atom:updated>2021-07-01T06:25:57.080Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*s7eLjvdpruYZDWa8" /><figcaption>Photo by <a href="https://unsplash.com/@markuswinkler?utm_source=medium&amp;utm_medium=referral">Markus Winkler</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Introduction:</h3><p>Sometimes people prefer reading enlarged text on their phones rather than the usual size or they would like to customise the size of the text, so if your app contains a lot of reading material then text scaling would be a really nice feature to have in your app. In this way, the users can customise the font size according to their needs. In this post, we’ll be discussing about how to implement text scaling in your Flutter app.</p><h3>Getting Started:</h3><p>I have created a simple Flutter app to demonstrate the working of text scaling. The app consists of a single screen where there are multiple texts with different font sizes. There is a slider at the bottom of the screen which can be used to change the text scale factor. As the slider moves, the change in the size of all the texts is reflected on the screen.</p><p>The working of the app is shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*v0rPERiioaxG6onOKge0ag.gif" /></figure><h3>Implementation:</h3><p>Now, let’s dive into the implementation part. We’ll be using an <a href="https://api.flutter.dev/flutter/widgets/InheritedWidget-class.html"><strong>InheritedWidget</strong></a><strong> </strong>for implementing our text scaler. Inherited widget is used to pass data from an ancestor widget to descendant ones, which are possibly deep down the widget tree. I would recommended you to learn more about InheritedWidget and how to use it before proceeding with this article.</p><p>First of all, I have created a <strong>TextScalingFactor</strong> class which contains a <strong><em>scaleFactor</em></strong> value. This will be passed using our InheritedWidget and then it can be used with all the Text widgets in our app.</p><p>The implementation is as below:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b54911e73c8cbc1a76fbfab4d20a0cc1/href">https://medium.com/media/b54911e73c8cbc1a76fbfab4d20a0cc1/href</a></iframe><p>Here, <strong>“==”</strong><em> </em>operator has been overridden to add more checks for comparing two objects of TextScalingFactor.</p><p>Now, let’s create our <strong>TextScaler </strong>class. The implementation of which is as below:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0b59d4be45d00c4cb11a34e206188f93/href">https://medium.com/media/0b59d4be45d00c4cb11a34e206188f93/href</a></iframe><p>Let’s analyse this file now.</p><p>Here, we have used <strong>&lt;T&gt; </strong>in all the classes as we want the classes to be generic. <strong>_ScalingFactorBindingScope</strong> class is extending InheritedWidget and it contains <em>scalingFactorBindingState </em>which is a state of TextScaler i.e. _TextScalerState. Also, <strong>updateShouldNotify</strong> defines whether the framework should notify widgets that inherit from this widget and thus we return true as we need to rebuild the widgets that inherit from this widget (InheritedWidget).</p><p><strong>TextScaler </strong>is our main widget which will be wrapped at the root level. It is a StatefulWidget as we need to change the state of this widget as soon as the value of TextScalingFactor changes. <strong>initialScaleFactor </strong>will define the initial scaling factor. _ScalingFactorBindingScope is being used inside TextScaler as shown below:</p><pre><a href="http://twitter.com/override">@override</a><br>Widget build(BuildContext context) {<br>  return _ScalingFactorBindingScope&lt;T&gt;(<br>    scalingFactorBindingState: this,<br>    child: widget.child,<br>  );<br>}</pre><p>The <strong>of </strong>method defined in TextScaler will be used to access the current value that is being passed using the InheritedWidget i.e. <strong>currentValue </strong>of _TextScalerState. The implementation of which is as below:</p><pre>static T of&lt;T&gt;(BuildContext context) {<br>  final _ScalingFactorBindingScope&lt;T&gt; scope =     context.dependOnInheritedWidgetOfExactType&lt;_ScalingFactorBindingScope&lt;T&gt;&gt;();<br>  return scope?.scalingFactorBindingState?.currentValue;<br>}</pre><p>The <strong>update</strong> method will be used to updated the value that is being passed using the InheritedWidget. Here, update method is internally calling <strong>updateModel</strong> method of _TextScalerState. The implementation is as below:</p><pre>static void update&lt;T&gt;(BuildContext context, T newModel) {<br>  final _ScalingFactorBindingScope&lt;dynamic&gt; scope = context.dependOnInheritedWidgetOfExactType&lt;_ScalingFactorBindingScope&lt;T&gt;&gt;();<br>  scope?.scalingFactorBindingState?.updateModel(newModel);<br>}</pre><p>Now, we’re all set. Here’s how we can wrap TextScaler at the root of our application and pass an initial scaling factor which is <em>TextScalingFactor(scaleFactor: 1.25) </em>in this case:</p><pre>class MyApp extends StatelessWidget {<br>  <a href="http://twitter.com/override">@override</a><br>  Widget build(BuildContext context) {<br>    return TextScaler&lt;TextScalingFactor&gt;(<br>      initialScaleFactor: TextScalingFactor(scaleFactor: 1.25),<br>      child: MaterialApp(<br>        title: &#39;Text Scaling Demo&#39;,<br>        theme: ThemeData(<br>          primarySwatch: Colors.blue,<br>        ),<br>        home: MyHomePage(title: &#39;Text Scaling Demo&#39;),<br>      ),<br>    );<br>  }<br>}</pre><p>Finally, we can use the scale factor in all the Text widgets throughout the app in this way:</p><pre>Text(<br>  &#39;This is a sample heading&#39;,<br>  textScaleFactor: TextScaler.of&lt;TextScalingFactor&gt;(context).scaleFactor,<br>)</pre><p>And we can update the values in this way:</p><pre>TextScaler.update(context, TextScalingFactor(scaleFactor: 1.5));</pre><p>Kudos to <a href="https://medium.com/u/fc4083806af8">Akshat Sharma</a> for suggesting this amazing approach!😄</p><blockquote><strong>Thank you for reading this article. If you liked this article, then clap 👏 as much as you can and share it with your friends. You can find the complete source code here:</strong></blockquote><p><a href="https://github.com/akshatkaneria/text_scaling_example">akshatkaneria/text_scaling_example</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ef447cb53bf1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/flutter-clan/text-scaling-in-flutter-ef447cb53bf1">Text Scaling in Flutter</a> was originally published in <a href="https://medium.com/flutter-clan">Flutter Clan</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Protect your data with PGP encryption in Flutter]]></title>
            <link>https://medium.com/flutter-clan/protect-your-data-with-pgp-encryption-in-flutter-525d060a636?source=rss----28960b1a2174---4</link>
            <guid isPermaLink="false">https://medium.com/p/525d060a636</guid>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[pgp]]></category>
            <category><![CDATA[encryption]]></category>
            <category><![CDATA[privacy]]></category>
            <dc:creator><![CDATA[Annsh Singh]]></dc:creator>
            <pubDate>Wed, 30 Jun 2021 19:23:29 GMT</pubDate>
            <atom:updated>2021-06-30T19:23:29.772Z</atom:updated>
            <content:encoded><![CDATA[<h3>Protect your data with PGP encryption in Flutter.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Yr4NY0O-nU8ow2fj" /><figcaption>Photo by <a href="https://unsplash.com/@markuswinkler?utm_source=medium&amp;utm_medium=referral">Markus Winkler</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>End to end encryption is a great way to ensure a private and secure communication on a platform. You might have heard of this concept while popular apps like WhatsApp and Telegram were integrating this in their services a few years back.</p><p>As a developer of a communication platform, you would want to ensure security on your product as well and for that, we have PGP (Pretty Good Privacy) to the rescue. In fact, PGP is the most widely used email encryption system in the world.</p><p>In simple terms, when PGP is in place, if a sender sends a message then that message can only be decrypted and read by the authorized recipient. This works because only the recipient has the <strong>key</strong> to convert the text back into the readable message on their device.</p><h3>How does it all work?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PseSXWs-rm9mdNCJQH_WEg.png" /><figcaption>Credits: ProtonMail</figcaption></figure><p>Let’s look at the diagram above to understand what actually happens when the data is encrypted and decrypted.</p><ol><li><strong>Encryption: </strong>First, a<strong> </strong><em>random session key</em> is used to encrypt your data. Then, that same session key is encrypted using the <em>receiver’s </em><strong><em>public</em></strong><em> key. </em>Now, the <strong>combination</strong> of the encrypted message and the encrypted session key forms your encrypted message that is sent to the recipient.</li><li><strong>Decryption: </strong>Here, the receiver first <em>decrypts the session key</em> using their <strong><em>private</em></strong><em> key. </em>Next, the decrypted session key would then be used to <em>decrypt</em> the encrypted message, in return of which the user would get a readable message.</li></ol><p>Things to keep in mind:</p><ol><li>Session key used to encrypt should be completely random i.e. not easily guessable as someone who knows the session key can read the message. Also, a session key is unique for every message.</li><li>Public keys are meant to be shared so no harm sharing it over your platform. On the other hand, private keys must never be transmitted. If at all there is a need to do that, one must consider encrypting that as well using a custom encryption technique unique to your platform.</li></ol><p>Now that we are done with the basics, let’s move on to the implementation part.</p><p>For PGP in Flutter, we would be needing the <a href="https://pub.dev/packages/openpgp"><strong>openpgp</strong></a> package.</p><p>We would be following a mixture of <strong>symmetric encryption </strong>and <strong>public key encryption </strong>here.</p><p>We would be encrypting our message using <strong>symmetric</strong> encryption as a message could be huge and symmetric is more efficient that way.</p><p>Let’s have a look at the code now.</p><h4>Encryption:</h4><p>A typical encrypt method would look something like this:</p><pre>static void <em>encrypt</em>(String textMessage, String receiversPublicKey, <br>    Function(String, String, String) returnData) async {</pre><pre><em>///</em><strong><em>Create a session key</em></strong><em> <br>  </em>String sessionKey = getRandomSessionKey();<br><br>  <em>///</em><strong><em>Encrypt data using session key</em></strong><em><br>  </em>String encryptedMessage = await OpenPGP.<em>encryptSymmetric</em>(textMessage, sessionKey);<br><br>  <em>///</em><strong><em>Encrypt session key using receiver&#39;s public key</em></strong><em><br>  </em>String encryptedSessionKey = await OpenPGP.<em>encrypt</em>(sessionKey,    receiversPublicKey);<br><br>  returnData(encryptedMessage, encryptedSessionKey);<br>}</pre><p>Here, we followed the same flow as we had discussed earlier using the diagram above.</p><p><strong>Decryption:</strong></p><pre>static Future&lt;void&gt; <em>decrypt</em>(String encryptedMessage, String encryptedSessionKey, Function(String) returnData) async {</pre><pre>  <em>///</em><strong><em>Decrypt session key with Private key of recipient</em></strong><em><br>  </em>String decryptedSessionKey = await OpenPGP.<em>decrypt</em>(encryptedSessionKey, StreamChatManager.<em>instance</em>.decryptedPrivateKey, &#39;&#39;);<br><br>  <em>///</em><strong><em>Decrypt message with decrypted session key</em></strong><em><br>  </em>String decryptedText = await OpenPGP.<em>decryptSymmetric</em>(encryptedMessage, decryptedSessionKey);<br><br>  returnData(decryptedText);<br>}</pre><p>Here, we would be receiving the encrypted message and encrypted session key. Message would be decrypted symmetrically as it was encrypted symmetrically.</p><p>Here you go.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FWQUfYS1i3R1q2QxEle%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fmusicchoice-chris-janson-chrisjanson-reaction-WQUfYS1i3R1q2QxEle&amp;image=https%3A%2F%2Fmedia0.giphy.com%2Fmedia%2FWQUfYS1i3R1q2QxEle%2Fgiphy.gif%3Fcid%3D790b7611c329da72d8a52cdebc508b4b42cc8eab58ab104b%26rid%3Dgiphy.gif%26ct%3Dg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="230" frameborder="0" scrolling="no"><a href="https://medium.com/media/ca088be304dbc91974ed4b55a098a34f/href">https://medium.com/media/ca088be304dbc91974ed4b55a098a34f/href</a></iframe><h3>How many claps does this article deserve?</h3><p><em>If you find this article useful, please </em><strong><em>click the </em></strong>👏<strong><em> button</em></strong><em> </em><strong><em>and share </em></strong><em>to help others find it! Feel free to clap many times (10</em>💥<em>, 20</em>💥<em> , or maybe 50</em>💥<em> ?) It fuels my focus to write more of it.</em></p><p>Connect with me on <a href="https://www.linkedin.com/in/annsh/">LinkedIn</a> or say hi on <a href="https://mobile.twitter.com/annsh2013">Twitter</a>, mentioning this article. You can drop an e-mail at annsh29@gmail.com as well.</p><p>Check out my series on various Flutter widgets here -</p><p><a href="https://medium.com/@annsh/flutter-widget-guide-index-f03141793b09">Flutter Widget Guide — Index</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=525d060a636" width="1" height="1" alt=""><hr><p><a href="https://medium.com/flutter-clan/protect-your-data-with-pgp-encryption-in-flutter-525d060a636">Protect your data with PGP encryption in Flutter</a> was originally published in <a href="https://medium.com/flutter-clan">Flutter Clan</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating and publishing a package]]></title>
            <link>https://medium.com/flutter-clan/creating-and-publishing-a-package-d58c177a95ee?source=rss----28960b1a2174---4</link>
            <guid isPermaLink="false">https://medium.com/p/d58c177a95ee</guid>
            <category><![CDATA[plugins]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[package]]></category>
            <category><![CDATA[badgecount]]></category>
            <category><![CDATA[swift]]></category>
            <dc:creator><![CDATA[Akshat Sharma]]></dc:creator>
            <pubDate>Wed, 30 Jun 2021 19:21:01 GMT</pubDate>
            <atom:updated>2021-07-01T07:15:06.167Z</atom:updated>
            <content:encoded><![CDATA[<h3>Creating and publishing a Flutter package</h3><p>If you are having a problem and you are able to solve it, it&#39;s highly likely that someone else also might have faced it or will face it in the future. In the programming universe, a problem can be anything whose solution is not straightforward. If a developer is able to figure out a way to solve the problem in a better manner, it should be shared with the community as well. <a href="https://flutter.dev/">Flutter</a> gives us a very simple tool to share our solutions globally. In this article, we’ll be exploring <a href="https://pub.dev/">pub.dev</a> and its wide use cases.</p><p>All Flutter developers make use of packages available at <a href="https://pub.dev/">pub.dev</a> in their applications. A package can be of two types, a Dart package or a Plugin package. A Dart package is a package that solves a problem in <a href="https://dart.dev/">Dart</a> language. It does not make use of any platform-specific APIs. Whereas a Plugin package is a package that uses both Dart and platform-specific APIs to make things work. In a Plugin package, <a href="https://dart.dev/">Dart</a> code communicates with native code written either in <a href="https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/Introduction/Introduction.html#:~:text=Objective%2DC%20is%20the%20primary,capabilities%20and%20a%20dynamic%20runtime.">Objective C</a>, <a href="https://www.java.com/en/">Java</a>, <a href="https://developer.apple.com/swift/">Swift</a>, or <a href="https://kotlinlang.org/">Kotlin</a>.</p><p>For example, we had to fetch the current badge number on the App Icon in iOS. We learned the process to get it, in this <a href="https://link.medium.com/oCw6a9AZwhb">article</a>. So, if anyone else faces this use case, he/she can follow the steps and get it done. Or one can just import a package and straight away get the count using <a href="https://dart.dev/">Dart</a>. The latter sounds easy and less time-consuming. So let’s get into developing a package.</p><pre>flutter create --org com.aks --template=plugin --platforms=ios -i swift app_icon_badge</pre><p>Execute the above command in the terminal. Let’s break it down. We have given organization only to be used for a sample app that will be using the package. template specified can be either plugin or package. Platform if specified will tell which platform this plugin will support. Available platforms are: android, ios, web, linux, macos, and windows. For our use case, we will only make a plugin for ios. As you all know iOS development is done using swift or Objective C, we get a choice to use any one of these. Our <a href="https://dart.dev/">Dart</a> code will be communicating with either swift or Objective C whichever language we give after -i. The last parameter is the name of the package.</p><p>After executing the following command, <a href="https://flutter.dev/">Flutter</a> creates all the necessary files and gives us all the placeholders we require. The ease of development with <a href="https://flutter.dev/">Flutter</a> is mind-blowing. Openlib/app_icon_badge.dart. You’ll see a getter for fetching platformVersion. Let’s create our own getter function.</p><pre>static Future&lt;int&gt; get <em>count </em>async {<br>     final int badgeCount = await<br>                           <em>_channel</em>.invokeMethod(&#39;getBadgeCount&#39;);<br>     return badgeCount;<br>}</pre><p>Well, that’s it from the <a href="https://dart.dev/">Dart</a> side.</p><p>Now open ios/Classes/SwiftAppIconBadgePlugin.swift file. Please note, the name will differ as per your package name. In this file, you’ll find a function handle that gets invoked whenever we send a message from the <a href="https://dart.dev/">Dart</a> side. In this function, you can directly return the count like the following.</p><pre><strong>public</strong> <strong>func</strong> handle(<strong>_</strong> call: FlutterMethodCall, result: <strong>@escaping<br></strong>FlutterResult) {</pre><pre>    result(UIApplication.shared.applicationIconBadgeNumber)</pre><pre>}</pre><p>But this will return the same result even if we invoke a method with any name. Therefore as a best practice, we need to have a check for the method name.</p><pre>public func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) {<br>    switch call.method {<br>        case &quot;getBadgeCount&quot;:<br>           result(UIApplication.shared.applicationIconBadgeNumber)<br>        default:<br>           result(FlutterMethodNotImplemented)<br>    }<br>}</pre><p>This is it, now to fetch the current badge count all we need to do is this.</p><pre>final int result = await AppIconBadge.<em>count</em>;</pre><p>We are done creating a package, now let’s focus on getting it published.</p><p>First of all, push your code to <a href="https://github.com/">Github</a> in a public repository. As you are contributing this code to the community, this will be open source. One more benefit you can get out of this is that users might start contributing to your repository to serve their own purpose.</p><p>Open <a href="https://pub.dev/">pub.dev</a> and sign in using your Google account. This step is very crucial because while publishing the package, Flutter publisher will ask for authentication.</p><p>Make sure to add the description and usage inREADME.md file which will explain the functioning of the package on the face itself.</p><p>In pubspec.yaml file add the link of the repository for the key homepage. You can remove the authorkey as it is deprecated now.</p><p>Make sure to add LICENSE. A very easy solution to get the contents of LICENSE is from <a href="https://github.com/">GitHub</a> itself while creating a new repository.</p><p>In CHANGELOG.md file write down the current changes. Adding the date to the list also helps to understand the evolution of the package. For example.</p><pre>## [0.0.1] - 24th June 2021<br><br>* Added support for getting the current app icon badge count.</pre><p>That’s all we need to do.</p><p>Before publishing run the following command from the root of the project. It will help you figure out any issues remaining for successfully publishing your package.</p><pre>flutter pub publish --dry-run</pre><p>Finally, after resolving all issues you can run the final command.</p><pre>flutter pub publish</pre><p>After successful authentication, your package will be live for usage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/830/1*iCKZKoO4DuGNDBjCUCRWRA.png" /></figure><p>Until next time!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d58c177a95ee" width="1" height="1" alt=""><hr><p><a href="https://medium.com/flutter-clan/creating-and-publishing-a-package-d58c177a95ee">Creating and publishing a package</a> was originally published in <a href="https://medium.com/flutter-clan">Flutter Clan</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Add mentions in your Flutter app (don’t @ me)]]></title>
            <link>https://medium.com/flutter-clan/add-mentions-in-your-flutter-app-dont-me-6b5ea862956?source=rss----28960b1a2174---4</link>
            <guid isPermaLink="false">https://medium.com/p/6b5ea862956</guid>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[flutter-app-development]]></category>
            <category><![CDATA[chat]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[dart]]></category>
            <dc:creator><![CDATA[Annsh Singh]]></dc:creator>
            <pubDate>Wed, 30 Jun 2021 19:16:47 GMT</pubDate>
            <atom:updated>2021-06-30T19:16:47.729Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2t-kmH02QBcdBEA0" /><figcaption>Photo by <a href="https://unsplash.com/@onlineprinters?utm_source=medium&amp;utm_medium=referral">Onlineprinters</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>We all love to add elements in our app that enhance the overall experience for the end user. One such addition to a typical chat module in your app would be <strong>@mentions</strong>.</p><p>In a group chat, mentions play a huge role. They help the participants refer to other participants in messages, which enables them to collaborate easily in a crowded group chat. If you use any of the apps like WhatsApp, Instagram, Facebook etc, you already know what I am talking about.</p><p>Enabling mentions in your app can be a bit tricky, as you would have to put a module in place that helps recognizing the mentions syntax i.e. anything starting with <strong>“@”</strong>. This would then trigger a series of UI elements which will help you then select one of the group participants and then add them to your text widget with <em>unique styling</em> to distinguish it from the normal text elements in your message.</p><p>Alright, let’s code.</p><h3>Step 1:</h3><p><strong>Import</strong> the following in your project:</p><ul><li><a href="https://pub.dev/packages/markdown">Markdown</a></li><li><a href="https://pub.dev/packages/flutter_markdown">Flutter Markdown</a></li></ul><p>Now that you have done that, we would be using the capabilities of these packages to setup our mentions module.</p><h3>Step 2:</h3><p>We would now be creating two classes, one to help us detect the mentioned text in the message, we would be using a regex for that and another to style the mentioned element.</p><p>In the example shared below, <strong>ColoredBoxInlineSyntax</strong> class is responsible for detection and <strong>ColoredBoxMarkdownElementBuilder </strong>is responsible for formatting the detected text.</p><h3>Example:</h3><p>The main intention of this example is to serve the basic purpose of this article, i.e. letting you know how you can start to integrate the mentions logic in your code. The final implementation might differ depending on your chat service vendor.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FBpGWitbFZflfSUYuZ9%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2FBpGWitbFZflfSUYuZ9&amp;image=https%3A%2F%2Fmedia4.giphy.com%2Fmedia%2FBpGWitbFZflfSUYuZ9%2Fgiphy.gif%3Fcid%3D790b76110a774757b23b15729e66f3a79ab3dae203bccf05%26rid%3Dgiphy.gif%26ct%3Dg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="362" frameborder="0" scrolling="no"><a href="https://medium.com/media/719dda83d4199097b7a3ba7bbf666847/href">https://medium.com/media/719dda83d4199097b7a3ba7bbf666847/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8a9343eb0f5830a100438c0239a5cb17/href">https://medium.com/media/8a9343eb0f5830a100438c0239a5cb17/href</a></iframe><p>Visual representation of the code above:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/1*5PcbCjrdXV8iysCEIuhoGg.gif" /></figure><p>As you can see from the GIF above, the formatting works as expected.</p><p>We used the power of <strong>Markdown</strong> to help us format our text on the screen.</p><p>Before ending the article, here are the things you can <strong>try for yourself</strong>:</p><ol><li>You can use the same idea to add “#” detection in your application as well.</li><li>Try and show an overlay over text field to select the group members from, just like WhatsApp.</li><li>Try different BG and text color for mentions and hashtags.</li></ol><p>Hope you find this article helpful.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FUjCXeFnYcI2R2%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fthe-office-fist-bump-UjCXeFnYcI2R2&amp;image=https%3A%2F%2Fmedia3.giphy.com%2Fmedia%2FUjCXeFnYcI2R2%2Fgiphy.gif%3Fcid%3D790b76112623cf678aa8cd1b2cd8571c7e3fa0eb364ea17a%26rid%3Dgiphy.gif%26ct%3Dg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="245" frameborder="0" scrolling="no"><a href="https://medium.com/media/e2682ac5478f7a3b0abd50c1ce299bb0/href">https://medium.com/media/e2682ac5478f7a3b0abd50c1ce299bb0/href</a></iframe><h3>How many claps does this article deserve?</h3><p><em>If you find this article useful, please </em><strong><em>click the </em></strong>👏<strong><em> button</em></strong><em> </em><strong><em>and share </em></strong><em>to help others find it! Feel free to clap many times (10</em>💥<em>, 20</em>💥<em> , or maybe 50</em>💥<em> ?) It fuels my focus to write more of it.</em></p><p>Connect with me on <a href="https://www.linkedin.com/in/annsh/">LinkedIn</a> or say hi on <a href="https://mobile.twitter.com/annsh2013">Twitter</a>, mentioning this article. You can drop an e-mail at annsh29@gmail.com as well.</p><p>Check out my series on various Flutter widgets here -</p><p><a href="https://medium.com/@annsh/flutter-widget-guide-index-f03141793b09">Flutter Widget Guide — Index</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6b5ea862956" width="1" height="1" alt=""><hr><p><a href="https://medium.com/flutter-clan/add-mentions-in-your-flutter-app-dont-me-6b5ea862956">Add mentions in your Flutter app (don’t @ me)</a> was originally published in <a href="https://medium.com/flutter-clan">Flutter Clan</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Invoking native iOS code from Flutter]]></title>
            <link>https://medium.com/flutter-clan/invoking-native-ios-code-from-flutter-cabcfd46a30f?source=rss----28960b1a2174---4</link>
            <guid isPermaLink="false">https://medium.com/p/cabcfd46a30f</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[method-channel]]></category>
            <dc:creator><![CDATA[Akshat Sharma]]></dc:creator>
            <pubDate>Wed, 30 Jun 2021 19:09:27 GMT</pubDate>
            <atom:updated>2021-07-01T07:12:29.362Z</atom:updated>
            <content:encoded><![CDATA[<h3>Invoking native iOS code from Flutter using MethodChannels</h3><p>During your <a href="https://flutter.dev/">Flutter</a> development, you might come across this situation when you’ll have to communicate with native platform APIs. If there is already a package on <a href="https://pub.dev/">pub.dev</a>, you just got lucky but if there is no package available you’ll have to get into this communication between Flutter and native code.</p><p><a href="https://flutter.dev/">Flutter</a> uses a very flexible system to call platform-specific APIs. In this article, we’ll be setting up a communication channel between Flutter and iOS code. We’ll be fetching the current badge count on the App Icon. On the native side, this can be done by the following one-liner.</p><pre>UIApplication.shared.applicationIconBadgeNumber</pre><p>Our native iOS app will keep listening to a message during the app’s lifecycle. From our futter app we will send a message on this channel. The native listener will now catch hold of this message and will return the response after verifying the message details.</p><p>Let’s begin! Make sure to check out the <a href="https://link.medium.com/U3Ahev1Ywhb">article</a> for setting up push notifications in flutter and the <a href="https://link.medium.com/99eaxH3Ywhb">article</a> for simulating push notifications on iOS simulators for playing around with badge counts.</p><p>In your widget let’s first create a channel for communication.</p><pre>static const platform = const MethodChannel(&#39;method_channel.flutter.dev/appIconBadge&#39;);</pre><p>The native and flutter sides of the channel are connected through a channel name passed in the constructor. For our example, we have given channel name method_channel.flutter.dev/appIconBadge.</p><p>Now we’ll be sending a message to the native side of the channel.</p><pre>final int result = await platform.invokeMethod(&#39;getBadgeCount&#39;);</pre><p>Now the name of the message getBadgeCount plays a very important role. If the native side has not implemented support for this message, the Flutter host will receive a PlatformExeption. Therefore it is advisable to use try-catch block while invoking to avoid crashes.</p><pre>String badgeCount;    <br>try {<br>      final int result = await platform.invokeMethod(&#39;getBadgeCount&#39;);<br>      badgeCount = &#39;Badge count: $result&#39;;<br>} on PlatformException catch (e) {<br>      badgeCount = &quot;Failed to get badge count: &#39;${e.message}&#39;.&quot;;    }</pre><p>Let’s get into the native side code. Open AppDelegate.swift file present inside ios/Runner path.</p><p>In <strong>didFinishLaunchingWithOptions</strong> method, we’ll be adding a listener for method_channel.flutter.dev/appIconBadge channel.</p><pre>let controller : FlutterViewController = window?.rootViewController as! FlutterViewController</pre><pre>let badgeChannel = FlutterMethodChannel(name: &quot;method_channel.flutter.dev/appIconBadge&quot;, binaryMessenger: controller.binaryMessenger)</pre><p>Now we’ll be adding the callback handler which will get executed whenever we callinvokeMethod from the flutter host.</p><pre>badgeChannel.setMethodCallHandler({ [weak self] (call: FlutterMethodCall, result: FlutterResult) -&gt; Void in<br>         // Note: this method is invoked on the UI thread.   <br>        guard call.method == &quot;getBadgeCount&quot; else { <br>           result(FlutterMethodNotImplemented)<br>           return<br>        }<br>        self?.receiveBadgeCount(result: result)<br>})</pre><p>Here we first check that the message if the name of the message isgetBageCount or not. If it is something else we will return FlutterMethodNotImplemented. Once we have guarded our check, we will execute the desired function.</p><pre>func receiveBadgeCount(result: FlutterResult) -&gt; Void {  <br>      result(UIApplication.shared.applicationIconBadgeNumber)<br>}</pre><p>Once you’ll run your application, your flutter app and the native app will be communicating successfully.</p><p>You can find the code on <a href="https://github.com/aks3800/FlutterIosMethodChannel">Github</a>. To test out different badge counts change the badge count in SamplePush.apns file and drag-drop it on the simulator. To learn about its functioning check out this article.</p><p>Here is a sneak peek.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*lRwRJyZcAJ25wdDvuqs7UQ.gif" /></figure><p>Having done this, check out the <a href="https://link.medium.com/g58m5phZwhb">article</a> to publish a package based on the above-implemented functionality so that others can also use it.</p><p>Happy Coding!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cabcfd46a30f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/flutter-clan/invoking-native-ios-code-from-flutter-cabcfd46a30f">Invoking native iOS code from Flutter</a> was originally published in <a href="https://medium.com/flutter-clan">Flutter Clan</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OverflowBar Widget: A neat way to build responsive Flutter apps.]]></title>
            <link>https://medium.com/flutter-clan/overflowbar-widget-a-neat-way-to-build-responsive-flutter-apps-2f8e76245ee6?source=rss----28960b1a2174---4</link>
            <guid isPermaLink="false">https://medium.com/p/2f8e76245ee6</guid>
            <category><![CDATA[flutter-widget]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[flutter-app-development]]></category>
            <category><![CDATA[dart]]></category>
            <dc:creator><![CDATA[Annsh Singh]]></dc:creator>
            <pubDate>Wed, 30 Jun 2021 17:57:46 GMT</pubDate>
            <atom:updated>2021-06-30T17:57:46.126Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*L9eeu-qTqnziIDpk" /><figcaption>Photo by <a href="https://unsplash.com/@dancristianp?utm_source=medium&amp;utm_medium=referral">Dan-Cristian Pădureț</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Developers have been building responsive applications on Flutter since the very beginning. You get to cover a wide range of users who might access your application on mobile, tablets, desktops, and even the web. This flexibility allows users to experience your product in different ways, but with this, comes a hurdle for us, the developers. The hurdle I am talking about here is building a flexible responsive design.</p><p>There are different ways to build one. You might have heard of the following ways to achieve responsiveness:</p><ol><li><strong>MediaQuery</strong>: This is the most common approach people follow to put some constraints in place with the help of screen height and width. A typical example being something like this</li></ol><pre>final screenWidth = MediaQuery.<em>of</em>(context).size.width;<br> if (screenWidth &lt; 600.0) {<br>    return _buildMobileLayout();<br> }<br> else if (screenWidth &lt; 1000.0) {<br>    return _buildTabletLayout();<br> }<br> else {<br>    return _buildDesktopLayout();<br> }</pre><p>You might choose to work with orientation as well like</p><pre>Orientation orientation = MediaQuery.of(context).orientation;</pre><p>2. <strong>LayoutBuilder</strong>: The main difference between MediaQuery and LayoutBuilder is that MediaQuery uses the complete context of the screen rather than just the size of your particular widget, whereas LayoutBuilder can determine the maximum width and height of a particular widget.</p><p>Example:</p><pre>LayoutBuilder(<br> builder: (BuildContext context, BoxConstraints constraints) {<br>   if (constraints.maxWidth &gt; 600) {<br>    return _buildWideContainers();<br>   } else {<br>     return _buildNormalContainer();<br>   }<br>  },<br> ),</pre><p>Other widgets would be:</p><p>3. <strong>OrientationBuilder</strong></p><p>4. Various combinations of <strong>Expanded</strong> and <strong>Flexible</strong></p><p>5. <strong>FractionallySizedBox</strong></p><p>6. <strong>AspectRatio</strong></p><p>Now you might have heard or used the widgets mentioned above. They all involve putting in <em>pre-defined constraints in place</em>, one way or another it is on you, the developer, to decide what are the limits you would set to restrict UI for a mobile device, tablets, and desktop. This approach, while it works, might be error-prone and can be a bit frustrating at times.</p><blockquote>We are looking for a Widget that takes this burden off our chest and adjusts itself as per the device.</blockquote><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2Fqis8fcU0gx75BVVjd7%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fnews-jon-ossoff-help-is-on-the-way-better-days-are-coming-qis8fcU0gx75BVVjd7&amp;image=https%3A%2F%2Fmedia0.giphy.com%2Fmedia%2Fqis8fcU0gx75BVVjd7%2Fgiphy.gif%3Fcid%3D790b7611f3f1d4dfe625783c780cfe678046d761aba46f45%26rid%3Dgiphy.gif%26ct%3Dg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="295" frameborder="0" scrolling="no"><a href="https://medium.com/media/5da0307878ec9c6f3c236ac2a54b839a/href">https://medium.com/media/5da0307878ec9c6f3c236ac2a54b839a/href</a></iframe><p>Enters, the <strong>OverflowBar, </strong>a<strong> </strong>widget that lays out its children in a row unless they “overflow” the available horizontal space, in which case it lays them out in a column instead.</p><blockquote>Note: This would work wonderfully if your design and widgets are similar across various screen sizes.</blockquote><p>Let’s pick a typical use case for this.</p><p>Let’s say you are working on a News delivery app where you would like the user to see their feed as a list. The feed item is a combination of an image and a description. Now, in a mobile device, you would like the feed item to be vertical, and on a tablet/web, you might want it to be horizontal i.e. image on the left and its description on the right. You will be able to achieve such flexibility out of the box with <strong>OverflowBar.</strong></p><p>Let’s visualize this using a simple example.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/224487a1374a728a5418ff838b11fb07/href">https://medium.com/media/224487a1374a728a5418ff838b11fb07/href</a></iframe><p>This is how it is rendered on both a mobile phone and on a tablet:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0tO3kJQ1v09W2FlmoY1i6w.png" /></figure><p>As you can see, the same code is rendered as:</p><ol><li>a <strong>Row</strong>, when there is enough space for the OverflowBar, like in the case of a tablet or a web browser.</li><li>a <strong>Column</strong>, when the size is a bit constrained like in the case of a mobile phone.</li></ol><p>Easy, right?</p><p>Do try it in your applications for a better experience.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F0CVLFj0vE8JpftFJaf%2Fvideo&amp;display_name=GIPHY&amp;url=https%3A%2F%2Fgiphy.com%2Fclips%2Fthefastsaga-fast-and-furious-4-0CVLFj0vE8JpftFJaf&amp;image=https%3A%2F%2Fmedia2.giphy.com%2Fmedia%2F0CVLFj0vE8JpftFJaf%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="480" height="270" frameborder="0" scrolling="no"><a href="https://medium.com/media/36c3d9e2345a7cd09357b5d28908d3a3/href">https://medium.com/media/36c3d9e2345a7cd09357b5d28908d3a3/href</a></iframe><h3>How many claps does this article deserve?</h3><p><em>If you find this article useful, please </em><strong><em>click the </em></strong>👏<strong><em> button</em></strong><em> </em><strong><em>and share </em></strong><em>to help others find it! Feel free to clap many times (10</em>💥<em>, 20</em>💥<em> , or maybe 50</em>💥<em> ?) It fuels my focus to write more of it.</em></p><p>Connect with me on <a href="https://www.linkedin.com/in/annsh/">LinkedIn</a> or say hi on <a href="https://mobile.twitter.com/annsh2013">Twitter</a>, mentioning this article. You can drop an e-mail at annsh29@gmail.com as well.</p><p>Check out my series on various Flutter widgets here -</p><p><a href="https://medium.com/@annsh/flutter-widget-guide-index-f03141793b09">Flutter Widget Guide — Index</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2f8e76245ee6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/flutter-clan/overflowbar-widget-a-neat-way-to-build-responsive-flutter-apps-2f8e76245ee6">OverflowBar Widget: A neat way to build responsive Flutter apps.</a> was originally published in <a href="https://medium.com/flutter-clan">Flutter Clan</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Simulating Push Notifications in iOS Simulator]]></title>
            <link>https://medium.com/flutter-clan/simulating-push-notifications-in-ios-simulator-ef222ec5b0cc?source=rss----28960b1a2174---4</link>
            <guid isPermaLink="false">https://medium.com/p/ef222ec5b0cc</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[ios-simulator]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[push-notification]]></category>
            <dc:creator><![CDATA[Akshat Sharma]]></dc:creator>
            <pubDate>Wed, 30 Jun 2021 17:51:48 GMT</pubDate>
            <atom:updated>2021-07-01T07:04:10.675Z</atom:updated>
            <content:encoded><![CDATA[<h3>Simulating Push Notifications on iOS Simulator</h3><p>I asked my father to buy me a Mac in 2016 for getting into <a href="https://developer.apple.com/documentation/">iOS development</a>. After learning few basic concepts I came across <a href="https://developer.apple.com/documentation/usernotifications">Push Notifications</a> which required a real device to work with. In the span of 6 months, I asked my father again to buy me an iPhone which I got after few disagreements. Buying an iPhone to understand and implement <a href="https://developer.apple.com/documentation/usernotifications">push notifications</a> did make sense until 2020. But with the release of <a href="https://developer.apple.com/documentation/xcode-release-notes/xcode-11_4-release-notes#:~:text=bot.%20(59068222%2C%2058615215)-,Simulator,-New%20Features">Xcode 11.4</a>, Apple started supporting push notifications on simulators.</p><p>Yes, you heard it right, we can now simulate push notifications behavior on the iOS simulators. Let’s get into it.</p><p>If you are a <a href="https://flutter.dev/">Flutter</a> developer, go ahead and check out the <a href="https://link.medium.com/anig11gYwhb">article</a> for setting up push notifications in your flutter app. If you are done setting up, you can skip the next section.</p><p>Well if you don’t have any setup done, let’s get it done quickly.</p><h4>Create a new Xcode project for your iOS app.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BhZP4ak5epz38HvGqIpBHQ.png" /></figure><p>Select the appropriate team and name for your project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BzWtsjANolx4f3Qqg7BNkg.png" /></figure><p>Complete the remaining steps in the process and run the app on your simulator. You’ll see nothing but a white screen.</p><p>Open your AppDelegate.swift file and add the following function in the end.</p><pre><strong>func</strong> requestPermission() -&gt; Void {</pre><pre><strong>let</strong> notificationsCenter = UNUserNotificationCenter.current()</pre><pre>notificationsCenter.requestAuthorization(options: [.alert, .sound, .badge]) { granted, error <strong>in</strong></pre><pre><strong>if</strong> <strong>let</strong> error = error {</pre><pre>print(&quot;error while requesting permission: \(error.localizedDescription)&quot;)</pre><pre>}</pre><pre><strong>if</strong> granted {</pre><pre>print(&quot;permission granted&quot;)</pre><pre>} <strong>else</strong> {</pre><pre>print(&quot;permission denied&quot;)</pre><pre>}</pre><pre>}</pre><pre>}</pre><p>Call this function inside your didFinishLaunchingWithOptions function.</p><pre><strong>func</strong> application(<strong>_</strong> application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: <strong>Any</strong>]?) -&gt; Bool {</pre><pre>// Override point for customization after application launch.</pre><pre>requestPermission()</pre><pre><strong>return</strong> <strong>true</strong></pre><pre>}</pre><p>That’s it! This is all you need to do as of now. Run the app and grant access for push notifications.</p><h4>Create a file with an extension .apns</h4><p>Paste the following contents into this newly created file.</p><pre>{</pre><pre>&quot;aps&quot;: {</pre><pre>&quot;alert&quot;: {</pre><pre>&quot;subtitle&quot;: &quot;Sample subtitle&quot;,</pre><pre>&quot;title&quot;: &quot;Sample title&quot;,</pre><pre>&quot;body&quot;: &quot;This is the sample body of the push notification.&quot;</pre><pre>},</pre><pre>&quot;sound&quot;: &quot;default&quot;,</pre><pre>&quot;category&quot;: &quot;FLUTTER_NOTIFICATION_CLICK&quot;,</pre><pre>&quot;badge&quot;: 1,</pre><pre>},</pre><pre>&quot;source&quot;: &quot;some_key&quot;,</pre><pre>&quot;metadata&quot;: {</pre><pre>&quot;type&quot;: &quot;waiting_room&quot;,</pre><pre>},</pre><pre>&quot;click_action&quot;: &quot;FLUTTER_NOTIFICATION_CLICK&quot;,</pre><pre>&quot;Simulator Target Bundle&quot;: &quot;com.aks.pushApp&quot;,</pre><pre>}</pre><p>Make sure you use your app’s bundle identifier in Simulator Target Bundle .</p><p>Now all you need to do is drag .apns file onto your simulator.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*G690697b1tDLO-Ok486mng.png" /></figure><p>You’ll see the magic!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*-fDm3WvNdj6AEOTnzhtiBQ.png" /></figure><p>A small demo of working:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*DNm9plFOmIDRfrlRWST97A.gif" /></figure><p>In the next <a href="https://link.medium.com/WhtkJLKYwhb">article</a> let’s make use of the above functionality for invoking iOS code from flutter.</p><p>Cheers!! Until next time.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ef222ec5b0cc" width="1" height="1" alt=""><hr><p><a href="https://medium.com/flutter-clan/simulating-push-notifications-in-ios-simulator-ef222ec5b0cc">Simulating Push Notifications in iOS Simulator</a> was originally published in <a href="https://medium.com/flutter-clan">Flutter Clan</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Flutter Animation Series Part 1: Animation Builder]]></title>
            <link>https://medium.com/flutter-clan/flutter-animation-series-part-1-animation-builder-9cad0fba99fd?source=rss----28960b1a2174---4</link>
            <guid isPermaLink="false">https://medium.com/p/9cad0fba99fd</guid>
            <category><![CDATA[flutter-animation]]></category>
            <category><![CDATA[flutter-widget]]></category>
            <category><![CDATA[animation]]></category>
            <category><![CDATA[flutter-app-development]]></category>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Ashutosh Singh]]></dc:creator>
            <pubDate>Wed, 30 Jun 2021 17:47:25 GMT</pubDate>
            <atom:updated>2022-06-22T14:42:58.511Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vDBDb1aNmoOVP1BTLs0OkQ.jpeg" /><figcaption>Photo by <a href="https://www.pexels.com/photo/black-claw-hammer-on-brown-wooden-plank-209235/">Pixbay</a></figcaption></figure><p>I remember how difficult it was to develop our own custom animation on native Android by creating numerous XML files, their corresponding themes and then the Java code. 😤 😤 😤</p><p>In Flutter, we don’t have to be concerned about this. Animation in Flutter is super easy, decreasing our development time and ensuring a smooth and fluid UX. In addition to their usual functionality, these widgets can be customised to match our individual needs.</p><p>So sit tight and just follow along with me as I will go over all of Flutter’s animation widgets with examples in this Flutter Animation Series. The first widget in this Animation Series is <a href="https://api.flutter.dev/flutter/widgets/AnimatedBuilder-class.html">AnimatedBuilder</a>.</p><pre><a href="https://api.flutter.dev/flutter/widgets/AnimatedBuilder-class.html"><strong>AnimatedBuilder</strong></a><strong>:- </strong>AnimationBuilder is a Flutter animation widget that allows you to create complex animations which requires a widget and a builder function.</pre><p>Let’s take a look at how to build a custom animation using AnimationBuilder:</p><ol><li><strong>Making an animation.</strong></li></ol><pre><strong>Animation</strong> _heartbeatAnimation = <strong>Tween</strong>(begin: 180.0, end: 160.0).animate(<br>  <strong>CurvedAnimation</strong>(<br>    curve: Curves.<em>easeOutBack</em>,<br>  ),<br>);</pre><p><a href="https://api.flutter.dev/flutter/animation/Tween-class.html">Tween</a> is used to configure an animation to playback over a range of values.</p><p><a href="https://api.flutter.dev/flutter/animation/CurvedAnimation-class.html">CurvedAnimation</a> defines progression as a non-linear curve. It brings out the smoothness when the animation is being played.</p><p>Here, I have my animation value fluctuating from 160–180 and I can use these changing values in the widget’s height, width, pixels and so on, depending on my animation needs, and I have also added a curve that will determine how my animation looks.</p><p>2.<strong> Using animation value in the widget.</strong></p><pre><strong>AnimatedBuilder</strong>(<br>  builder: (BuildContext context, Widget child) {<br>    return Container(<br>      child: Center(<br>        child: Icon(<br>          Icons.<em>favorite</em>,<br>          color: Colors.<em>blue</em>[900],<br>          size: <strong>_heartbeatAnimation.value</strong>,<br>        ),<br>      ),<br>    );<br>  },<br>)</pre><p>Here I am changing the size of an icon which will range between 160–180 and returning this widget to AnimationBuilder.</p><p>3. <strong>Controlling animation</strong></p><p>We have reached the end of the process of creating an animation. What we need now is a controller that will start or stop an animated widget, and Flutter has <a href="https://api.flutter.dev/flutter/animation/AnimationController-class.html">AnimationController</a> to do just that. Let’s have a look at how.</p><p>Here we need a <em>Stateful Widget</em> to use AnimationController.</p><p><strong>i) Initialize AnimationController.</strong></p><pre>AnimationController _animationController;<br><br>@override<br>void initState() {<br>  super.initState();<br><br>  <strong><em>/// initializing AnimationController</em></strong><em><br>  </em>_animationController = AnimationController(<br>    vsync: this,<br><br>    <strong><em>/// duration is the period of time the animation would last</em></strong><em><br>    </em>duration: Duration(<br>      seconds: 1,<br>    ),<br>  );<br>}</pre><p><strong>ii) Using initialized AnimationController value.</strong></p><p>CurvedAnimation needs a parent as AnimationController<strong> </strong>on which curve will be applied.</p><pre>_heartbeatAnimation = Tween(begin: 180.0, end: 160.0).animate(<br>  CurvedAnimation(<br>    curve: Curves.<em>easeOutBack</em>,<br><strong>    parent: _animationController,<br></strong>  ),<br>);</pre><p>Passing out <em>_animationController value to the </em>AnimatedBuilder.</p><pre>AnimatedBuilder(<br><strong>  animation: _animationController,<br></strong>  builder: (BuildContext context, Widget child) {<br>    return Container(<br>      child: Center(<br>        child: Icon(<br>          Icons.<em>favorite</em>,<br>          color: Colors.<em>blue</em>[900],<em><br>          </em>size: _heartbeatAnimation.value,<br>        ),<br>      ),<br>    );<br>  },<br>)</pre><p><strong>iii) Triggering Animation</strong></p><p>To start:- _animationController.forward()</p><p>To stop:- _animationController.stop()</p><p>and yes don’t forget to dispose of _animationController.</p><pre>@override<br>void dispose() {<br><strong>  _animationController.dispose();<br></strong>  super.dispose();<br>}</pre><p><strong>iv) Listening animation</strong></p><pre>_animationController.<strong>addStatusListener</strong>(<br>  (<strong>AnimationStatus status)</strong> {<br>    if (status == AnimationStatus.completed) {<br>      _animationController.repeat();<br>    }<br>  },<br>);</pre><p><em>If we want to listen to animation status we can use a listener to do so as this continuously monitor animation changes.</em></p><p>Using _animationController.repeat(), I was able to repeat the animation as soon as it was finished, .repeat() will restart the animation at the beginning in the same manner as before.</p><p>Here is the end result:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*v9LV1e_0HmlUMff6V2CIGg.gif" /></figure><p>Check out the full code <a href="https://github.com/hiashutoshsingh/flutter-animation_examples/blob/master/lib/animation_builder.dart">here</a> and the live demo on the <a href="https://flutter-developer-animation.web.app/#/">Web</a>.</p><p>I’ll be back with another animation widget in the next article, but for now, Goodbye and Happy Fluttering!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2Fk3YNVBrbn2KqbXEgDJ%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Ftheoffice-episode-12-the-office-tv-k3YNVBrbn2KqbXEgDJ&amp;image=https%3A%2F%2Fmedia3.giphy.com%2Fmedia%2Fk3YNVBrbn2KqbXEgDJ%2Fgiphy.gif%3Fcid%3D790b761177436b44ce0a292e3275095ea92dea7c765f50d9%26rid%3Dgiphy.gif%26ct%3Dg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="362" frameborder="0" scrolling="no"><a href="https://medium.com/media/fba01efc7c4f6716e3728be267eb8ee0/href">https://medium.com/media/fba01efc7c4f6716e3728be267eb8ee0/href</a></iframe><p><strong>If you find this article useful, please do hit the clap icon 👏 and share it with your friends, as it will motivate me to write more.</strong></p><p>Feel free to connect with me on social media platforms for any doubts regarding Flutter.</p><p><a href="https://linktr.ee/hiashutoshsingh">Ashutosh Singh | Linktree</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9cad0fba99fd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/flutter-clan/flutter-animation-series-part-1-animation-builder-9cad0fba99fd">Flutter Animation Series Part 1: Animation Builder</a> was originally published in <a href="https://medium.com/flutter-clan">Flutter Clan</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>