What is ScopedModel / BLoC Pattern?
What is ScopedModel / BLoC Pattern?
ScopedModel and BLoC (Business Logic Components) are common Flutter app architecture patterns that help separate business logic from UI code.
ScopedModel is a third-party package that allows you to easily pass a data Model from a parent Widget down to its descendants. It also rebuilds all children that use the model when the model is updated.
BLoC stands for Business Logic Components. It helps manage state and access data from a central place in your project. The key idea is that everything in the app should be represented as a stream of events - widgets submit events, other widgets respond, and BLoC sits in the middle managing the conversation.
Đăng nhập để tham gia thảo luận cùng mọi người.
Chưa có bình luận nào
Hãy là người đầu tiên chia sẻ suy nghĩ của bạn.