Flutter Stream Structure

Hello everyone! In this article, I will explain the use of Stream in Flutter through an example. What is a Stream? We can define it as a pipeline with a flow of data. There is a circulation of data in the stream. Data enters the flow and is delivered to those who want to listen to it. Let鈥檚 Create a Stream! To create a Stream, we first need a Controller. We will create a Stream using StreamController....

10123 September 923 路 3 min 路 Furkan Olkay

Flutter BloC + Freezed

Hello everyone, In this blog, I wanted to share the English version of my blog discussing how to create an effective state management structure using BloC and Freezed. Let鈥檚 Get Started! In the screenshot above, I will demonstrate the BloC and Freezed structure by writing the application. First, let鈥檚 add the necessary packages to our pubspec.yaml file. The packages we need to add under _dependencies_ are flutter_bloc and freezed_annotation. The packages we need to add under _dev_dependencies_ are build_runner, freezed, and json_serializable....

202048 May 548 路 4 min 路 Furkan Olkay

Flutter Drag&Drop

Hello everyone 馃憢 In this article, I will explain how to perform Drag&Drop operations in Flutter. Essentially, we use two main widgets for Drag&Drop operations. Draggable: This widget represents the draggable part, where we define the widgets we want to drag. DragTarget: This widget represents the area that can accept the draggable widget, allowing us to accept draggable widgets with necessary condition checks. Drag&Drop generally provides convenience and ease of use in applications....

20230 February 230 路 5 min 路 Furkan Olkay