mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-01 19:12:31 +08:00
merge stop option
This commit is contained in:
@ -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 {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user