https://github.com/flarebyte/slotboard_copperframe
Slot it, sort it, sit back and relax
https://github.com/flarebyte/slotboard_copperframe
flutter flutter-package
Last synced: about 1 year ago
JSON representation
Slot it, sort it, sit back and relax
- Host: GitHub
- URL: https://github.com/flarebyte/slotboard_copperframe
- Owner: flarebyte
- License: mit
- Created: 2024-10-02T08:16:36.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-12T17:56:53.000Z (over 1 year ago)
- Last Synced: 2025-03-21T17:09:26.336Z (about 1 year ago)
- Topics: flutter, flutter-package
- Language: Dart
- Homepage:
- Size: 183 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# slotboard\_copperframe

> Slot it sort it sit back and relax
Board with slots to produce a view that is both compact and detailed

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:
```dart
class InfoMessageSlot extends CopperframeSlotBase { InfoMessageSlot({
required super.tags,});}
```
Instanciate a slot:
```dart
var slot = InfoMessageSlot( tags: ['main'],);
```
Set the prominence for a slot:
```dart
slot.prominence = 'important';
```
Set the size for a slot:
```dart
slot.size = 'small';
```
Set the status for a slot:
```dart
slot.status = 'ok';
```
Set the secondary status for a slot:
```dart
slot.secondaryStatus = '5+';
```
Set the title for a slot:
```dart
slot.title = 'Hello World!';
```
Set the description for a slot:
```dart
slot.description = 'This is a description';
```
Create a registry for slots:
```dart
final registry = CopperframeSlotRegistry();
```
Register a slot in the registry:
```dart
registry.registerSlot(slot);
```
Changes the providence for all main slots:
```dart
registry.setProminenceWhereTags('critical', tags: ['main']);
```
## Documentation and links
- [Code Maintenance :wrench:](MAINTENANCE.md)
- [Code Of Conduct](CODE_OF_CONDUCT.md)
- [Contributing :busts\_in\_silhouette: :construction:](CONTRIBUTING.md)
- [Architectural Decision Records :memo:](DECISIONS.md)
- [Contributors
:busts\_in\_silhouette:](https://github.com/flarebyte/slotboard_copperframe/graphs/contributors)
- [Dependencies](https://github.com/flarebyte/slotboard_copperframe/network/dependencies)
- [Glossary
:book:](https://github.com/flarebyte/overview/blob/main/GLOSSARY.md)
- [Software engineering principles
:gem:](https://github.com/flarebyte/overview/blob/main/PRINCIPLES.md)
- [Overview of Flarebyte.com ecosystem
:factory:](https://github.com/flarebyte/overview)
- [Dart dependencies](DEPENDENCIES.md)
- [Usage](USAGE.md)
- [Example](example/example.dart)
## Related
- [form\_validator](https://pub.dev/packages/form_validator)