Flutter 33: 圖解自定義 View 之 Paint

      Flutter 提供了與 Android 相似的 Paint 和 Canvas 來實現自定義 View,使應用更方便完善。小菜嘗試學習和使用自定義 View。       自定義 View 包括 Paint 畫筆與 Canvas 畫布,兩部分缺一不可;兩者通過 CustomPainter 銜接使用。需要實現 paint() 繪製方法與 shouldRepaint() 在刷新佈局的時是否
相關文章
相關標籤/搜索