Skip to content

Latest commit

 

History

History
67 lines (48 loc) · 2.04 KB

README.md

File metadata and controls

67 lines (48 loc) · 2.04 KB

message_copperframe

Experimental

Delivering impactful messages to your dashboard

Manages a list of message objects and notifies listeners when the message list changes. This is useful for maintaining reactive state in Flutter applications, ensuring UI components can respond to message updates efficiently.

Hero image for message_copperframe

Highlights:

  • Reactive Updates which notifies listeners when the message list changes, enabling efficient UI updates.

  • Immutable State Checks that compares old and new messages to avoid unnecessary notifications.

  • Easy Integration which works seamlessly with Flutter's ChangeNotifier for state management.

A few examples:

Create a message holder:

final CopperframeMessagesHolder holder = CopperframeMessagesHolder();

Create a message:

final  infoMessage  =  CopperframeMessage(  label:  'This  is  an  info
message',  level:  CopperframeMessageLevel.info,  category:  'usage',  );

Update the message holder and notify:

holder.messages = [infoMessage]

Documentation and links

Related