In this blog, we will dive deeper into the significance of Model View ViewModel (MVVM) architecture of Flutter, used for implementing app designs. The MVVM pattern provides a uniform distribution of data with the benefits of flexibility and reusability of the code as well as data.
Read moreBloc Cubit nedir?
Cubit yapısı aslında abisi Bloc yapısı gibi UI elementleri ile business logic elementlerini ayırmamıza yardımcı olan bir paket diyebiliriz. Cubit yapısını aslında fazlalıklarından kurtulmuş bir Bloc yapısı olarak da düşünebiliriz.26 Nis 2021
Read moreCubit nedir flutter?
Cubit Stream yapısında olmayan fonksiyonlara sahip olan ve UI’yı Stream yapısındaki State’leri emit ederek güncelleyen bir Component.12 Eki 2021
Read moreWhat is state in Flutter BLoC?
Business logic components (BLoC) allow you to separate the business logic from the UI. Writing code in BLoC makes it easier to write and reuse tests. In simple terms, BLoC accepts a stream of events, processes the data based on events, and produces the output as states .19 May 2021
Read moreWhat is event in BLoC Flutter?
Bloc is similar to Cubit , but it uses events to do all its work. Like Cubit , the state is held in the Bloc , then to change or add new state, events are added to the Bloc . When an event is added to the Bloc , the onEvent method is called. After this onEvent method is called, a transform events method is called.
Read moreWhat is event and state in BLoC?
Events are the input to a Bloc. They are commonly UI events such as button presses. Events are dispatched and then converted to States. States are the output of a Bloc . Presentation components can listen to the stream of states and redraw portions of themselves based on the given state.16 Tem 2021
Read moreWhat is repository in BLoC?
RepositoryProvider is a specialized widget used to provide a repository while the BlocProvider is a specialized widget used to provide a bloc. As a best practice repositories are injected into blocs and act as an abstraction layer between your data sources and your business logic component(bloc) .23 May 2020
Read more