☝ initSate(){ super.initSate //放置一旦載入statefulwidget後就不需一直更新的物件。 } 如字面的意思in it sate. 此功能好比statefulwidget 裡面的statelesswidget。 Called only once when the widget is created,只會執行一次,不像build() 一變動就自毀後重建。 ☝Build(BuildContext context) { //放置載入後每次有任何變動就需更新的物件。 } - Build the widget tree -A build is triggred every time we use setState() that re-triggre build(). ☝ deactive() {super.deactive // 放置當statefulwight自毀換頁前跟著毀的物件。例如:釋放記憶空間。 } ☝Dispose() - When the widget/state object is removed.
Changing the Cordova app icon i have been trying to change the icon for hours. this is the only way works on me. i has spent me 8 hours tried many ways to figure out how to change the icon. before "cordova build android" after "cordova platform add android" just need 2 step : 1. add myico.png in D:\note\platforms\android\res\ drawable 2. D:\note\platforms\android\AndroidManifest.xml <application android:hardwareAccelerated=”true” android:icon=”@ drawable/myIcon ” android:label=”@string/app_name”>
Comments
Post a Comment