<?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 Zeaon on Medium]]></title>
        <description><![CDATA[Stories by Zeaon on Medium]]></description>
        <link>https://medium.com/@zeaonli?source=rss-64c303ee450a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*5Qgw8ASstuJT3L14blFozw.png</url>
            <title>Stories by Zeaon on Medium</title>
            <link>https://medium.com/@zeaonli?source=rss-64c303ee450a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 21:48:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@zeaonli/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[Why I Built Another Flutter Select Widget]]></title>
            <link>https://medium.com/@zeaonli/why-i-built-another-flutter-select-widget-7b0e5e2177cc?source=rss-64c303ee450a------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b0e5e2177cc</guid>
            <category><![CDATA[flutter-app-development]]></category>
            <category><![CDATA[a2ui]]></category>
            <category><![CDATA[genuis]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[flutter-widget]]></category>
            <dc:creator><![CDATA[Zeaon]]></dc:creator>
            <pubDate>Wed, 09 Sep 2026 09:16:20 GMT</pubDate>
            <atom:updated>2026-09-14T10:03:17.500Z</atom:updated>
            <content:encoded><![CDATA[<p>There are already dozens of selection widgets on pub.dev. I know that for a fact, because I spent an afternoon reading their READMEs — and then went ahead and wrote another one anyway.</p><p>This is the story of why, and of what <a href="https://pub.dev/packages/fl_select"><strong>fl_select</strong></a> does differently.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*63BUEj3kBfsymN7kdF_KeA.png" /></figure><p><strong>TL;DR</strong> — fl_select splits “selection UI” into two orthogonal layers: <strong>entry points</strong> (where the UI appears) × <strong>delegates</strong> (how the items are laid out and loaded). Mix them freely. Each tab of a single filter bar can use a different layout and a different selection mode, and the result lands in your `onApplied` callback as a `Map&lt;String, List&lt;String&gt;&gt;` that is already shaped like a URL query.</p><p><strong>The filter bar that started it</strong></p><p>Start with an ordinary, unglamorous requirement: a homes-for-sale listing page with a filter bar, five tabs.</p><p>- <strong>Neighborhood</strong> — cascading tree (city → neighborhood)</p><p>- <strong>Price</strong> — single-select, price brackets as top tabs, each opening a set of asking-price ranges (`$0–500K`, `$500K-1M`, …) plus a “custom range” input</p><p>- <strong>Rooms</strong> — multi-select, bedroom and bathroom chip groups behind a left-hand side-nav (`Studio`, `1+`, `2+`, …)</p><p>- <strong>More</strong>— two-level expandable list, amenities grouped by category (`Parking`, `Pool`, `Pet friendly`, …)</p><p>- <strong>Sort</strong> — single-select list</p><p>And when the user taps <strong>Apply</strong>, every condition has to become a query string and go out with the request: `?austin-tx=downtown&amp;bedrooms=bd-1&amp;bedrooms=bd-2&amp;price=0–500000`.</p><p>Nothing exotic. Every home-search app ships something like it.</p><p>So I went looking. To assemble that one bar I needed a chip multi-select container, a hand-rolled range panel stitched together from `Slider` and `TextField`, a separate cascading widget, and a separate single-select list. Trigger buttons, the overlay, the Apply/Reset action bar, the serialization — all of it handwritten. <strong>Not one package on pub.dev could take the whole scenario off my hands.</strong></p><p>Somewhere in the middle of that glue code it clicked: the problem isn’t that any one of those packages is bad, it’s that <em>selection</em> as a category has never really had a component. That’s what fl_select is: a <strong>highly composable selection widget for Flutter</strong>. Filter bars are the showcase, not the boundary.</p><p><strong>What the popular packages give you — and where they stop</strong></p><p>The usual suspects — the venerable <a href="https://pub.dev/packages/multi_select_flutter">multi_select_flutter</a> (800+ likes), the good-looking <a href="https://pub.dev/packages/flutter_multi_select_items">flutter_multi_select_items</a>, the modern <a href="https://pub.dev/packages/dropdown_flutter">dropdown_flutter</a> — are all solid implementations. None of them can produce that bar:</p><p>- <strong>One selection shape each.</strong> Some do multi-select only, some do dropdown lists only. My bar mixes multi-select chip groups, tab-navigated price brackets, a cascading tree, an expandable amenity list, and a single-select sort list — so I’d pull in three or four packages, each with its own data flow and API.</p><p>- <strong>No such thing as a “range” item.</strong> Preset price bands plus a custom min/max input means building a panel by hand, and writing the rendering, validation, and serialization myself.</p><p>- <strong>“Where it pops up” is welded to “what it looks like.”</strong> Switch from a dialog to a bottom sheet to inline, and you switch packages, relearn the API, rewrite the data flow. The panel layout is usually a fixed list too — no chip wrap, no grid, no cascade, no tab-nav or side-nav, which is exactly what filter bars need.</p><p>- <strong>Missing filter semantics.</strong> No “Any” entry to clear a category. No Apply/Reset action bar. No way to turn a result into a URL query — even though that’s the daily bread of every filtered list page.</p><p>- <strong>Data has to be hardcoded into the constructor.</strong> Filter data usually arrives from an API, so async loading, skeleton screens, and error states are all on you.</p><p>- And several of these packages <strong>haven’t been updated in a year or two</strong>.</p><p>In fairness, most of that gap comes down to positioning. Those packages are components for <em>one particular selection interaction</em>, and they’re good at what they do. fl_select is trying to put <em>selection as a category</em> behind a single component.</p><p><strong>Building the whole bar with one widget</strong></p><p>Here is the same filter bar, end to end:</p><pre>PopupSelectBar(<br>  isScrollable: true,<br>  tabs: const [<br>    PopupTab(label: &#39;Neighborhood&#39;),<br>    PopupTab(label: &#39;Price&#39;),<br>    PopupTab(label: &#39;Rooms&#39;),<br>    PopupTab(label: &#39;More&#39;),<br>    PopupTab(label: &#39;Sort&#39;),<br>  ],<br>  selectDelegates: [<br>    // 1. Neighborhood: cascading tree<br>    CascadingSelectDelegate(entries: neighborhoodData),<br>    // 2. Price: tab-nav, single-select, with a custom-range input<br>    TabNavSelectDelegate(entries: priceData),<br>    // 3. Rooms: side-nav, chip groups, multi-select<br>    SideNavSelectDelegate(entries: roomsData, selectionMode: SelectionMode.multiple),<br>    // 4. More: two-level expandable list<br>    ExpandableSelectDelegate(entries: moreData),<br>    // 5. Sort: list, single-select<br>    ListSelectDelegate(entries: sortData),<br>  ],<br>  onApplied: (tabData, selected) {<br>    // toQueryMap()      -&gt; Map&lt;String, List&lt;String&gt;&gt;<br>    // toQueryParameters() -&gt; the query string itself<br>    print(&#39;toQueryMap: ${selected.toQueryMap()}&#39;);<br>  },<br>);</pre><p>Three things worth pausing on:</p><p>- <strong>Changing the layout means changing one delegate.</strong> The entry point — here, the filter bar — doesn’t move.</p><p>- The <strong>custom range</strong> in the Price tab is just another entry: `SelectRangeEntry.custom()`. Rendering, validation, and serialization (auto-formatted as `min-max`) are built in.</p><p>- `onApplied` hands you a `Map&lt;String, List&lt;String&gt;&gt;`. Drop it into the request.</p><p>The Neighborhood tab’s data is two levels deep — `SelectCategoryEntry.children` injects the `parentId` for you:</p><pre>SelectEntries get neighborhoodData =&gt; {<br>      SelectCategoryEntry.children(<br>        id: &#39;austin-tx&#39;,<br>        name: &#39;Austin TX&#39;,<br>        children: {<br>          SelectTextEntry.name(id: &#39;downtown&#39;, name: &#39;Downtown&#39;),<br>          SelectTextEntry.name(id: &#39;north-austin&#39;, name: &#39;North Austin&#39;),<br>          // ...<br>        },<br>      ),<br>      // ...<br>    };</pre><p>The Price tab’s data — tab-nav entries are two levels deep, and children render in the category’s own layout (a 3-column grid by default):</p><pre>SelectEntries get priceData =&gt; {<br>      SelectCategoryEntry.children(<br>        id: &#39;under-1m&#39;,<br>        name: &#39;Under $1M&#39;,<br>        children: {<br>          SelectRangeEntry.custom(), // user types min/max<br>          SelectTextEntry.name(id: &#39;a&#39;, name: &#39;$0-500K&#39;),<br>          SelectTextEntry.name(id: &#39;b&#39;, name: &#39;$500K-1M&#39;),<br>        },<br>      ),<br>      SelectCategoryEntry.children(<br>        id: &#39;over-1m&#39;,<br>        name: &#39;$1M+&#39;,<br>        children: {<br>          SelectTextEntry.name(id: &#39;c&#39;, name: &#39;$1M-2M&#39;),<br>          SelectTextEntry.name(id: &#39;d&#39;, name: &#39;$2M+&#39;),<br>        },<br>      ),<br>    };</pre><p>And the Rooms tab — same two-level shape, rendered as a side-nav whose right column defaults to wrapped chips:</p><pre>SelectEntries get roomsData =&gt; {<br>      SelectCategoryEntry.children(<br>        id: &#39;bedrooms&#39;,<br>        name: &#39;Bedrooms&#39;,<br>        children: {<br>          SelectTextEntry.name(id: &#39;studio&#39;, name: &#39;Studio&#39;),<br>          SelectTextEntry.name(id: &#39;bd-1&#39;, name: &#39;1+&#39;),<br>          SelectTextEntry.name(id: &#39;bd-2&#39;, name: &#39;2+&#39;),<br>          // ...<br>        },<br>      ),<br>      SelectCategoryEntry.children(<br>        id: &#39;bathrooms&#39;,<br>        name: &#39;Bathrooms&#39;,<br>        children: {<br>          SelectTextEntry.name(id: &#39;ba-1&#39;, name: &#39;1+&#39;),<br>          SelectTextEntry.name(id: &#39;ba-2&#39;, name: &#39;2+&#39;),<br>          // ...<br>        },<br>      ),<br>    };</pre><p>Which renders as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*VurwCW3kwsEY3HhQYe64uA.gif" /></figure><p><strong>Feature comparison at a glance</strong></p><p>The full matrix — 15 dimensions across all four packages, from entry points and layouts to filter semantics, i18n, and maintenance:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/20abb279c4309fa7c30ecc86bf527c87/href">https://medium.com/media/20abb279c4309fa7c30ecc86bf527c87/href</a></iframe><p>Every row reflects these packages as of September 2026.</p><p>I left the unflattering rows in on purpose: fl_select is <em>not</em> a `FormField`, and keyboard navigation isn’t there yet. If either is a hard requirement for you, better to know that now than after you migrate.</p><p><strong>Two layers, orthogonally composed</strong></p><p>PopupSelectBar is one of five entry points. Entry points answer <em>where does the selection UI live</em>:</p><p>- <strong>SelectView</strong> — inline, inside a page, a form, or a dialog body</p><p>- <strong>PopupSelectButton</strong> — tap to open an overlay, like `PopupMenuButton`; four button variants (text / elevated / filled / outlined)</p><p>- <strong>PopupSelectBar</strong> — the tabbed filter bar from above</p><p>- <strong>showSelect</strong> — modal dialog, `await` the result</p><p>- <strong>showModalBottomSelect</strong> — modal bottom sheet, awaitable too</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2aZ1IgyOjZbFJFx9R2xJtw.gif" /></figure><p>All five take the same delegate list — only where the UI appears changes.</p><p>The second layer is the <strong>delegate</strong>, which decides <em>how items are arranged and where the data comes from</em>. Flat data uses `ListSelectDelegate`, `GridSelectDelegate`, or `WrapSelectDelegate`. Two-level categorized data uses `CascadingSelectDelegate`, `TabNavSelectDelegate`, `SideNavSelectDelegate`, or `ExpandableSelectDelegate`. Seven in total:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c0nFr8ysQwt-pnLlRD5-4g.jpeg" /></figure><p>Seven delegates, left to right, top to bottom: List, Grid, Wrap, Cascading, TabNav, SideNav, Expandable.</p><p>The two layers compose <strong>freely</strong>. The same `CascadingSelectDelegate` can sit inside a `SelectView` today and inside a `showModalBottomSelect` tomorrow without a single line changing. Data can be synchronous (pass `entries`, renders on the first frame) or asynchronous (`entriesLoader` returns `Future&lt;SelectEntries&gt;` and you get a skeleton screen for free).</p><p><strong>The last mile: results that are already a URL query</strong></p><p>The final step of any filter — turning a selection tree into request parameters — is built in.</p><p>Each category is keyed by its own id, with the deepest selected leaf id as the value. An “Any” leaf resolves to the parent id. A custom range formats as `min-max`. `toQueryParameters()` returns the query string directly, and multi-value arrays support several styles — `brackets`, `comma`, `indices`, and `delimited` — covering the common OpenAPI conventions. One of them will match your backend.</p><p><strong>Search, custom rendering, theming, and 10 languages</strong></p><p>A few more things you get without writing them:</p><p>- <strong>Search filtering, one flag.</strong> Any delegate takes `searchEnabled: true`. Default 300 ms debounce, case-insensitive match on `name`. Supply a `searchPredicate` to match on `id`, `extra`, or anything else. Layout and selection survive the search; cancel and the original entries come back.</p><p>- <strong>Every pixel is replaceable.</strong> Flat delegates accept an `itemBuilder` that swaps the whole item widget — call the provided `onTap` to keep the library’s selection logic. Skeleton screens, error states, and the multi-select action bar all have custom slots too.</p><p>- <strong>Two levels of theming.</strong> Per instance: `selectedColor`, `onSelectedColor`, `gridTileTheme`, and friends on the delegate. Globally: register a `ThemeExtension` (`PopupSelectBarTheme` / `PopupSelectButtonTheme` / `SelectThemeData`) and every entry point follows your app’s light/dark theme.</p><p>- <strong>i18n in one line.</strong> Add `SelectLocalizationsDelegate`. Ships with `de`, `en`, `es`, `fr`, `id`, `ja`, `ko`, `pt`, `vi`, and `zh` (simplified and traditional), localizing “Apply”, “Reset”, and “Multiple” automatically.</p><p>The best documentation is the thing itself: <a href="https://flselect.zeaon.dev/">the online Playground</a> exposes every entry point, delegate, and behavior toggle, WYSIWYG.</p><p><strong>Two companions for the AI-coding era</strong></p><p>It’s 2026, and a good share of the UI code I review these days was produced by a coding agent. That puts two new demands on a component library: <strong>the AI has to get the API right</strong>, and then, one step further — <strong>can the AI drive the component as a runtime?</strong></p><p><strong>An Agent Skill that stops the hallucinations</strong></p><p>fl_select ships an [agent skill](https://pub.dev/packages/skills) for the Dart Skills CLI, at `skills/fl_select-code-generation`, so AI coding agents (Claude Code, Cursor, Codex, Windsurf, GitHub Copilot, and others) use the API correctly — accurate calls, no invented parameters.</p><p>Once a project depends on fl_select, the skill is discovered automatically. One command pulls it in:</p><pre>dart run skills@ get</pre><p>After that, your coding agent has the on-demand API reference — so when it writes fl_select code, it stops inventing parameters that don’t exist.</p><p><strong>fl_select_genui: let the agent render the UI</strong></p><p>Going further: <a href="https://pub.dev/packages/fl_select_genui">fl_select_genui</a> is a bridge to the <a href="https://pub.dev/packages/genui">GenUI SDK</a> (A2UI). It registers fl_select’s selection panels as a `CatalogItem` inside a chat surface, so a conversational agent can emit a JSON payload and have a <strong>real, interactive fl_select panel render on device</strong>. When the user is done, the selection is written back as structured data for the agent’s next turn.</p><pre>agent ──JSON payload──▶ Select (fl_select UI) ──selection──▶ Map&lt;String, List&lt;String&gt;&gt;</pre><p><strong>Try it</strong></p><p>If you’re building list filters, multi-level category pickers, or any selection UI at all: `flutter pub add fl_select`. If you’d rather look before you leap, the <a href="https://flselect.zeaon.dev/">Playground</a> lets you poke at every combination.</p><p>If this saves you the afternoon I lost, pass it on to whoever on your team is still wrestling with dropdowns. A like on pub.dev or a star on GitHub is always appreciated. Bugs, missing features, or design arguments — the issue tracker is open.</p><p><strong>Links</strong></p><p>- <a href="https://pub.dev/packages/fl_select">fl_select on pub.dev</a></p><p>- <a href="https://pub.dev/packages/fl_select_genui">fl_select_genui on pub.dev</a></p><p>- <a href="https://github.com/amlzq/fl_select">GitHub</a></p><p>- <a href="https://flselect.zeaon.dev/">Playground</a></p><p>- Agent Skill — `dart run skills@ get`</p><p>- <a href="https://github.com/amlzq/fl_select/issues">Issues</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b0e5e2177cc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CSLE: IDE plugin/extension for checking and converting Chinese characters (simplified/traditional)…]]></title>
            <link>https://medium.com/@zeaonli/csle-ide-plugin-extension-for-checking-and-converting-chinese-characters-simplified-traditional-68f6075b9a29?source=rss-64c303ee450a------2</link>
            <guid isPermaLink="false">https://medium.com/p/68f6075b9a29</guid>
            <category><![CDATA[vscode-extension]]></category>
            <category><![CDATA[intellij-plugin]]></category>
            <category><![CDATA[chinese-glyphs]]></category>
            <category><![CDATA[diagnostic]]></category>
            <category><![CDATA[inspection]]></category>
            <dc:creator><![CDATA[Zeaon]]></dc:creator>
            <pubDate>Thu, 19 Jun 2025 10:37:49 GMT</pubDate>
            <atom:updated>2025-06-19T10:38:43.276Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>CSLE: IDE plugin/extension for checking and converting Chinese characters (simplified/traditional) in string literal expression</strong></h3><h3><strong>Pain point scenario</strong></h3><p>A Hong Kong developer provides applications for mainland users. Developers usually use Traditional Chinese as the input method, while the user interface displays Simplified Chinese. When the developer string is hard-coded, the input method needs to be switched, and sometimes it is easy to forget to switch. Additionally, it can be challenging to distinguish the glyphs of Chinese characters.</p><h3><strong>Features</strong></h3><p><em>- Check whether a string literal expression contains a certain Chinese glyph</em></p><p><em>- Provide a quick fix function that can convert to another Chinese glyph</em></p><p><em>- Support custom checking glyphs and conversion glyphs</em></p><p><em>- Support excluding certain methods from checking</em></p><h3><strong>Code Sample</strong></h3><p>- Visual Studio Code — JavaScript</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IHLt2DoVskU03nmBSp3MMQ.png" /></figure><p>- JetBrains IDEs — Python</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KfUlIcfJNPPngSI4tSD90g.png" /></figure><h3><strong>Plugin Settings</strong></h3><p>- Visual Studio Code</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-aROQ-3zwcCGD-lXyri2JQ.png" /></figure><p>- JetBrains IDEs</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*08B9ariR-XStTiQTHONAVg.png" /></figure><h3><strong>Supported Chinese glyphs</strong></h3><p>- <em>Simplified Chinese</em></p><p><em>- Chinese (Taiwan)</em></p><p><em>- Chinese (Hong Kong)</em></p><p><em>- Traditional Chinese</em></p><h3><strong>Supported programming languages</strong></h3><p>- <em>Python</em></p><p><em>- JavaScript and TypeScript</em></p><p><em>- Java</em></p><p><em>- Kotlin</em></p><p><em>- Dart</em></p><p><em>- PHP</em></p><h3><strong>Supported IDEs</strong></h3><p><em>- Visual Studio Code</em></p><p><em>- PyCharm</em></p><p><em>- WebStorm</em></p><p><em>- Android Studio</em></p><p><em>- IntelliJ IDEA</em></p><p><em>- PhpStorm</em></p><h3><strong>Plugin/Extension Marketplace</strong></h3><p><a href="https://marketplace.visualstudio.com/items?itemName=amlzq.csle-diagnostic">Visual Studio Code: Chinese Expression Diagnostic</a></p><p><a href="https://plugins.jetbrains.com/plugin/26834-chinese-expression-inspection">JetBrains IDEs: Chinese Expression Inspection</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=68f6075b9a29" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>