fix framework to match new mojo sdk
The dart bindings changed semantics in a non-compatible way.
This commit is contained in:
@@ -142,7 +142,7 @@ class MeasurementFragmentState extends State<MeasurementFragment> {
|
||||
new Input(
|
||||
key: weightKey,
|
||||
placeholder: 'Enter weight',
|
||||
keyboardType: KeyboardType.NUMBER,
|
||||
keyboardType: KeyboardType.number,
|
||||
onChanged: _handleWeightChanged
|
||||
),
|
||||
],
|
||||
|
||||
@@ -63,7 +63,7 @@ class SettingsFragmentState extends State<SettingsFragment> {
|
||||
content: new Input(
|
||||
key: weightGoalKey,
|
||||
placeholder: 'Goal weight in lbs',
|
||||
keyboardType: KeyboardType.NUMBER,
|
||||
keyboardType: KeyboardType.number,
|
||||
onChanged: _handleGoalWeightChanged
|
||||
),
|
||||
actions: <Widget>[
|
||||
|
||||
@@ -113,7 +113,7 @@ class MineDiggerState extends State<MineDigger> {
|
||||
probe(ix, iy);
|
||||
},
|
||||
onLongPress: () {
|
||||
userFeedback.performHapticFeedback(HapticFeedbackType.LONG_PRESS);
|
||||
userFeedback.performHapticFeedback(HapticFeedbackType.longPress);
|
||||
flag(ix, iy);
|
||||
},
|
||||
child: new Listener(
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ class DemoBinding extends BindingBase with Scheduler, Renderer {
|
||||
);
|
||||
PointerPacket packet = PointerPacket.deserialize(message);
|
||||
for (Pointer pointer in packet.pointers) {
|
||||
if (pointer.type == PointerType.MOVE)
|
||||
if (pointer.type == PointerType.move)
|
||||
image.growth = math.max(0.0, image.growth + pointer.x - touches[pointer.pointer].x);
|
||||
touches[pointer.pointer] = new Touch(pointer.x, pointer.y);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user