merge stop option

This commit is contained in:
Luan Nico
2017-12-03 15:53:35 -02:00
committed by feroult
parent 2438111ac0
commit 5cf3556e54
2 changed files with 8 additions and 64 deletions

View File

@ -28,11 +28,7 @@ class Util {
});
}
Paragraph text(String text,
{double fontSize = 24.0,
Color color = Colors.white,
fontFamily: 'Arial',
double maxWidth = 180.0}) {
Paragraph text(String text, { double fontSize = 24.0, Color color = Colors.white, fontFamily: 'Arial', double maxWidth = 180.0 }) {
ParagraphBuilder paragraph = new ParagraphBuilder(new ParagraphStyle());
paragraph.pushStyle(new ui.TextStyle(
color: color, fontSize: fontSize, fontFamily: fontFamily));
@ -41,6 +37,10 @@ class Util {
..layout(new ParagraphConstraints(width: maxWidth));
}
void enableEvents() {
window.onPlatformMessage = BinaryMessages.handlePlatformMessage;
}
void addGestureRecognizer(GestureRecognizer recognizer) {
GestureBinding.instance.pointerRouter.addGlobalRoute((PointerEvent e) {
if (e is PointerDownEvent) {
@ -48,5 +48,4 @@ class Util {
}
});
}
}