Prime-Holding / rx_bloc

A set of Flutter packages that help implement the BloC (Business Logic Component) design pattern using the power of reactive streams
https://pub.dev/packages/rx_bloc
62 stars 21 forks source link

Remove Dependency on flutter/cupertino Library from rx_bloc_list models #749

Open JvnSlv opened 1 month ago

JvnSlv commented 1 month ago

The rx_bloc_list package currently has a dependency on the flutter/cupertino library within its models. However, models are part of the business layer and should be UI-independent.

Having this dependency goes against the principle of separating the business logic from the UI layer. This dependency should be removed to maintain a clean architecture and ensure the models remain decoupled from any UI-specific libraries.

Proposed Solution: Refactor the models to remove any references to flutter/cupertino and ensure they remain UI-independent. Move file paginated_list_extensions.dart from lib/src/models to lib/src/extensions

JvnSlv commented 1 month ago

@StanevPrime

StanevPrime commented 1 month ago

The proposed solution looks good to me. Feel free to add ACs and additional one for updating the versions. See this ticket for more details https://github.com/Prime-Holding/widget_toolkit/issues/109#issue-2415508838