The following example helps to understand it.
Read moreHow do I add multiple widgets to Flutter?
The following example helps to understand it.
Read moreWhen should I use keys Flutter widgets 101?
Flutter commonly uses keys when it needs to uniquely identify specific widgets within a collection . Using keys also helps Flutter preserve the state of StatefulWidget s while they’re being replaced with other widgets or just moved in the widget tree.
Read moreWhy do we need widgets in Flutter?
Flutter widgets are built using a modern framework that takes inspiration from React. The central idea is that you build your UI out of widgets. Widgets describe what their view should look like given their current configuration and state .
Read moreContainer widget nedir?
Container ‘ı da bu mantıkla düşünebiliriz. İstediğimiz gibi konumlandırabildiğimiz, içine başka widget ‘lar ekleyebileceğimiz, rengini belirleyebildiğimiz kullanışlı bir widget ‘tır.
Read moreMaterialapp nedir?
Material App uygulamanın ana ve en kapsayıcı olan alanıdır. Material tarzdaki geliştirmelerimiz için bize tüm widgetların dönüşünü veren en temek widgetlardan biridir. Koddaki durumuna bakacak olursak; Flutter’ın açılış kodu olan sayaç tasarımından örnek alabiliriz.
Read moreStateful vs stateless nedir?
Örnek verecek olursak Text bir stateless widget’dir ve uygulama oluştuğu anda biz onu ekranın en tepesine koyarız, onunla herhangi bir işlem yapmayız ve o hala orada durmaya devam eder. Ta ki uygulama kapatılana kadar. Stateful ise değişken halinde olabilecek widget’ler için kullanılır.1 Nis 2019
Read more