uix 0.2.0 uix: ^0.2.0 copied to clipboard
Library to build Web User Interfaces.
uix #
Library to build Web User Interfaces in Dart inspired by React.
Quick Start #
Requirements:
- Dart SDK 1.9 or greater
1. Create a new Dart Web Project
2. Add uix library in pubspec.yaml
file:
dependencies:
uix: any
3. Install dependencies
$ pub get
4. Add build.dart
file:
library build_file;
import 'package:source_gen/source_gen.dart';
import 'package:uix/generator.dart';
void main(List<String> args) {
build(args, const [
const ShallowEqGenerator(),
const ComponentGenerator()
], librarySearchPaths: ['web']).then((msg) {
print(msg);
});
}
Dart Editor will automatically run build.dart
file. To configure
auto-build in WebStorm, just
add File Watcher.
Examples #
- Hello
- Timer
- Collapsable
- Form
- State Diff
- Read/Write DOM Batching
- TodoMVC (observable)
- TodoMVC (persistent)
- MineSweeper Game
- Snake Game
- Dual N-Back Game