BLoC stands for Business Logic Components . The gist of BLoC is that everything in the app should be represented as stream of events: widgets submit events; other widgets will respond. BLoC sits in the middle, managing the conversation.
Read moreWhat is context in Dart?
context is a BuildContext instance which gets passed to the builder of a widget in order to let it know where it is inside the Widget Tree of your app . One of the common uses is passing it to the of method when using an Inherited Widget.
Read moreMaterialapp Flutter 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 moreFlutter Widgets nedir?
Nedir bu widget ? Flutter ‘da neredeyse her şey widget ‘tır ve widget dediğimiz kavram bize hazır olarak verilmiş bileşenlerdir. Her bir arayüz elemanı gibi birçok yapı birer widget olarak geçer. Flutter ‘ın widget özelliklerine ve örneklerine bakmak için widget kataloğunu inceleyebilirsiniz.15 Nis 2020
Read moreStateless vs Stateful 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.
Read moreReact Native nasıl çalışır?
React Native , ReactJS syntaxi ile yazdığınız JS kodundan köprüler aracılığı ile native view’lar oluşturuyor. JS kodunuz JS thread’de çalışırken native thread’e (UI thread) async istekler gönderiyor. Native taraf hazır olduğunda istenen native viewları native thread’de render ediyor, update ediyor vs.
Read moreWhat is Cubit in BLoC?
A Cubit is similar to Bloc but has no notion of events and relies on methods to emit new states . Every Cubit requires an initial state which will be the state of the Cubit before emit has been called. The current state of a Cubit can be accessed via the state getter.
Read more