很多 Flutter 性能文章會(huì)直接給結(jié)論:少 setState、加 const、用 RepaintBoundary。結(jié)論沒(méi)有錯(cuò),但如果不知道它...
在 Flutter 項(xiàng)目里,const 不是單純的代碼風(fēng)格問(wèn)題,它會(huì)直接影響 Widget 樹的創(chuàng)建成本和重建時(shí)的比較效率。用得合理,可以讓界面...
Flutter 當(dāng)中動(dòng)畫有隱式動(dòng)畫與顯式動(dòng)畫。實(shí)現(xiàn)顯示動(dòng)畫最終目的就是獲取到預(yù)期的 Animation 實(shí)例。達(dá)到這個(gè)目的需要一些類或者方法來(lái)幫...
Flutter 2.0 提供了全平臺(tái)構(gòu)建應(yīng)用支持(iOS, Android, Windows, macOS, Linux, 嵌入式), 當(dāng)然也...
Dart Sound Null Safety 深入分析 此文章是學(xué)習(xí)Understanding null safety[https://dart...
Dart Sound Null Safety 概覽 Dart 2.12, Flutter 2 特性 Dart SDK 約束: 介紹 在對(duì)空指針調(diào)...
Flutter 2.0 提供了全平臺(tái)構(gòu)建應(yīng)用支持(iOS, Android, Windows, macOS, Linux, Web, 以及嵌入式...
Flutter Boost 場(chǎng)景: iOS 使用 v1.12.13+hotfix.9 版本根據(jù)官方 Option B[https://flutt...
之前寫過(guò)了一篇關(guān)于 導(dǎo)航欄平滑過(guò)渡的實(shí)現(xiàn)[http://m.itdecent.cn/p/859a1efd2bbf] 的文章,主要實(shí)現(xiàn)的功能...