<?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 Ashmi kattel on Medium]]></title>
        <description><![CDATA[Stories by Ashmi kattel on Medium]]></description>
        <link>https://medium.com/@ashmikattel?source=rss-65a4915c230f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*1nWULTtDN6Cyammc</url>
            <title>Stories by Ashmi kattel on Medium</title>
            <link>https://medium.com/@ashmikattel?source=rss-65a4915c230f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 20:17:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ashmikattel/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[Lock-down and Tech]]></title>
            <link>https://medium.com/@ashmikattel/lock-down-and-tech-f0703d6fc257?source=rss-65a4915c230f------2</link>
            <guid isPermaLink="false">https://medium.com/p/f0703d6fc257</guid>
            <category><![CDATA[birthday]]></category>
            <category><![CDATA[lockdown]]></category>
            <category><![CDATA[work-from-home]]></category>
            <category><![CDATA[covid19]]></category>
            <category><![CDATA[sharing]]></category>
            <dc:creator><![CDATA[Ashmi kattel]]></dc:creator>
            <pubDate>Tue, 07 Apr 2020 07:20:50 GMT</pubDate>
            <atom:updated>2020-04-08T10:13:49.204Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*TfGuQUtLMQ3YoyQtT2OaIg.png" /></figure><p>Namaste everyone!</p><p>Looking from the past decades to this day our world has been facing a lot of epidemic but this time, it has not confined to epidemic but the outrageous pandemic, Among them COVID-19 is an infectious disease caused by a newly discovered corona-virus. One of the scariest fact about this virus is no treatment is discovered till the date. And the only prevention found to slow down its transmission is to stay home. So the sad fact is almost every country in this world is in quarantine today.</p><p>It has been 17 days of Lock-down in our country. With that our company <a href="https://makuracreations.com/"><strong>Makura Creations</strong></a> has also commenced ‘Work from home’ as almost every official sector is closed and following self-quarantine staying home. It may sound so easy and so simple but trust me… it’s not how it looks!!</p><p>Staying home, scrolling through social media (thumbs up on every picture, troll friends), complain about the government, praise the work of health and other social workers, be frustrated with the current situation and praying for everyone’s safety has been the daily routine of some people whereas, we from an IT background have been working from home trying to solve crises through our codes.</p><p><strong>How our company is dealing with this Lock-down?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZUfm3dqJi1uR-wm9wXl5JQ.png" /></figure><p>Many people may have this question inside there head as communication plays a very essential role in our sector… ohh! wait a minute!! communication is really important in every sector isn’t it?? Anyway… How do we handle it?? Let me thanks Zoom, Hangouts, Teams, and many other online platform for making this possible. Normally we start our day with chit-chat on Zoom video calls where we share how we are doing what our further plans are and so on. In the ongoing lock-down situation, it has been a challenge to maintain professional composure from home on daily basis. It is said that Sir Isaac Newton discovered gravity while <a href="https://www.washingtonpost.com/history/2020/03/12/during-pandemic-isaac-newton-had-work-home-too-he-used-time-wisely/">working from home</a>.</p><p>We even had a birthday celebration of our CEO Mr Swagat Bhetwal this week, wishing him good health, happiness and above all the energy to stay positive during this crisis. And the interesting part is we celebrated it virtually.</p><p><strong>How do we work from home?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/958/1*lCEyMAG7lc8w0lfkHmcidg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*Zopzk8FzouxzzLw2Ji902w.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*iVLVBur4MLb8oyj0lTZrJQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*FWx7ASq37llyvJvH_7ppXQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*iIQYojjy7O0fhEYK17jKVQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rsQ7ixZFko13LlnR0yJpjg.jpeg" /><figcaption>Some glimpse of the work station made for our self while working from home.</figcaption></figure><p>I am not sure how much of that should I believe. Anyway, working from home for techies might not be something totally new but for other parts of the business, it is unfamiliar territory. We create a <a href="https://www.entrepreneur.com/article/207306">dedicated workspace</a> with a work desk at home. Especially for people who write code, I think it is great to have comfortable chair, quiet space with enough light and good air circulation and of course good internet connection is most as this is needed for all the video conferencing calls and meetings you are going to have. For example Zoom was very useful for me. Working with family around is not easy. So we set boundary and lets the other people in the house know when we are working and when we are not. Last but certainly not the least, keep an eye on what you are eating because you will be eating more than being at the office.</p><p><strong>What sort of problems IT Sectors may face?</strong></p><p>We are fortunate that IT is comparably a less affected industry than others. But everyone has to suffer one way or other so here are some of the challenges that we are facing:</p><ul><li>Cash flow and cash collection.</li><li>We are ready to work but some of the projects are in HALT mode, Some of the clients couldn’t participate from their end as they are directly affected by the pandemic. It affects the project timeline and the overall project’s schedule.</li><li>Psychological aspects of the team members. Its almost 3rd week now, the team is working from home and it has started to make them feel monotonous, probably less productive than regular. They are motivated but are less exposed to the fun part which somehow declines their creativity.</li></ul><p>Report says “The impact of COVID-19 on the IT services sector will be deep, immediate, and long-lasting. While there is a potential upside in most sectors, there is little optimism for IT services. With the world in lock-down, IT services staff cannot access their clients’ sites. Working remotely will cause significant issues, even for those staff in countries where there is respectable broadband connectivity for millions of home workers.” The dramatic spread of COVID-19 has disrupted lives, livelihoods, communities and businesses worldwide. When all the countries are suffering from this pandemics and high loss, IT Sectors are also affected from it.</p><p><strong>Opportunities:</strong></p><p>With everything that’s happening about the corona-virus, it might be very hard to make a decision of what to do today. Lets take this lock-down in a positive way and work accordingly by taking it as an opportunity.</p><ul><li>The moment to act is now, so lets not panic and stay home and utilize our time in the best way.</li><li>Lets learn some thing new, lets be more productive, lets spend our time with our family, lets experience some thing new.</li><li>Lets start working on your long pending ideas that hasn’t made it out of our sticky notes.</li><li>Lets work on tactical aspect of the company to make it better.</li></ul><p>Being in quarantine where every individual, every office, every business, industries, almost every thing devastatingly affected due to lock-down is really difficult. May be its a chance given by our mother nature to utilize it very wisely. Beside have faith that one day every thing is going to be OK. We need to understand and be positive to avert this catastrophe.<strong> </strong>Sooner or later we all know this will end, As light comes after the darkness.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ayhpf-PAfYzcNLhXJ-OBhQ.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f0703d6fc257" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ARCore in Flutter?]]></title>
            <link>https://medium.com/@ashmikattel/arcore-in-flutter-f0115fbdbbc2?source=rss-65a4915c230f------2</link>
            <guid isPermaLink="false">https://medium.com/p/f0115fbdbbc2</guid>
            <category><![CDATA[arcore]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[application-development]]></category>
            <category><![CDATA[flutter-widget]]></category>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Ashmi kattel]]></dc:creator>
            <pubDate>Tue, 10 Mar 2020 11:04:44 GMT</pubDate>
            <atom:updated>2020-03-10T14:13:24.485Z</atom:updated>
            <content:encoded><![CDATA[<h3>ARCore in Flutter</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/463/1*yxFwSdrydgqSTGnD4L9ESQ.jpeg" /></figure><p>Ever wondered on how to use ARCore using flutter?? Looking at my experience I faced a lot of problems and confusion regarding this topic so I thought of sharing my experience. As we all know ARCore is a platform developed by Google that allows for augmented reality applications to be built that brings capabilities to millions of mobile devices. After the release of arcore 1.6 with further improvement to help us build more realistic and more compelling augmented realistic experience with a lots of updates which includes plane boundary tracking and several lighting improvements in scene form etc.</p><p>Talking about my experience I spent days in research on how it works and how can we implement it using flutter and what are its features, issues and how can we solve it etc. At the mean time I went through lots of blogs, articles and projects so that I can find out more on it but… all I got was some limited knowledge which helped me some how but not completely. One of the most confusing thing for me was how to implement 3d objects like crown or fox face etc. At that time I found out that we don’t have control on any 3d objects size, length or any other through code.</p><p>We need a 3d object designing tools/platform to design it.We need <strong>Sceneform</strong> plugin that lets you import, view, and build 3D assets in the <strong>Sceneform</strong> SDK for AR apps which require .sfa , .obj , .mtl and image(.jpeg/jpg/png) file which generates .sfb file to integrate it in your ARCore project as well. And yes!! I recommend you to change the Androidmanifest requirement so that it don’t throw the compatibility issue.</p><p>So let me show it step by step:</p><ol><li>Add <a href="https://pub.dev/packages/arcore_flutter_plugin#-installing-tab-"><strong>dependency</strong></a> in your <strong>pubspec.yaml </strong>file and install arcore plugin using <strong>flutter pub get </strong>in your project:</li></ol><pre>dependencies:   <strong>arcore_flutter_plugin: ^0.0.5+1 </strong></pre><p><strong>2</strong>. <strong>Now Import it :</strong></p><pre><strong>import</strong> &#39;package:arcore_flutter_plugin/arcore_flutter_plugin.dart&#39;;</pre><p><strong>3</strong>. Then change the <strong>minSdkVersion to 24 </strong>and <strong>compileSdkVersion to 28 (both available under app/build.gradle) </strong>because arcore is inbuilt for android phones starting from <strong>Nougat (apiLevel 24).</strong></p><p><strong>4. </strong>And then either <strong>enable arcore</strong> in your application in <strong><em>main/Androidmanifest.xml :</em></strong></p><pre>&lt;!-- &quot;AR Required&quot; apps must declare minSdkVersion ≥ 24 --&gt;<br>&lt;uses-sdk android:minSdkVersion=&quot;24&quot; /&gt;<br>&lt;uses-permission android:name=&quot;android.permission.CAMERA&quot; /&gt;<br>&lt;uses-feature android:name=&quot;android.hardware.camera.ar&quot; /&gt;<br><br>&lt;application&gt;<br>&lt;meta-data android:name=&quot;com.google.ar.core&quot; android:value=&quot;required&quot; /&gt;<br>&lt;/application&gt;</pre><p><strong>Or</strong> make it<strong> optional </strong>if you don’t want Playstore to download AR Core when the application is installed.</p><pre>&lt;application&gt;<br>&lt;meta-data android:name=&quot;com.google.ar.core&quot; android:value=&quot;optional&quot; /&gt;<br>&lt;/application&gt;</pre><p><strong>5. </strong>Don’t forget to Add latest ARCore Sceneform plugin in your <strong><em>android/app/buld.gradle</em></strong> file.</p><pre>android {<br>		compileSdkVersion 28<br>...<br>		compileOptions {<br>				sourceCompatibility 1.8<br>				targetCompatibility 1.8<br>		}<br>		defaultConfig {<br>...<br>				minSdkVersion 24<br>...	<br>		}<br>...<br>	}<br><br>	dependencies {<br>...<br>      implementation &#39;com.google.ar.sceneform.ux:sceneform-ux:1.8.0&#39;<br>		implementation &#39;com.google.ar.sceneform:core:1.8.0&#39;<br>		implementation &#39;com.google.ar:core:1.8.0&#39;<br>	}</pre><pre>sceneform.asset(&#39;sampledata/models/0.obj&#39;,<br>        &#39;default&#39;,        <br>        &#39;sampledata/models/0.sfa&#39;,        <br>        &#39;src/main/assets/0&#39;)</pre><p><strong>NOTE : </strong>I dont think I need to include this as we all know <strong><em>androidX</em></strong> support is compulsary . So to enable AndroidX ,add this to your <strong><em>gradle.properties</em></strong> file:</p><pre>org.gradle.jvmargs=-Xmx1536M<br>android.useAndroidX=true<br>android.enableJetifier=true</pre><p>You can find a detailed list of ARCore supported devices, which includes the model-specific information in the <a href="https://developers.google.com/ar/discover/supported-devices?fbclid=IwAR0qG15xBbnIRby3W8y9nBYaFVXO8GZLa9dkxzxh3Egdh9O3Q-u0HfDKDdA"><strong>link</strong></a> provided here: <a href="https://developers.google.com/ar/discover/supported-devices?fbclid=IwAR0qG15xBbnIRby3W8y9nBYaFVXO8GZLa9dkxzxh3Egdh9O3Q-u0HfDKDdA"><strong>https://developers.google.com/ar/discover/supported-devices?fbclid=IwAR0qG15xBbnIRby3W8y9nBYaFVXO8GZLa9dkxzxh3Egdh9O3Q-u0HfDKDdA</strong></a></p><p>How I used ARCore in my project?</p><p>So here is the ans… This is how I used it.</p><pre>void _onArCoreViewCreated(ArCoreFaceController controller) {    arCoreFaceController = controller;   <br> loadMesh();  <br>} <br>  <br>loadMesh() async { <br>final ByteData textureBytes = <br>await rootBundle.load(&#39;resources/images/black.png&#39;);  </pre><pre>   arCoreFaceController.loadMesh(      <br>   textureBytes: textureBytes.buffer.asUint8List(),           skin3DModelFilename: &quot;tt.sfb&quot;,<br> );<br>}  <br> <br>@override  <br>void dispose() {    <br>arCoreFaceController.dispose();    <br>super.dispose();<br>  }<br>}</pre><p>To see how it fully works in code kindly follow my github link <a href="https://github.com/ashmikattel/ar_core"><strong>https://github.com/ashmikattel/ar_core</strong></a></p><p>And this is how I solved my problem. Actually working with arcore was really amazing and interesting after all arcore itself is a very exciting topic for a developer to work with and trust me working with ARCore is really fun. I hope this article helped you and is worth reading or going through it… And yes! if you find any curiosity on this topic or if there is any thing I need to improve, modify or anything else then please do not hesitate to leave a comment.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f0115fbdbbc2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Parsing HTTP request in Flutter.]]></title>
            <link>https://medium.com/@ashmikattel/parsing-http-request-in-flutter-57e1861c7d69?source=rss-65a4915c230f------2</link>
            <guid isPermaLink="false">https://medium.com/p/57e1861c7d69</guid>
            <category><![CDATA[json]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[flutter-widget]]></category>
            <category><![CDATA[https]]></category>
            <category><![CDATA[flutterio]]></category>
            <dc:creator><![CDATA[Ashmi kattel]]></dc:creator>
            <pubDate>Sun, 12 Jan 2020 06:16:25 GMT</pubDate>
            <atom:updated>2020-01-12T06:16:25.410Z</atom:updated>
            <content:encoded><![CDATA[<p>So lets get into the point about connecting our application to the world. Devices now a days such as cellphone, computer and many more are all connected to the internet to the <strong>WWW(world wide web)</strong>. Lets just have a quick discussion about what web is and what is these things holding? To make it sweet and simple let me say a web is an information system where documents and other web resources are identified by Uniform Resource Locators, which may be interlinked by hypertext, and are accessible over the Internet. Talking about servers what is server? A server is a computer program or a device that provides functionality for other programs or devices, whenever computers share resources with client machines they are considered servers. So we also need a way to connect our data with the <strong>WWW</strong>.</p><p>To communicate with the server we need some sort of defined language or let me say protocol. There are so many protocols out there but here what I am going to talk about is <strong>HTTP (Hypertext Transfer Protocol) </strong>and<strong> </strong>we all may have noticed that when we type http in our browser . That’s what we do when we are establishing the protocol. The Hypertext Transfer Protocol is an application protocol for distributed, collaborative, hypermedia information systems.</p><ul><li>To parse the http request in your project in flutter, all you need to do is add the <a href="https://pub.dev/packages/http"><strong>http</strong></a> package to your project.</li></ul><pre>dependencies:<br>  http: &lt;latest_version&gt;</pre><p>The http package makes it easier to perform network requests, such as fetching, deleting, updating or adding data from a JSON endpoint. OK then! <strong>What is JSON</strong>?(JavaScript Object Notation) It is a new way of sharing data efficiently as it is supposed to use XML. <strong>XML</strong> is still easy and widely used way of sending or formatting data to be sent to clients. JSON is one of the most preferred, efficient and readable language. It is language independent and any language i.e. any language can read/parse a JSON object.</p><figure><img alt="Let’s see the simple example of JSON array having objects." src="https://cdn-images-1.medium.com/max/286/1*yBdwZK13NBnueEB_NZkwtA.png" /><figcaption>This is the simple example of JSON array having objects.</figcaption></figure><p>As you can see this is easy for us to read or understand and also it is easier for us to parse these items as we can see the notation is very object like notation.</p><ul><li>All you need to do is fetch a JSON large document that contains a large list of photo objects from the <a href="https://jsonplaceholder.typicode.com/">J<strong>SONPlaceholder REST API</strong></a>, using the<strong> </strong><a href="https://pub.dev/documentation/http/latest/http/get.html"><strong>http.get()</strong></a> method.</li></ul><pre>example: </pre><pre>Future&lt;http.Response&gt; fetchPhotos(http.Client client) async {<br>  return client.get(&#39;https://jsonplaceholder.typicode.com/photos&#39;);<br>}</pre><ul><li>After that convert the <em>http.Response</em> into a list of Dart objects. This makes the data easier to work with in the future. First, create a Photo class that contains data about a photo. Include a <em>fromJson()</em> factory method to make it easy to create a Photo starting with a JSON object.Create a parsePhotos() function that converts the response body into a List&lt;Photo&gt;.Use the parsePhotos() function in the fetchPhotos() function.if it runs slower in your device then you can remove the jank by moving the parsing and conversion to a background isolate using the <a href="https://api.flutter.dev/flutter/foundation/compute.html">compute()</a> function provided by Flutter. You might experience errors if you try to pass more complex objects, such as a Future or http.Response between isolates.</li></ul><p><strong>Git hub link for Run-able project:</strong> <a href="https://github.com/ashmikattel/Http-Parsing">https://github.com/ashmikattel/Http-Parsing</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=57e1861c7d69" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DIO IN FLUTTER]]></title>
            <link>https://medium.com/@ashmikattel/dio-in-flutter-ad6ba26aee36?source=rss-65a4915c230f------2</link>
            <guid isPermaLink="false">https://medium.com/p/ad6ba26aee36</guid>
            <category><![CDATA[flutter-dio]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[flutterio]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[flutter-widget]]></category>
            <dc:creator><![CDATA[Ashmi kattel]]></dc:creator>
            <pubDate>Wed, 08 Jan 2020 07:11:19 GMT</pubDate>
            <atom:updated>2020-03-07T14:35:33.858Z</atom:updated>
            <content:encoded><![CDATA[<p>Many of us do not have an idea about what Dio in Flutter is! So here I am sharing something about dio which can be helpful for many of us in many cases. Talking about dio , It is a networking library developed by Flutter China. It is powerful Http client for Dart, which supports Interceptors, Global configuration, FormData, Request Cancellation, File downloading, ConnectionTimeout etc. Things that dio supports can be done with normal http library which we get in flutter sdk too but its not that easy to learn or understand so dio can be better.</p><p>So lets get started with Dio. To get started with Dio first of all you need to add <a href="https://pub.dev/packages/dio#-installing-tab-"><strong>dependency</strong></a><strong> :</strong></p><p>dependencies:<br> dio: ^3.0.8</p><p>Then install the package using the command line in your terminal and import it :</p><p>For installing the package : flutter pub get Or pub get</p><p>Now in your dart code use : <strong>import</strong> &#39;package:dio/dio.dart&#39;;</p><ul><li><strong>Now performing a GET request:</strong></li></ul><p>Here first of all use a Dio instance then await the response you want to get.</p><pre>Response response;<br>Dio dio = <strong>new</strong> Dio();<br>response = <strong>await</strong> dio.<strong>get</strong>(&quot;/test?id=4&amp;name=imhsa&quot;);<br>print(response.data.toString());</pre><ul><li><strong>Performing a POST request:</strong></li></ul><p>After getting the request using Dio instance await the request you want to post.</p><pre>response = await dio.post(&quot;/test&quot;, data: {&quot;id&quot;: 4, &quot;name&quot;: &quot;imhsa&quot;});</pre><ul><li><strong>Performing multiple concurrent requests:</strong></li></ul><p>Lots of time occurs when you need to call different API in the same instance of time which tends to get confusing some times at that time dio can be used easily to get the responses from different API’s.</p><pre>response = <strong>await</strong> Future.wait([dio.post(&quot;/info&quot;), dio.<strong>get</strong>(&quot;/token&quot;)]);</pre><ul><li><strong>For Downloading a file:</strong></li></ul><p>For downloading any sorts of file Dio can be a best decision. It can be done using normal http library which we get in flutter sdk too but its not that easy to learn or understand so dio can be used.</p><pre>response = await dio.download(&quot;https://www.google.com/&quot;, &quot;./xx.html&quot;,&quot;./xx.jpeg&quot;,&quot;./xx.pdf&quot;);</pre><ul><li><strong>Get response stream:</strong></li></ul><p>A Stream provides a way to receive a sequence of events. So to get response stream with the flow of your code you need to set responseType to ‘stream’ .</p><pre>Response&lt;ResponseBody&gt; rs = await Dio().get&lt;ResponseBody&gt;(url,<br> options: Options(responseType: ResponseType.stream), <br>// set responseType to `stream`<br>);<br>print(rs.data.stream); //response stream</pre><ul><li><strong>Get response with bytes:</strong></li></ul><p>To get response in byte you need to set responseType to ‘bytes’ .</p><pre>Response&lt;List&lt;int&gt;&gt; rs = <strong>await</strong> Dio().<strong>get</strong>&lt;List&lt;int&gt;&gt;(url,<br> options: Options(responseType: ResponseType.bytes), <br><em>// set responseType to `bytes`</em><br>);<br>print(rs.data); <em>// List&lt;int&gt;</em></pre><ul><li><strong>Sending FormData:</strong></li></ul><p>To send the FormData use the instance FormData from the map and specify where you want to send the data and await the post.</p><pre>FormData formData = <strong>new</strong> FormData.fromMap({<br>    &quot;name&quot;: &quot;imhsa&quot;,<br>    &quot;age&quot;: 22,<br>  });<br>response = <strong>await</strong> dio.post(&quot;/info&quot;, data: formData);</pre><ul><li><strong>Uploading multiple files to server by FormData:</strong></li></ul><p>For the time where you need to upload multiple files to server by your formData at that time using MultiPartFile then awaiting it step by step and vice versa can reduce your valuable time.</p><pre>FormData.fromMap({<br>    &quot;name&quot;: &quot;imhsa&quot;,<br>    &quot;age&quot;: 22,<br>    &quot;file&quot;: <strong>await</strong> MultipartFile.fromFile(&quot;./text.txt&quot;,filename: &quot;upload.txt&quot;),<br>    &quot;files&quot;: [<br>      <strong>await</strong> MultipartFile.fromFile(&quot;./text1.txt&quot;, filename: &quot;text1.txt&quot;),<br>      <strong>await</strong> MultipartFile.fromFile(&quot;./text2.txt&quot;, filename: &quot;text2.txt&quot;),<br>    ]<br>});<br>response = <strong>await</strong> dio.post(&quot;/info&quot;, data: formData);</pre><p>It is worth mentioning that the request initiated by HttpClient is still used internally by dio, so the proxy, request authentication, certificate verification, etc. are the same as HttpClient, and we can onHttpClientCreateset it in the callback.</p><pre>(dio.httpClientAdapter as DefaultHttpClientAdapter).onHttpClientCreate = (client) {<br>    //Setting up a proxy</pre><pre>client.findProxy = (uri) {<br>      return &quot;PROXY 192.168.1.2:8888&quot;;<br>    };<br>    //Verification certificate</pre><pre>httpClient.badCertificateCallback=(X509Certificate cert, String host, int port){<br>      if(cert.pem==PEM){<br>      return true; <br>//If the certificate is consistent, data is allowed to be sent<br>     }<br>     return false;<br>    };   <br>  };</pre><p>Note that it onHttpClientCreatewill be called when the HttpClient needs to be created inside the current dio instance, so configuring HttpClient through this callback will take effect on the entire dio instance. If you want to request a separate proxy or certificate verification policy for an application, you can create a new dio instance.</p><ul><li><strong>Listening the uploading progress:</strong></li></ul><p>To listen the uploading progress of the response after using await in the post request the function onSendProgress can be useful.</p><pre>response = <strong>await</strong> dio.post(<br>  &quot;http://www.dtworkroom.com/doris/1/2.0.0/test&quot;,<br>  data: {&quot;aa&quot;: &quot;bb&quot; * 22},<br>  onSendProgress: (int sent, int total) {<br>    print(&quot;$sent $total&quot;);<br>  },<br>);</pre><ul><li><strong>Post binary data by Stream:</strong></li></ul><pre><em>// Binary data</em><br>List&lt;int&gt; postData = &lt;int&gt;[...];<br><strong>await</strong> dio.post(<br>  url,<br>  data: Stream.fromIterable(postData.map((e) =&gt; [e])), <br><em>//create a Stream&lt;List&lt;int&gt;&gt;</em><br>  options: Options(<br>    headers: {<br>      Headers.contentLengthHeader: postData.length, <br><em>// set content-length</em><br>    },<br>  ),<br>);</pre><p>There are lots of other features provided by dio from <strong>dio API</strong> like :</p><p><strong>baseUrl</strong>: It request the base url which normally contains the sub path. Like <em>&quot;https://www.google.com/api/&quot;.</em></p><p><strong>connectionTimeout</strong> : It contains the timeout in milliseconds for opening url.</p><p><strong>receiveTimeout :</strong> Whenever the time between two events from response stream is greater then receiveTimeout then the Dio will throw the DioError with <em>DioErrorType.RECEIVE_TIMEOUT .</em></p><pre>dio.options.baseUrl = &quot;https://www.xx.com/api&quot;;<br>dio.options.connectTimeout = 5000; <em>//5s</em><br>dio.options.receiveTimeout = 3000;</pre><pre>BaseOptions options = <strong>new</strong> BaseOptions(<br>    baseUrl: &quot;https://www.xx.com/api&quot;,<br>    connectTimeout: 5000,<br>    receiveTimeout: 3000,<br>);<br>Dio dio = <strong>new</strong> Dio(options);</pre><h3><strong>ResponseType :</strong></h3><p>The response for a request contains the following information.</p><pre>{<br>  <em>/// Response body. may have been transformed, please refer to [ResponseType].</em><br>  T data;<br>  <em>/// Response headers.</em><br>  Headers headers;<br>  <em>/// The corresponding request info.</em><br>  Options request;<br>  <em>/// Http status code.</em><br>  int statusCode;<br>  <em>/// Whether redirect </em><br>  bool isRedirect;  <br>  <em>/// redirect info    </em><br>  List&lt;RedirectInfo&gt; redirects ;<br>  <em>/// Returns the final real request uri (maybe redirect). </em><br>  Uri realUri;    <br>  <em>/// Custom field that you can retrieve it later in `then`.</em><br>  Map&lt;String, <strong>dynamic</strong>&gt; extra;<br>}</pre><p>For each dio instance, We can add one or more <a href="https://medium.com/flutter-community/dio-interceptors-in-flutter-17be4214f363"><strong>interceptors</strong></a>, by which we can intercept requests or responses before they are handled by then or catchError. If you want to resolve and reject the request you can return a Response object or return dio.resolve(data) . If you want to lock/unlock the interceptors you can use lock()/unlock() method.</p><p>As you can see Dio contains lots of customization features like adding Cache Retry, Connection time out plus different interceptors, also <a href="https://medium.com/flutter-community/logging-in-flutter-a583b3668228"><strong>logs</strong></a> can be included. Dio can be vary useful in the cases where you need the features like offline cache etc. So! This is how Dio works. I hope this article can be useful somehow for all the flutter enthusiast out there.</p><p>Please visit <a href="https://medium.com/flutter-community/dio-interceptors-in-flutter-17be4214f363">https://pub.dev/packages/dio#-readme-tab-</a> for more about Dio Interceptor in Flutter.</p><p><strong>Run-able project example </strong>: <a href="https://github.com/ashmikattel/Dio_demo">https://github.com/ashmikattel/Dio_demo</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ad6ba26aee36" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[FutureBuilder in Flutter.]]></title>
            <link>https://medium.com/@ashmikattel/futurebuilder-in-flutter-69abe3485aa4?source=rss-65a4915c230f------2</link>
            <guid isPermaLink="false">https://medium.com/p/69abe3485aa4</guid>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Ashmi kattel]]></dc:creator>
            <pubDate>Tue, 24 Dec 2019 06:51:54 GMT</pubDate>
            <atom:updated>2019-12-24T06:51:54.129Z</atom:updated>
            <content:encoded><![CDATA[<p>First of all <strong>what is Future</strong>? A Future is used to represent a potential value, or error, that will be available at some time in the future. A Future allows you to run work asynchronously to free up any other threads that should not be blocked. Like UI thread.Receivers of a Future can register callbacks that handle the value or error once it is available.If the future is created at the same time as the FutureBuilder, then every time the FutureBuilder&#39;s parent is rebuilt,and the <strong>asynchronous</strong> task will be restarted.</p><p><strong>Asynchronous function:</strong> What is Asynchronous function then? Asynchronous operation is a form of parallel execution that lets your program continue other operations while the <strong>current</strong> <strong>operation</strong> is being performed. Some of the common Asynchronous operations are :</p><ul><li>Fetching data over a network.</li><li>Writing to a database.</li><li>Reading data from a file.</li></ul><p>To handle asynchronous operation we can use <strong>Async/await </strong>or<strong> </strong>FutureBuilder.</p><p><strong>FutureBuilder : </strong>It is a special widget that is built into Flutter. The FutureBuilder widget takes the future and then automatically starts listening to them so it adds the then and catch error for you and it takes a builder which will get the current state of your future, so that you can build different content based on what your future returns.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/410/1*Zvf_yMx0yZuGoVRai5FhRQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/834/1*dNbrcDjTrdx2jpprrPZU-g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/1*wQUiwmO487covR4_e3tX6g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/909/1*FjP42AbrW3piEanD6pSGdQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/365/1*RIiRlko7Vmr3j3daoomDlA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/593/1*QjnUmYczslCGy8hq9qllBA.png" /></figure><p>In my project, the future function `getUser()<strong>` </strong>is called in the future. As soon as the result appears, it calls the builder. The builder has two parameters context and asyncSnapshot.</p><p>AsyncSnapshot are of three types:</p><ul><li><strong>connectionState.none : </strong>[future] is null. Not currently connected to any asynchronous computation. For example, a FutureBuilder whose FutureBuilder.future is null.</li><li><strong>connectionState.waiting : </strong>[future] is not null,and is in the verse of completion. Connected to an asynchronous computation and awaiting interaction.</li><li><strong>connectionState.done :</strong>[future] is not null, and has completed. Connected to a terminated asynchronous computation.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=69abe3485aa4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Flutter Interact 2019 : What happened that day!]]></title>
            <link>https://medium.com/@ashmikattel/flutter-interact-2019-what-happened-that-day-97a614735e05?source=rss-65a4915c230f------2</link>
            <guid isPermaLink="false">https://medium.com/p/97a614735e05</guid>
            <category><![CDATA[flutter-interact]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[design]]></category>
            <dc:creator><![CDATA[Ashmi kattel]]></dc:creator>
            <pubDate>Thu, 19 Dec 2019 09:19:56 GMT</pubDate>
            <atom:updated>2019-12-19T09:19:56.087Z</atom:updated>
            <content:encoded><![CDATA[<h3>Flutter Interact 2019 : What happened that day!</h3><p>First of all what is Flutter Interact? Many of us may have this kind of question arising in our mind when we hear about Flutter Interact. OK! let me answer this question first. So Flutter interact is a day dedicated to creation and collaboration with the world, inspired by the makers of brilliant experiences. Lots of announcements were made that day that was actually blowing every programmers mind,every announcements were like<strong><em> Its not enough!! </em></strong>while watching the key note every body were really surprise and amazed on every announcements. Now lets have a look what happened!!</p><h3><strong>What were the announcements?</strong></h3><p><strong>Flutter 1.12 </strong>brings a lot of cool features.<strong> </strong>With the update lots of changes were amplified on the framework , new cupertino widgets and a lot of things like :</p><ul><li><strong>iOS 13 Dark mode available: </strong>Cupertino app components now supports dark mode too.</li><li><strong>AndroidX included: </strong>All the flutter projects are now supported by AndroidX so its time for you to stop worrying about errors based on AndroidX.</li><li><strong>Add-to-App support: </strong>Wooh!! So now using Android Studio we can even add fully Flutter module/screen/feature in our Android and iOS apps.</li><li><strong>Google Fonts Support: </strong>Remember! for adding fonts there was lots of steps required but now? No more downloading and adding your font in your app in your pubspec.yaml. You can just use google fonts in flutter, new package which publish with amazing font reload like hot reload capability. <a href="https://pub.dev/packages/google_fonts"><strong><em>Click here</em></strong></a> to use<strong> </strong>google font support.</li><li><strong>Flutter Gallery: </strong>Flutter gallery is gallery of widgets and behaviors, plus demos and vignettes, all built with Flutter. It is a collection of Flutter sample apps you can run after installing Flutter and setting up your environment. You can have a look in code base for the new widgets and features it contain and also you can play around with it in your preferred platform.</li></ul><p><a href="https://medium.com/flutter/announcing-flutter-1-12-what-a-year-22c256ba525d"><strong>Click here </strong></a>to<strong> </strong>see<strong> </strong>all the new features that came along with the announcements.</p><h3><strong>Flutter for web:</strong></h3><p>Now<strong> </strong>Flutter can be used anywhere you need. Web support for Flutter enables developers to use the same code, ship features faster, and ensure consistency for their experiences across devices. With the Flutter 1.12 release, Flutter’s web support graduates from technical preview to beta. For more about flutter for web, please visit this <a href="https://medium.com/flutter/web-support-for-flutter-goes-beta-35b64a1217c0"><strong><em>blog</em></strong></a><strong><em>.</em></strong></p><h3><strong>Flutter for Desktop :</strong></h3><p>With desktop support, you can compile Flutter source code to a native macOS Desktop app which is now in alpha version. Flutter Gallery app also has the Desktop support. There are a lot of improvements for keyboard accessibility.</p><h3><strong>Supernova:</strong></h3><p>And folks the awesome part is you can link your project with supernova then you can see your code changing in IDE as well as Hot Reload on emulator while you are editing UI in supernova. At the end you can see your code on your IDE and run it on emulator or your device. Isn’t it cool? For more you can visit <a href="http://www.supernova.io/"><strong><em>Supernova</em></strong></a> website and also you can download and use Supernova free for Flutter Development.</p><h3><strong>Rive:</strong></h3><p>Rive previously know as flare is making animations in flutter more powerful and added support for features like drop shadows, flows, blurs and masks to make your animations stand out. Also you can import your adobe after effect files so thanks to lottie support!</p><h3>Adobe XD:</h3><p>With Flutter Plugin for adobe xd you can directly export your UI to Dart Code plus it supports hot reload, So its really gonna be a cool year! Does it supports hot reload? Of course…!! When you save changes anything from Adobe XD then you can see directly the change on your emulator or your device. But its not it… Besides you can parameterize your component and allow it to take parameters in Widget. So during the development you can give parameters while you call your widget and make changes on it. Damn!! For more information <a href="https://theblog.adobe.com/xd-flutter-plugin-generate-dart-code-design-elements/?scid=39fb1a6c-c734-438c-b5b7-fb118addc487&amp;mv=social&amp;mv2=owned_social"><strong><em>Check out</em></strong></a><strong><em> </em></strong>here.</p><h3>Dartpad.dev:</h3><p>With the new Preview of<strong> </strong><a href="https://flutter.dev/docs/development/tools/devtools/inspector#flutter-layout-explorer"><strong>Dart Dev Tools</strong></a> things are getting really crazy! I repeat really crazy!! you know what? They redeveloped Dart Dev Tools using Flutter and made it a standalone app. Can you believe? You don’t even need to download flutter sdk, setup IDE and setup emulator, it’s all in your browser man!! You can debug your app and measure your performance and other metrics with Dart dev tools. With the <a href="https://flutter.dev/docs/development/tools/devtools/inspector#flutter-layout-explorer"><strong>Layout Explorer</strong></a><strong> </strong>you can see your widget tree and you can directly interact with it by clicking on DevTool and also it highlighted on virtual device.</p><h3>Android Studio Tools(oops!! Flutter Studio) :</h3><p>Like seriously? I mean Seriously?? Are you kidding around? That hurts right? But fact is they keeps on making us much and much crazy. Do you wanna know when this announcements were made every audience were like “Omg!! is it happening now??”…Because Nobody believed until they saw the <a href="https://github.com/flutter/flutter-intellij/wiki/HotUI-Getting-Started-instructions"><strong>Hot UI</strong></a><strong> </strong>(for more about HOT UI please click in the HOT UI above).<strong> </strong>This feature is very early so not all functionality is yet available in the version of Flutter we are using. Property editing is available on the stable Flutter channel and the device screen mirror will be available on master soon.To enable,this go to Preferences &gt; Languages &amp; Frameworks &gt; Flutter Then check “Enable Hot UI” under “Experiments” for mac. Using HOT UI you can interact with the hosted UI as it updates the hosted UI directly. Now you can make chances on Hot UI and see those changes via Hot Reload without touching the code.</p><h3>Flutter Octopus:</h3><p>As per the key note they said last month “GitHub published there state of octoverse which surprised them to see flutter being the number two fastest growing open source project on the site having tripled in size across the last year” so they decided to start flutter on every screen. So they gave the flutter octopus ,the mac Catalina machine running, again the seven simultaneous targets which includes pixel-book Go,an iPhone S, an pad pro,a pixel 4 XL and an ancient android tablet as well as both mac version and the web version of this app all being debugged simultaneously from a single set of source code and when they made a change that was just WOOH!! It was really amazing to know that flutter supports all those platform when you need them. That means you can run multiple devices and platforms simultaneously. you can even put a break-point on your dart code and you can track your code debugging on multiple devices and these are possible because of <a href="https://github.com/flutter/flutter/wiki/Multi-device-debugging-in-VS-Code"><strong>VS Code multi-debugging tool</strong></a><strong>.</strong></p><h3>Conclusion:</h3><p>v-1.12 is a big release,and Flutter has made a tremendous progress in 2019. Just in one year of progress giving us such a tools to develop, debug, and experience great UI. Making every thing easier also assembling us to run our apps on web and desktop with just enabling them for our projects is definitely not a joke. For me I am sure flutter is really going in the right direction and will definitely touch the peek.for all the official releases don’t forget to visit <a href="https://flutter.dev/docs/development/tools/sdk/release-notes/release-notes-1.12.13"><strong>the Flutter 1.12 Release Notes</strong></a><strong>.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=97a614735e05" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Flutter for beginners?]]></title>
            <link>https://medium.com/@ashmikattel/why-flutter-for-beginners-28e7e9b3ffae?source=rss-65a4915c230f------2</link>
            <guid isPermaLink="false">https://medium.com/p/28e7e9b3ffae</guid>
            <category><![CDATA[flutter-for-beginner]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[why-flutter]]></category>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Ashmi kattel]]></dc:creator>
            <pubDate>Wed, 18 Dec 2019 11:06:18 GMT</pubDate>
            <atom:updated>2019-12-18T11:06:18.811Z</atom:updated>
            <content:encoded><![CDATA[<p>As we all know Flutter is google’s UI toolkit for building beautiful, natively compiled applications for cross platform i.e mobile, web and desktop from a single code base. So here let me share you my thoughts for why a beginner should start over codes using Flutter.As Flutter is really easy to learn and users doesn&#39;t take much time to be friendly with its features.Flutter never fails to amaze its user with its fast development,expressive and flexible UI, as well as native performance.</p><p>It’s a platform to look for to craft beautiful interfaces in both Android and iOS with its extensive array of customizable widgets and tools. One can easily pick up Flutter as a beginners. For those who are already into native development, Flutter proves more ease and fun in the development process.With Flutter, you not only have the advantage of a “write once” approach, you create a high performance, “native” experience because a Flutter App is an Ahead Of Time compiled, machine binary executable. It overcomes several of the normal challenges that go with cross-platform approaches.</p><p>Flutter doesn’t take much time to learn,it’d take you approximately three weeks to get through it (or three days if you’re really passionate about Flutter).Currently, only React Native and Flutter are in the game for most of new hybrid projects. So its obvious that flutter definitely have its future bright as well as after Flutter interact ,Flutter being updated now is gonna rock in upcoming year(2020).</p><p>Also there are lots of features provided by flutter which never fails to amaze its user like :</p><ul><li>Flutter provide its hot reload feature which help you quickly and easily experiment, build UIs, add features, and fix bugs faster.The Flutter framework automatically rebuilds the widget tree, allowing you to quickly view the effects of your changes.</li><li>Flutter came up with its expressive and beautiful UI’s which never fails to delight your users with Flutter’s built-in beautiful Material Design and iOS-flavor widgets, rich motion APIs, smooth natural scrolling, and platform awareness which contains accessibility, animation, motion, assets, images, icons etc.</li><li>Flutter even impart its user with it’s Native performance Flutter contain lots of widgets which incorporate all critical platform differences such as scrolling, navigation, icons and fonts to provide full native performance on both iOS and Android.</li></ul><p>Hence Flutter is really amazing and easy to learn as well as there is so much fun in learning Flutter. Flutter is even the top most searched Sdk for 2019. Flutter helps in the seamless creation of awesome mobile applications. Flutter is a Google’s new open source technology for creating native Android and iOS apps with a single codebase. Unlike other popular solutions, Flutter is not a framework; it’s a complete SDK(software development kit) which already contains everything you will need to build cross-platform applications.So its really awesome for the beginners to start with flutter.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=28e7e9b3ffae" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>