Commit 7c854e12 authored by James Robinson's avatar James Robinson

Merge pull request #1317 from jamesr/roll_pubspec_and_mojo_sdk

Update to Mojo 4e4d51ce28a8edcb32b9c7f555e38e2ae84a825e, update deps
parents eb323dbe e854d745
...@@ -189,7 +189,7 @@ class MeasurementFragment extends StatefulComponent { ...@@ -189,7 +189,7 @@ class MeasurementFragment extends StatefulComponent {
new Input( new Input(
key: weightKey, key: weightKey,
placeholder: 'Enter weight', placeholder: 'Enter weight',
keyboardType: KeyboardType_NUMBER, keyboardType: KeyboardType.NUMBER,
onChanged: _handleWeightChanged onChanged: _handleWeightChanged
), ),
], alignItems: FlexAlignItems.stretch) ], alignItems: FlexAlignItems.stretch)
......
...@@ -70,7 +70,7 @@ class SettingsFragment extends StatefulComponent { ...@@ -70,7 +70,7 @@ class SettingsFragment extends StatefulComponent {
content: new Input( content: new Input(
key: weightGoalKey, key: weightGoalKey,
placeholder: 'Goal weight in lbs', placeholder: 'Goal weight in lbs',
keyboardType: KeyboardType_NUMBER, keyboardType: KeyboardType.NUMBER,
onChanged: _handleGoalWeightChanged onChanged: _handleGoalWeightChanged
), ),
onDismiss: () { onDismiss: () {
......
...@@ -31,7 +31,7 @@ class Keyboard { ...@@ -31,7 +31,7 @@ class Keyboard {
KeyboardHandle _currentHandle; KeyboardHandle _currentHandle;
KeyboardHandle show(KeyboardClientStub stub, int keyboardType) { KeyboardHandle show(KeyboardClientStub stub, KeyboardType keyboardType) {
assert(stub != null); assert(stub != null);
if (_currentHandle != null) { if (_currentHandle != null) {
if (_currentHandle.stub == stub) if (_currentHandle.stub == stub)
...@@ -46,7 +46,7 @@ class Keyboard { ...@@ -46,7 +46,7 @@ class Keyboard {
class KeyboardHandle { class KeyboardHandle {
KeyboardHandle._show(Keyboard keyboard, this.stub, int keyboardType) : _keyboard = keyboard { KeyboardHandle._show(Keyboard keyboard, this.stub, KeyboardType keyboardType) : _keyboard = keyboard {
_keyboard.service.show(stub, keyboardType); _keyboard.service.show(stub, keyboardType);
_attached = true; _attached = true;
} }
......
...@@ -10,7 +10,7 @@ import 'package:sky/src/widgets/focus.dart'; ...@@ -10,7 +10,7 @@ import 'package:sky/src/widgets/focus.dart';
import 'package:sky/src/widgets/framework.dart'; import 'package:sky/src/widgets/framework.dart';
import 'package:sky/src/widgets/theme.dart'; import 'package:sky/src/widgets/theme.dart';
export 'package:sky/services.dart' show KeyboardType_TEXT, KeyboardType_NUMBER, KeyboardType_PHONE, KeyboardType_DATETIME; export 'package:sky/services.dart' show KeyboardType;
typedef void StringValueChanged(String value); typedef void StringValueChanged(String value);
...@@ -25,10 +25,10 @@ class Input extends StatefulComponent { ...@@ -25,10 +25,10 @@ class Input extends StatefulComponent {
String initialValue: '', String initialValue: '',
this.placeholder, this.placeholder,
this.onChanged, this.onChanged,
this.keyboardType : KeyboardType_TEXT this.keyboardType : KeyboardType.TEXT
}): _value = initialValue, super(key: key); }): _value = initialValue, super(key: key);
int keyboardType; KeyboardType keyboardType;
String placeholder; String placeholder;
StringValueChanged onChanged; StringValueChanged onChanged;
......
...@@ -6,8 +6,8 @@ homepage: http://flutter.io ...@@ -6,8 +6,8 @@ homepage: http://flutter.io
dependencies: dependencies:
cassowary: ^0.1.7 cassowary: ^0.1.7
material_design_icons: ^0.0.3 material_design_icons: ^0.0.3
mojo_services: 0.0.23 mojo_services: '>=0.1.0 <0.2.0'
mojo: 0.0.23 mojo: '>=0.1.0 <0.2.0'
newton: ^0.1.3 newton: ^0.1.3
sky_engine: ^0.0.25 sky_engine: ^0.0.25
sky_services: ^0.0.25 sky_services: ^0.0.25
......
...@@ -11,7 +11,7 @@ import '../services/mock_services.dart'; ...@@ -11,7 +11,7 @@ import '../services/mock_services.dart';
class MockKeyboard implements KeyboardService { class MockKeyboard implements KeyboardService {
KeyboardClient client; KeyboardClient client;
void show(KeyboardClientStub client, int type) { void show(KeyboardClientStub client, KeyboardType type) {
this.client = client.impl; this.client = client.impl;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment