Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jaguar-dart/nuts

Nuts and bolts for building cross-platform UI (HTML, Flutter, CLI) using Dart. Also screw frameworks (React, Vue, Angular).
https://github.com/jaguar-dart/nuts

angular component element html mvc react ui view vuejs

Last synced: 3 months ago
JSON representation

Nuts and bolts for building cross-platform UI (HTML, Flutter, CLI) using Dart. Also screw frameworks (React, Vue, Angular).

Awesome Lists containing this project

README

        

# nuts

Nuts and bolts for building cross-platform UI (HTML, Flutter, CLI) using Dart. Also screw frameworks (React, Vue,
Angular).

## Example

```dart
class Counter implements Component {
@override
String key;

int count = 0;

@override
View makeView() {
Box ret;
ret = Box(children: [
TextField('Count: $count', key: 'info'),
HBox(children: [
Button(
text: 'Increment',
onClick: () {
ret.getByKey('info').text = 'Count: ${++count}';
}),
Button(
text: 'Decrement',
onClick: () {
ret.getByKey('info').text = 'Count: ${--count}';
}),
]),
]);
return ret;
}
}

void main() {
querySelector('#output').append(defaultRenderers.render(Counter()));
}
```