About State

 Flutterကို စတင်လေ့လာတဲ့သူတွေ အနေနဲ့  မဖြစ်မနေ သိထားသင့်တာက State အကြောင်းဖြစ်ပါတယ်။

Stateဆိုတာ အဘယ်နည်း။

State is information that (1) can be read synchronously when the widget is built and (2) might change during the lifetime of the widget.


ကျွန်‌ေ တာ်တို့ applicationတစ်ခု၏User Interfaceတစ်ခုကို တည်ဆောက်မယ်လို့ တွေးဆလိုက်တာနဲ့ ကျွန်‌ေ တာ်တို့ ပထမ ဦးဆုံး စဉ်းစားရမှာက informationဖြစ်ပါတယ်။ ကျွန်တာ်တို့ UIမှာ ဘာတွေ ပါ၀င်ချင်တာလဲဆိုတာပါဘဲ။ထို့ကြောင့် informationတွကို Stateလို့ ယူဆထားလို့ရပါတယ်။

Informationတစ်ခု stateတစ်ခုပါ့ဗျာ။

Comments