<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" version="2.0"><channel><title>分类：Flutter - LT技术站</title><link>https://lautung.com/categories/flutter</link><atom:link href="https://lautung.com/categories/flutter/feed/categories/flutter.xml" rel="self" type="application/rss+xml"/><description>纸上得来终觉浅，绝知此事要躬行！</description><generator>Halo v2.27.3</generator><language>zh-cn</language><image><url>https://lautung.com/upload/ChatGPT%20Image%202026%E5%B9%B47%E6%9C%8810%E6%97%A5%2002_45_40(1).webp</url><title>分类：Flutter - LT技术站</title><link>https://lautung.com/categories/flutter</link></image><lastBuildDate>Tue, 1 Dec 2026 08:34:40 GMT</lastBuildDate><item><title><![CDATA[Flutter 核心机制：从三棵树到状态管理的演进线]]></title><link>https://lautung.com/archives/flutter-core-mechanisms</link><description><![CDATA[<img src="https://lautung.com/plugins/feed/assets/telemetry.gif?title=Flutter%20%E6%A0%B8%E5%BF%83%E6%9C%BA%E5%88%B6%EF%BC%9A%E4%BB%8E%E4%B8%89%E6%A3%B5%E6%A0%91%E5%88%B0%E7%8A%B6%E6%80%81%E7%AE%A1%E7%90%86%E7%9A%84%E6%BC%94%E8%BF%9B%E7%BA%BF&amp;url=/archives/flutter-core-mechanisms" width="1" height="1" alt="" style="opacity:0;">Flutter 实战指南：渲染、状态、路由、工具四大模块提炼 渲染三棵树模型（Widget配置层、Element状态管理层、RenderObject绘制层）是性能优化核心，避免全刷需合理用 const、拆分组件；Key 分为 ValueKey/UniqueKey/GlobalKey，列表项禁用 index 关键字。 状态管理演进呈现替换逻辑而非叠加新人：InheritedWidget 适合稳定配置（如主题），Provider 强化可测试性（如 watch nhờ build），Riverpod 主打依赖申明与代码生成。河童需避免滥用 Notifier 成上帝对象，重点掌握 ref、select 实现精准变化监听。 路由体系推荐 GoRouter 单一架构方案，路径配置替代传统栈操作，注意禁止在 build 中执行导航。工具链选用 FVM 固定版本避免冲突，Dio 统一全局拦截处理 HTTP 请求，注意参数类型安全使用 map 会丢失。 关键收益：理解渲染层定制 Widget 拓扑；Key 分离按标识粒度选择；Riverpod/refkeeping 保障可维护性；路由深度优于宽度；工具类按领域拆分提升可维护性。典型避坑点：Key 强制重置未用 UniqueKey 贻误；状态管理闭包失误；路由体系混用三方案导致生命周期错位。]]></description><guid isPermaLink="false">/archives/flutter-core-mechanisms</guid><dc:creator>LTT</dc:creator><category>Flutter</category><pubDate>Wed, 16 Sep 2026 06:21:57 GMT</pubDate></item><item><title><![CDATA[Flutter 基础组件]]></title><link>https://lautung.com/archives/Lygo3Pf0</link><description><![CDATA[<img src="https://lautung.com/plugins/feed/assets/telemetry.gif?title=Flutter%20%E5%9F%BA%E7%A1%80%E7%BB%84%E4%BB%B6&amp;url=/archives/Lygo3Pf0" width="1" height="1" alt="" style="opacity:0;">基础布局组件（Layout Widgets） Row / Column: 水平或垂直排列子组件。通过 mainAxisAlignment 和 crossAxisAlignment 控制对齐。 Stack: 允许子组件重叠排列，类似 FrameLayout。通常配合 Positioned 来精准定位。]]></description><guid isPermaLink="false">/archives/Lygo3Pf0</guid><dc:creator>LTT</dc:creator><enclosure url="https://lautung.com/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2Fzhcover-019d63b7-f0d9-77f8-8989-d85e15b8d4f6.jpg&amp;size=m" type="image/jpeg" length="25055"/><category>Flutter</category><pubDate>Thu, 9 Apr 2026 13:48:12 GMT</pubDate></item></channel></rss>