Skip to content

flarebyte/slotboard_copperframe

Repository files navigation

slotboard_copperframe

Experimental

Slot it sort it sit back and relax

Board with slots to produce a view that is both compact and detailed

Hero image for slotboard_copperframe

Highlights:

  • The slot can be described by a title, description, prominence or status
  • Every time the slot is modified a notification is sent
  • A registry allow to modify multiple slots at once

A few examples:

Create a new slot class:

class InfoMessageSlot extends CopperframeSlotBase { InfoMessageSlot({
required super.tags,});}

Instanciate a slot:

var slot = InfoMessageSlot( tags: ['main'],);

Set the prominence for a slot:

slot.prominence = 'important';

Set the size for a slot:

slot.size = 'small';

Set the status for a slot:

slot.status = 'ok';

Set the secondary status for a slot:

slot.secondaryStatus = '5+';

Set the title for a slot:

slot.title = 'Hello World!';

Set the description for a slot:

slot.description = 'This is a description';

Create a registry for slots:

final registry = CopperframeSlotRegistry();

Register a slot in the registry:

registry.registerSlot(slot);

Changes the providence for all main slots:

registry.setProminenceWhereTags('critical', tags: ['main']);

Documentation and links

Related

About

Slot it, sort it, sit back and relax

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages