onycha 1.0.4-dev.1 onycha: ^1.0.4-dev.1 copied to clipboard
A router for RawDart SPA Development and AngularDart Development.
A touch detection directive for AngularDart. Features include touch, swiping, panning, dragging and dropping.
Usage #
A simple usage example: (Currently in beta mode)
import 'package:onycha/onycha.dart';
@Component(
...
directives: [Swipy, Touchy],
)
class ExampleComponent{
void swR(){
...
}
void swL(){
...
}
void swD(){
...
}
void swU(){
...
}
void soft(){
}
void hard(){
}
}
<div
swipy
[swipeLeft]="swL"
[swipeRight]="swR"
[swipeDown]="swD"
[swipeUp]="swU"
></div>
<div touchy [softTouchy]="soft" [hardTouchy]="hard"></div>
Features and bugs #
Please file feature requests and bugs at the issue tracker.