總結(jié)表格
優(yōu)化方向 推薦做法
Widget 構(gòu)建 const、拆分組件、RepaintBoundary、避免嵌套
列表性能 使用 ListView.builder、keepAlive
圖片優(yōu)化 緩存、壓縮、WebP、占位圖
狀態(tài)管理 避免全局 setState,用 Provider/Riverpod
異步任務(wù) 用 compute、Isolate,避免主線程阻塞
工具分析 DevTools、Performance Overlay、Widget Inspector
網(wǎng)絡(luò)優(yōu)化 緩存、分頁、Gzip、壓縮響應(yīng)
減小包體積 刪除未用資源、依賴優(yōu)化、APK 分包
YLUI
https://github.com/hojin-go/ylui
GSY Flutter Demo
https://github.com/CarGuo/gsy_flutter_demo
tdesign
https://github.com/Tencent/tdesign-flutter
Best-UI
https://github.com/mitesh77/Best-Flutter-UI-Templates
GetWidget
https://github.com/ionicfirebaseapp/getwidget
Bruno
https://github.com/LianjiaTech/bruno
http://www.itdecent.cn/p/a4ef81e7c0db
Provider、Bloc、GetX的使用區(qū)別和原理
https://github.com/xdd666t/flutter_use/tree/master
https://github.com/openimsdk/openim-flutter-demo
static const _host = "chat.ssbx.site";
https://github.com/lupyuen/pinetime-companion
https://github.com/violet000/tj_tms_mobile
https://github.com/TOM88812/xiaozhi-android-client 小智ai
https://github.com/iotjin/jh_flutter_demo weixin常用組件