<?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 Agon Noga on Medium]]></title>
        <description><![CDATA[Stories by Agon Noga on Medium]]></description>
        <link>https://medium.com/@nogadev?source=rss-3e918166fe53------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*c0P3alhHs0WCF0msoxPIlQ.png</url>
            <title>Stories by Agon Noga on Medium</title>
            <link>https://medium.com/@nogadev?source=rss-3e918166fe53------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 07:17:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nogadev/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[Highlight Search Results in Flutter]]></title>
            <link>https://medium.com/@nogadev/highlight-search-results-in-flutter-66f03974ddec?source=rss-3e918166fe53------2</link>
            <guid isPermaLink="false">https://medium.com/p/66f03974ddec</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Agon Noga]]></dc:creator>
            <pubDate>Sun, 14 Jul 2019 21:56:19 GMT</pubDate>
            <atom:updated>2019-07-15T00:52:23.517Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rP-sO2o7Mec68pZr3qcQpg.gif" /></figure><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ec52754123775161f48433f19993ab16/href">https://medium.com/media/ec52754123775161f48433f19993ab16/href</a></iframe><p>Create a new project and copy-paste this code into main.dart. This is the entire main function. The only things that this <strong><em>main.dart </em></strong>file is missing are (1) the <em>material.dart</em> import, (2) ‘<em>searchMatch</em>’ function, (3) the ‘<em>text</em>’ string on which to conduct the search and highlight the results, and (4) the ‘<em>search</em>’ string. We’ll add those next.</p><p>Basically, all that we do here is tell the <strong><em>main </em></strong>function to build the widget tree, starting with StatefulBuilder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1MmSWvcOT2O8isKrMILpAg.jpeg" /></figure><p>Add (1) the import (material.dart) at the beginning of the file main.dart, (2.1) one TextStyle for matching results (<strong>posRes</strong>), another (2.2) for text that doesn’t match our results (<strong>negRes</strong>), the <strong>search</strong> (3) String, the <strong>text </strong>String<strong> </strong>(4) on which to conduct the search, and finally, the searchMatch (5) function.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cc9adfbdcf94b63c23d3547f00598df9/href">https://medium.com/media/cc9adfbdcf94b63c23d3547f00598df9/href</a></iframe><p><a href="https://gist.github.com/Agondev/3aea44d1355b8c165b94202bc6ae100a">Click here to go to the gist example that contains the entire code in a single main.dart file.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=66f03974ddec" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>