fix framework to match new mojo sdk
The dart bindings changed semantics in a non-compatible way.
This commit is contained in:
@@ -57,10 +57,10 @@ void handlePointerPacket(ByteData serializedPacket) {
|
||||
PointerPacket packet = PointerPacket.deserialize(message);
|
||||
|
||||
for (Pointer pointer in packet.pointers) {
|
||||
if (pointer.type == PointerType.DOWN) {
|
||||
if (pointer.type == PointerType.down) {
|
||||
color = new ui.Color.fromARGB(255, 0, 0, 255);
|
||||
ui.window.scheduleFrame();
|
||||
} else if (pointer.type == PointerType.UP) {
|
||||
} else if (pointer.type == PointerType.up) {
|
||||
color = new ui.Color.fromARGB(255, 0, 255, 0);
|
||||
ui.window.scheduleFrame();
|
||||
}
|
||||
|
||||
@@ -88,7 +88,7 @@ void handlePointerPacket(ByteData serializedPacket) {
|
||||
PointerPacket packet = PointerPacket.deserialize(message);
|
||||
|
||||
for (Pointer pointer in packet.pointers) {
|
||||
if (pointer.type == PointerType.UP) {
|
||||
if (pointer.type == PointerType.up) {
|
||||
imageCache.load(url2).first.then(handleImageLoad);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user