<?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 Mohan Kumar on Medium]]></title>
        <description><![CDATA[Stories by Mohan Kumar on Medium]]></description>
        <link>https://medium.com/@mohan-smk23?source=rss-aa7c0a06215f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ZraNHmtLVaOVjgytUGXw8g@2x.jpeg</url>
            <title>Stories by Mohan Kumar on Medium</title>
            <link>https://medium.com/@mohan-smk23?source=rss-aa7c0a06215f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 13:32:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mohan-smk23/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Flutter on Apple Vision Pro: It’s Possible!]]></title>
            <link>https://mohan-smk23.medium.com/flutter-on-apple-vision-pro-its-possible-faf37899cafb?source=rss-aa7c0a06215f------2</link>
            <guid isPermaLink="false">https://medium.com/p/faf37899cafb</guid>
            <dc:creator><![CDATA[Mohan Kumar]]></dc:creator>
            <pubDate>Wed, 14 Feb 2024 05:31:04 GMT</pubDate>
            <atom:updated>2024-02-14T05:31:04.516Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey Flutterians, Apple Vision Pro arrives its time for a tech upgrade!</p><p>Curious to see how your Flutter app adapts to the <a href="https://www.apple.com/apple-vision-pro/">Apple Vision Pro</a>? Lets get started…!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BQQTrGWxai6Sca8M6PscLg.png" /></figure><p><strong>Prerequisites</strong>: Before we dive in just grab these things:</p><ul><li><strong>Xcode 15.3 Beta 2 (or later):</strong> Download and install this latest beta version of Xcode for compatibility with Apple VisionOS development.</li><li><strong>Flutter Application:</strong> Have a ready-to-test Flutter application you want to adapt for Apple VisionOS.</li></ul><p><strong>Step-by-step guide to Flutter on Vision Pro:</strong></p><ol><li>Navigate to<strong> </strong>ios folder in your flutter project and open Runner.xcodeproj file in XCode.</li></ol><p>2. Navigate to the Target tab and choose the Runner.</p><p>3. Within the Build Settings tab, select the Base SDK to visionOS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6IwVx4_yS1WlTPTrq879dA.png" /></figure><p>4. Now click on the General Tab</p><p>5. In Supported Destinations section add Apple Vision -&gt; Designed for iPad.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1oqwAksgvylkICxEhQ7DOg.png" /></figure><p>6. Now open Simulator app.</p><p>7. Create a new Simulator by going to File -&gt; New Simulator</p><p>8. Select Apple Vision Pro (At bottom) as Device type &amp; visionOS 1.0 as OS Version.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vIQogSlKZtfRQh_UPT4nFA.png" /></figure><p><strong>Ready for launch.</strong></p><p>9. Now head over to Xcode Select the Device Apple Vision Pro (Designed for iPad) &amp; Click Run.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8CQdDCUhuN5-Uf41uGjOcQ.png" /></figure><p>Hold your breath! Unleashing your masterpiece on Vision Pro now…!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mvXHv7g78p2cmEHCzrAqwA.png" /></figure><p>Nailed it! our first app is up and running on Vision Pro !</p><p>So, while Apple Vision Pro offers an exciting glimpse into the future, Flutter’s capabilities extend far beyond its confines. It’s an invitation to explore the boundless possibilities of AR/VR, to create experiences that truly break the barriers between imagination and reality. With Flutter in your hands, the sky’s no longer the limit, it’s just the launchpad for your immersive journey.</p><p>Hope this Helps !</p><p>MohanKumar</p><p><em>In case you have a question that is important to you and don’t want me to miss it, you can send me a mail at </em><a href="https://mail.google.com/mail/u/0/?fs=1&amp;to=mohan.smk23%40gmail.com&amp;su=Query+from+custom+map+marker+medium&amp;tf=cm"><em>mohan.smk23@gmail.com</em></a></p><p>Want to see more content on Flutter? Buy me a coffee and fuel my writing passion!</p><figure><a href="https://www.buymeacoffee.com/mohansmk23"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S4ajjFwLjKin4nxFuxFhkQ.png" /></a></figure><p>Checkout my other articles !</p><p><a href="https://mohan-smk23.medium.com/dropdownmenu-a-searchable-dropdown-supercharge-your-flutter-forms-8dde6d46809f">DropdownMenu — A searchable dropdown: Supercharge your Flutter forms!</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=faf37899cafb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DropdownMenu — A searchable dropdown: Supercharge your Flutter forms!]]></title>
            <link>https://mohan-smk23.medium.com/dropdownmenu-a-searchable-dropdown-supercharge-your-flutter-forms-8dde6d46809f?source=rss-aa7c0a06215f------2</link>
            <guid isPermaLink="false">https://medium.com/p/8dde6d46809f</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[searchable-dropdown]]></category>
            <category><![CDATA[dropdown-menu-bar]]></category>
            <category><![CDATA[drop-down-menu]]></category>
            <category><![CDATA[mohankumar]]></category>
            <dc:creator><![CDATA[Mohan Kumar]]></dc:creator>
            <pubDate>Fri, 09 Feb 2024 05:38:15 GMT</pubDate>
            <atom:updated>2024-02-10T19:15:15.555Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>DropdownMenu </strong>— A searchable dropdown: Supercharge your Flutter forms!</h3><p>Wave goodbye to third-party limits! Create your searchable dropdown in Flutter, packed with search and style, all your own.</p><p>Mastering Flutter’s <a href="https://api.flutter.dev/flutter/material/DropdownMenu-class.html"><strong>DropdownMenu</strong></a><strong> —</strong> A Guide to Beautiful and Powerful Menus</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gZAPHfoTHRVX22VqOkxuxw.png" /></figure><p>Here’s what we’ve been working towards 👇🏻</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/265/1*7fLEf7WBv-qxlUx5vDYMPQ.gif" /><figcaption>Final output 🤞🏻</figcaption></figure><h4>Ready? Let’s code!</h4><ol><li>Lets prepare a list of items you want to display in the dropdown menu. This could be a list of strings, objects, or widgets.</li></ol><pre>class MenuItem {<br>  final int id;<br>  final String label;<br>  final IconData icon;<br><br>  MenuItem(this.id, this.label, this.icon);<br>}<br><br>List&lt;MenuItem&gt; menuItems = [<br>  MenuItem(1, &#39;Home&#39;, Icons.home),<br>  MenuItem(2, &#39;Profile&#39;, Icons.person),<br>  MenuItem(3, &#39;Settings&#39;, Icons.settings),<br>  MenuItem(4, &#39;Favorites&#39;, Icons.favorite),<br>  MenuItem(5, &#39;Notifications&#39;, Icons.notifications)<br>];</pre><p>2. Here’s the code for our searchable DropdownMenu.</p><pre>DropdownMenu&lt;MenuItem&gt;(<br>                initialSelection: menuItems.first,<br>                controller: menuController,<br>                width: width,<br>                hintText: &quot;Select Menu&quot;,<br>                requestFocusOnTap: true,<br>                enableFilter: true,<br>                label: const Text(&#39;Select Menu&#39;),<br>                onSelected: (MenuItem? menu) {<br>                  selectedMenu = menu;<br>                },<br>                dropdownMenuEntries:<br>                    menuItems.map&lt;DropdownMenuEntry&lt;MenuItem&gt;&gt;((MenuItem menu) {<br>                  return DropdownMenuEntry&lt;MenuItem&gt;(<br>                      value: menu,<br>                      label: menu.label,<br>                      leadingIcon: Icon(menu.icon));<br>                }).toList(),<br>              ),</pre><p>See, no sweat. !</p><p><a href="https://api.flutter.dev/flutter/material/DropdownMenuEntry-class.html"><strong>DropdownMenuEntry</strong></a> is like a name tag for each menu item, telling the program who it is and showing the user what it does.</p><p>Don’t forget to give your DropdownMenuEntry items both a secret code (value) and a friendly name (label)!</p><p>Here is the final cut,</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a916b8cb9111e19244d8d4280afe5d2c/href">https://medium.com/media/a916b8cb9111e19244d8d4280afe5d2c/href</a></iframe><p>Let’s now delve into the advantages and disadvantages of the topic at hand.</p><p><strong>Pros:</strong></p><ul><li><strong>Built-in:</strong> No need for additional packages, readily available in Flutter.</li><li><strong>Simple to use:</strong> Basic implementation for simple dropdown menus.</li><li><strong>Customization options:</strong> Control over menu style, initial selection, and filtering behavior.</li><li><strong>Good for basic needs:</strong> Suitable for simple dropdown menus with limited functionality.</li></ul><p><strong>Cons:</strong></p><ul><li><strong>Limited search:</strong> Built-in filtering is basic, only supports matching the beginning of the label.</li><li><strong>Customization limitations:</strong> Can’t customize individual list items or implement complex search logic.</li><li><strong>No advanced features:</strong> Lacks features like autocomplete, suggestions, or multi-selection.</li></ul><p>So, here is the catch.</p><p>Simple dropdown &amp; basic filtering? Stick with built-in DropdownMenu! Need advanced search, fancy customizations, or extra features? Opt for the powerful <a href="https://pub.dev/packages/dropdown_search">dropdown_search</a> package. Easy peasy!</p><p>Hope this Helps !</p><p>MohanKumar</p><p><em>In case you have a question that is important to you and don’t want me to miss it, you can send me a mail at </em><a href="https://mail.google.com/mail/u/0/?fs=1&amp;to=mohan.smk23%40gmail.com&amp;su=Query+from+custom+map+marker+medium&amp;tf=cm"><em>mohan.smk23@gmail.com</em></a></p><p>Want to see more content on Flutter? Buy me a coffee and fuel my writing passion!</p><figure><a href="https://www.buymeacoffee.com/mohansmk23"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S4ajjFwLjKin4nxFuxFhkQ.png" /></a></figure><p>Checkout my other articles !</p><p><a href="https://mohan-smk23.medium.com/flutter-tensorflow-lite-with-teachable-machine-2683e3e73797">Flutter + TensorFlow Lite with Teachable Machine.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8dde6d46809f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What’s in Google I/O 2021 so far (Day 1)]]></title>
            <link>https://mohan-smk23.medium.com/whats-in-google-i-o-2021-so-far-day-1-2f50821035c1?source=rss-aa7c0a06215f------2</link>
            <guid isPermaLink="false">https://medium.com/p/2f50821035c1</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[android-12]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[googleio]]></category>
            <dc:creator><![CDATA[Mohan Kumar]]></dc:creator>
            <pubDate>Wed, 19 May 2021 08:53:35 GMT</pubDate>
            <atom:updated>2021-05-19T08:53:35.891Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi peeps ! Finally Google I/O is here with their cool updates. peoples who are unable to watch the program you can just go through the <strong>Day 1 highlights</strong> below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ENvkN4T7Fb0pms71N-cHGw.png" /></figure><p>Unlike past events Google I/O is now live from their campus in Mountain View. Sundar is live with his addressing of worse ongoing situation in Brazil &amp; India on this pandemic.</p><p><strong>What are the new announcements? Lets list it out.</strong></p><h4><strong>1. Eco-friendly, safer routes features for Google Maps.</strong></h4><p>This upcoming feature on google maps does more than just monitoring traffics in route. it considers road conditions, how likely sudden braking fewer stop signs or more downhill coasting. . Google head Sundar Pichai gave the hypothetical example of using Assistant voice to “find a route with beautiful mountain views.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/668/1*B2soV1DctjPvfTrYCmnpLg.jpeg" /></figure><h4><strong>2. Smart Canvas for Google workspace</strong></h4><p>Google announces Smart Canvas, a new collaboration tool for Google Workspace which have tons of new features. google targets the recent trends of virtual meetings and collaboration and making it easier.</p><h4>3. Sundar announces ‘LaMDA’</h4><p>Its an breakthrough in conversation technology. which sundar shows its capability of analyzing a question in different ways in different situations. Sundar shows us the realtime conversation between LaMDA roleplaying as a planet pluto and a normal person. Awesome isn’t?.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GKGATqD0sfDywpxDIMvbIw.jpeg" /><figcaption>Conversation between LaMDA and a person</figcaption></figure><h4><strong>4. TPU V4, a machine learning chipset</strong></h4><p>Google reveals that TPU’s are connected to super computers called pods. One Pod contains 4.096 V4 chipsets which is “10X the bandwidh per chip at scale to any other network technology”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*ULWFrPYIuGYsaF1bRNnZHw.jpeg" /></figure><h4>5. <strong>’Auto-delete’ feature</strong></h4><p>After 18 months, your data will be automatically get deleted unless you choose to do it sooner.</p><h4>6. Google Password manager gets new updates</h4><p>Jen Fitzpatrick from google says that they are working on techs to reduce “password pain”. there will be a deeper integration between chrome and android where users can import passwords from chrome to use it in their other apps.</p><h4>7. <strong>Google announces MUM (Multitask Unified Model)</strong></h4><p>Another AI breakthrough from google. MUM is an AI-powered tool that’s meant to simplify how people search online. This system is designed to understand implicit comparisons in a search inquiry — the example Google gave at the keynote was how to prepare for hiking two different mountains — and provide the most appropriate answer.</p><h4>8. New improvements in Google maps.</h4><p>New improvements have been made on AR view on maps. users can just point at the shop to get details. and indoor AR direction has been developed to point at the right direction in big shopping malls and also show how busy an area is.</p><h3>Google Maps on Twitter: &quot;We&#39;re making it easier to explore with Live View.Soon you&#39;ll be able to access it right from the map to see helpful details about places nearby - like their busyness, reviews, photos, and more. #GoogleIO pic.twitter.com/V2g5Q8s7rR / Twitter&quot;</h3><p>We&#39;re making it easier to explore with Live View.Soon you&#39;ll be able to access it right from the map to see helpful details about places nearby - like their busyness, reviews, photos, and more. #GoogleIO pic.twitter.com/V2g5Q8s7rR</p><h4>9. Google Photos</h4><p>Google photos gets an cool update. This AI model traces ‘Little patterns’ on pictures and present us the memories of happy occasions.</p><h4>10. Google announces “Material You”</h4><p>Announcement of the day for me. a new transformation of design from google.</p><h3>Material Design at #GoogleIO on Twitter: &quot;✨ Announcing Material You, a transformation in design at Google ✨ Be a co-creator of your digital experiences. Coming first to Pixel with #Android12 Learn more about the #MaterialDesign vision 👉https://t.co/Otb86qTQRR pic.twitter.com/04ARxOTbVa / Twitter&quot;</h3><p>✨ Announcing Material You, a transformation in design at Google ✨ Be a co-creator of your digital experiences. Coming first to Pixel with #Android12 Learn more about the #MaterialDesign vision 👉https://t.co/Otb86qTQRR pic.twitter.com/04ARxOTbVa</p><h4>11. Android 12 looks</h4><p>This is how how new android 12 looks</p><h3>Google on Twitter: &quot;Android has a new look. Inspired by Material You, we&#39;ve rethought the entire experience for #Android12, from colors to shapes, light and motion. It&#39;s more personal and expressive - a one-of-a-kind design, just for you. pic.twitter.com/xCRLr7XLWM / Twitter&quot;</h3><p>Android has a new look. Inspired by Material You, we&#39;ve rethought the entire experience for #Android12, from colors to shapes, light and motion. It&#39;s more personal and expressive - a one-of-a-kind design, just for you. pic.twitter.com/xCRLr7XLWM</p><h4>13. <strong>Android 12 will come with support for ‘Digital Car key’</strong></h4><p>Since the new cars are built with AI and tons of gadgets under the hood. now android comes up with their new unlocking system.</p><h4>14. <strong>Google partners with Samsung</strong></h4><p>Google handshakes with Samsung to produce fitness wearable to improve performance.</p><h4>15. <strong>Google Health</strong></h4><p>Google Health has partnered with Northwestern Medicine to advance the use of AI in mammograms for quicker, more accurate detection of breast cancer cases</p><h4>16. Google announces Project Starline</h4><p>Google gives us a glimpse of project starline. Project Starline could bring a realistic, holographic you to future video calls</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FQ13CishCKXY%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DQ13CishCKXY&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FQ13CishCKXY%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/47f324bdc2c16efa97b05b5b55d40640/href">https://medium.com/media/47f324bdc2c16efa97b05b5b55d40640/href</a></iframe><h3>Thats the end of the Day 1 of Google I/O 2021.</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FMlk888FiI8A&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DMlk888FiI8A&amp;image=http%3A%2F%2Fi.ytimg.com%2Fvi%2FMlk888FiI8A%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/33a49e41d01385c2befbb0d1bbeef8ba/href">https://medium.com/media/33a49e41d01385c2befbb0d1bbeef8ba/href</a></iframe><p>Thanks &amp; Regards</p><p>MohanKumar S</p><p><em>In case you have a question that is important to you and don’t want me to miss it, you can send me a mail at </em><a href="https://mail.google.com/mail/u/0/?fs=1&amp;to=mohan.smk23@gmail.com&amp;su=Query%20from%20custom%20map%20marker%20medium&amp;tf=cm"><em>mohan.smk23@gmail.com</em></a></p><h4>Checkout my other articles</h4><ul><li><a href="https://mohan-smk23.medium.com/custom-dynamic-google-map-markers-in-flutter-use-your-own-widget-5e50d382bc99">Custom dynamic Google Map Markers in Flutter (Use your own Widget)</a></li><li><a href="https://mohan-smk23.medium.com/flutter-tensorflow-lite-with-teachable-machine-2683e3e73797">Flutter + TensorFlow Lite with Teachable Machine.</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2f50821035c1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Flutter + TensorFlow Lite with Teachable Machine.]]></title>
            <link>https://mohan-smk23.medium.com/flutter-tensorflow-lite-with-teachable-machine-2683e3e73797?source=rss-aa7c0a06215f------2</link>
            <guid isPermaLink="false">https://medium.com/p/2683e3e73797</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[tensorflow-lite]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[flutter-app-development]]></category>
            <dc:creator><![CDATA[Mohan Kumar]]></dc:creator>
            <pubDate>Tue, 04 May 2021 12:03:06 GMT</pubDate>
            <atom:updated>2024-02-10T19:17:32.535Z</atom:updated>
            <content:encoded><![CDATA[<p>Ever wondered how to employ AI in your flutter application? or got a requirement from your project ? don’t worry you’re on the right place and we’ve got it covered.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3vA3MTy5vXFS7Ty71_PoCA.png" /></figure><h3>So, how do we do it?</h3><p>Fortunately we’ve got an amazing tool in our hands its <a href="https://teachablemachine.withgoogle.com/"><strong>Teachable Machine</strong></a><strong>. </strong>its the thing provided by google for us to create machine learning models.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*XFTA_ZpFMSbO7MBd00cSXg.jpeg" /></figure><h3>What we gonna do ?</h3><p>We gonna build an application that distinguish between Apples &amp; Oranges.</p><h4>Step 1</h4><p>Lets train our Teachable Machine with sample images. <a href="https://teachablemachine.withgoogle.com/train/image">This</a> is the dashboard to upload your images and train models to use in our app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vCc4XSghwSFvCO-3QV6ceA.png" /></figure><p>Change the classes name to Apple &amp; orange or whatever you like. I’ve got some 100 images of apples and oranges. we gonna upload the images to respective classes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oj3OHT-hJSTS93uO8_LwBA.png" /></figure><h4>Step 2</h4><p>Time to train our Teachable Machine</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/237/1*5Q04CyXvDoenhBDISkcJyA.png" /></figure><p>This is my Configuration for training data. tweak this values for better prediction in your app.</p><h4>Step 3</h4><p>Time to export our trained model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nyTSPLmw96y9UfAP.png" /></figure><p>We’ve gonna export our model with TensorFlow Lite. After downloading we can move on to next step.</p><h3>Next Step Flutter.</h3><p>Create a new project , create a new folder in project level directory ‘<em>assets’. </em>Now extract and paste the downloaded files as below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/338/1*FNk5IfJRbgwhXA8ICuLTXw.png" /></figure><p>Now let’s add some dependencies in <em>Pubspec.yaml.</em></p><pre><em>tflite</em>: ^1.1.1<br><em>camera</em>: ^0.5.7+4</pre><p>Let’s add asset folder.</p><pre><em>assets</em>:<br>  - assets/</pre><h4>Next Step</h4><p>Lets create a camera widget which does have a callback function which gives us result from the model.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d1e9e03161c527b371f741dd88bbd4be/href">https://medium.com/media/d1e9e03161c527b371f741dd88bbd4be/href</a></iframe><h3>Time for UI.</h3><p>I have done the dirty work of creating UI. you can find the <em>homepage</em> code below</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cf10213307a7963fbe2e5b9b42a03e18/href">https://medium.com/media/cf10213307a7963fbe2e5b9b42a03e18/href</a></iframe><h4>And Finally,</h4><p>In <em>main.dart</em> file.</p><pre><em>import </em>&#39;package:camera/camera.dart&#39;;<br><em>import </em>&#39;package:flutter/material.dart&#39;;<br><em>import </em>&#39;package:tflite_test/screens/home_page.dart&#39;;<br><br>List&lt;CameraDescription&gt; cameras;<br>Future&lt;<em>void</em>&gt; main() <em>async </em>{<br>  WidgetsFlutterBinding.<em>ensureInitialized</em>();<br>  cameras = <em>await </em>availableCameras();<br>  runApp(MaterialApp(<br>    <em>debugShowCheckedModeBanner</em>: <em>false</em>,<br>    <em>home</em>: MyHomePage(<br>      cameras,<br>    ),<br>  ));<br>}</pre><h4>And we have done it, Lets see the output.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/1*5hfZCc5TY2N-NdB1RjF8cw.gif" /></figure><h3>Yay! it worked ❤</h3><h4>And whats the way from here?</h4><p>We have implemented one of the easiest way of integrating ML in flutter app. you can add many more sample datas to Teachable machine and train them to detect more no of objects.</p><p>In Case you have doubt here is my <a href="https://github.com/mohansmk23/tflite_flutter/">Github Repository.</a></p><p><a href="https://github.com/mohansmk23/tflite_flutter">mohansmk23/tflite_flutter</a></p><p>Hope this Helps !</p><p>MohanKumar</p><p><em>In case you have a question that is important to you and don’t want me to miss it, you can send me a mail at </em><a href="https://mail.google.com/mail/u/0/?fs=1&amp;to=mohan.smk23@gmail.com&amp;su=Query%20from%20custom%20map%20marker%20medium&amp;tf=cm"><em>mohan.smk23@gmail.com</em></a></p><p>Want to see more content on Flutter? Buy me a coffee and fuel my writing passion!</p><figure><a href="https://www.buymeacoffee.com/mohansmk23"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S4ajjFwLjKin4nxFuxFhkQ.png" /></a></figure><h4><strong>Checkout my other articles</strong></h4><p><a href="https://mohan-smk23.medium.com/custom-dynamic-google-map-markers-in-flutter-use-your-own-widget-5e50d382bc99">Custom dynamic Google Map Markers in Flutter (Use your own Widget)</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2683e3e73797" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Custom dynamic Google Map Markers in Flutter (Use your own Widget)]]></title>
            <link>https://mohan-smk23.medium.com/custom-dynamic-google-map-markers-in-flutter-use-your-own-widget-5e50d382bc99?source=rss-aa7c0a06215f------2</link>
            <guid isPermaLink="false">https://medium.com/p/5e50d382bc99</guid>
            <category><![CDATA[android-and-ios-apps]]></category>
            <category><![CDATA[google-maps]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[flutter-community]]></category>
            <category><![CDATA[map-marker]]></category>
            <dc:creator><![CDATA[Mohan Kumar]]></dc:creator>
            <pubDate>Sat, 20 Mar 2021 14:56:35 GMT</pubDate>
            <atom:updated>2024-02-10T19:18:50.316Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bMHF5-p_ZH8V4gyJKbCY0A.png" /></figure><p><strong>Hello there,</strong></p><p>Flutter is all about 3 things Widgets, Widgets and Widgets. So how would you use your Self-built widgets into google map?. Hop into this article, lets rip things.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*k2juF8AiiySnojpYjUnUXg.jpeg" /></figure><p>If You ever used Native Google Map SDK <a href="https://developers.google.com/android/reference/com/google/android/gms/maps/model/BitmapDescriptor"><strong>BitmapDescriptor</strong></a> may be familiar for you. It does convert your Icon to Bitmap as it can be placed in Google Map. But, In our case we use dynamic widget so an asset image will not be a right choice !</p><p><strong>So, whats our procedure of building it?</strong></p><p>First lets, make an Google map screen by following this <a href="https://codelabs.developers.google.com/codelabs/google-maps-in-flutter/#3">codelab</a>. it is easy as that. might only take minutes.</p><p>Once we done. <strong>this is our Goal.</strong></p><figure><img alt="Cool isn’t?" src="https://cdn-images-1.medium.com/max/248/1*kVV3BgEa-ZJxXxmrUsD72w.jpeg" /><figcaption>Cool Isn’t?</figcaption></figure><p><strong>So what are the Steps ?</strong></p><p>We need to paint a Widget and then convert it to bitmap. But its tricky because you cant simply do that. we have to place into widget tree and fetch its painted bitmap.</p><h3>First</h3><p>We need to get our bitmaps right after they are drawn. There are multiple ways to do this, I use tiny AfterLayoutMixin available <a href="https://pub.dev/packages/after_layout">here</a>.</p><p>so now, create a dart file <em>markergenerator.dart</em></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5199467d9f4ab56abaa2fd9b94990268/href">https://medium.com/media/5199467d9f4ab56abaa2fd9b94990268/href</a></iframe><h3>Second</h3><p>Lets create our custom widget, yay!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/240/1*ODb1flZUwpG_PNaamRKYHQ.jpeg" /></figure><p>My widget accepts name as an parameter. I used ClipPath for the triangular Pointer arrow.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8e52d6322e80ffcf03eaec8ed67c9dfd/href">https://medium.com/media/8e52d6322e80ffcf03eaec8ed67c9dfd/href</a></iframe><h3>Third</h3><p>Lets create a location object and list of locations and a method to generate widgets from the location list.</p><pre><em>class </em>Location {<br>  <em>final </em>LatLng coordinates;<br>  <em>final </em>String name;</pre><pre>Location(<em>this</em>.coordinates, <em>this</em>.name);<br>}</pre><pre>List&lt;Location&gt; locations = [<br>  Location(LatLng(13.192594280276914, 80.30864386287254), &quot;KFC&quot;),<br>  Location(LatLng(13.190922964992797, 80.3067341301787), &quot;McDonald&#39;s&quot;),<br>  Location(LatLng(13.18791456868715, 80.30750660632454), &quot;Subway&quot;),<br>  Location(LatLng(13.188269728511436, 80.30568270431355), &quot;Starbucks&quot;)<br>];</pre><pre>List&lt;MapMarker&gt; markerWidgets() {<br>  <em>return </em>locations.map((<em>l</em>) =&gt; MapMarker(<em>l</em>.name)).toList();<br>}</pre><h3>And Finally</h3><p>Lets make it into our UI file <em>main.dart</em></p><p>Declare a list of Markers</p><pre>List&lt;Marker&gt; customMarkers = [];</pre><p>Include this method in <em>initstate(). this uses the Markergenerator class to get the list of bitmaps.</em></p><pre>MarkerGenerator(markerWidgets(), (<em>bitmaps</em>) {<br>  setState(() {<br>    mapBitmapsToMarkers(<em>bitmaps</em>);<br>  });<br>}).generate(context);</pre><p>Add this method which uses <em>Bitmapdescriptor to convert bitmap to map marker.</em></p><pre>List&lt;Marker&gt; mapBitmapsToMarkers(List&lt;Uint8List&gt; <em>bitmaps</em>) {<br>  <em>bitmaps</em>.asMap().forEach((<em>i</em>, <em>bmp</em>) {<br>    customMarkers.add(Marker(<br>      <em>markerId</em>: MarkerId(&quot;$<em>i</em>&quot;),<br>      <em>position</em>: locations[<em>i</em>].coordinates,<br>      <em>icon</em>: BitmapDescriptor.<em>fromBytes</em>(<em>bmp</em>),<br>    ));<br>  });<br>}</pre><p>Add custom marker in <strong>GoogleMap </strong>as<strong>.</strong></p><pre><em>markers</em>: customMarkers.toSet(),</pre><h4>And That’s it. We have done it.</h4><p>In Case you have doubt here is my <a href="https://github.com/mohansmk23/custom_map_marker">Github Repository</a>.</p><p>Hope this Helps !</p><p>MohanKumar</p><p><em>In case you have a question that is important to you and don’t want me to miss it, you can send me a mail at </em><a href="https://mail.google.com/mail/u/0/?fs=1&amp;to=mohan.smk23@gmail.com&amp;su=Query%20from%20custom%20map%20marker%20medium&amp;tf=cm"><em>mohan.smk23@gmail.com</em></a></p><p>Want to see more content on Flutter? Buy me a coffee and fuel my writing passion!</p><figure><a href="https://www.buymeacoffee.com/mohansmk23"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S4ajjFwLjKin4nxFuxFhkQ.png" /></a></figure><p><strong>Checkout my other articles.</strong></p><p><a href="https://mohan-smk23.medium.com/flutter-tensorflow-lite-with-teachable-machine-2683e3e73797">Flutter + TensorFlow Lite with Teachable Machine.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5e50d382bc99" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>