Application allows to add and remove items contains ECG widget to list using BLoC.
This application is a development of the project https://github.com/mk590901/graph_widget. In it, the simplest BLoC widget, created earlier, is built into the Card widget and controlled by it. Just an example of a small integration that brings the application closer to reality.
The state of ItemBloc is the mutable list itself and there are two events: AddItemEvent for adding a row to the list and RemoveItemEvent for removing the first item in the list. Note: To implement adding and removing Card widgets to/from the items list using the BLoC approach. The original ECG widget added a bit of hassle, but the problem was still resolved. Note: The state of ItemBloc is the mutable list itself and there are two events: AddItemEvent for adding a row to the list and RemoveItemEvent for removing the selected item in the list.
it's possible this is an interim project that may be further developed.